diff --git a/Makefile b/Makefile index 1d1229d2..5336e90f 100644 --- a/Makefile +++ b/Makefile @@ -29,7 +29,6 @@ publish: dotnet publish src/Yavsc/Yavsc.csproj -c Release -o $(DESTDIR)/srv/www/yavsc install: publish - chown -R www-data $(DESTDIR)/srv/www/yavsc - chgrp -R www-data $(DESTDIR)/srv/www/yavsc + sudo chown -R www-data:www-data $(DESTDIR)/srv/www/yavsc .PHONY: diff --git a/src/Yavsc.Server/Migrations/2016/20160315144017_init.Designer.cs b/src/Yavsc.Server/Migrations/2016/20160315144017_init.Designer.cs deleted file mode 100644 index 173e3844..00000000 --- a/src/Yavsc.Server/Migrations/2016/20160315144017_init.Designer.cs +++ /dev/null @@ -1,444 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20160315144017_init")] - partial class init - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("YavscWeb.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired(); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("Credits"); - - b.Property("HistoryId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("YavscWeb.Models.AccountHistory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("Description"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("YavscWeb.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("YavscWeb.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId") - .IsRequired(); - - b.Property("bcontent"); - - b.Property("modified"); - - b.Property("photo"); - - b.Property("posted"); - - b.Property("rate"); - - b.Property("title"); - - b.Property("visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Booking.SimpleBookQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("EventDate"); - - b.Property("LocationId") - .IsRequired(); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("UserId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.CircleMember", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CircleId") - .IsRequired(); - - b.Property("MemberId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Command", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CommandId"); - - b.Property("Description"); - - b.Property("Status"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.PerformerProfile", b => - { - b.Property("PerfomerId"); - - b.Property("AcceptGeoLocalisation"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("DailyCost"); - - b.Property("Rate"); - - b.Property("WebSite"); - - b.HasKey("PerfomerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("YavscWeb.Models.AccountBalance", b => - { - b.HasOne("YavscWeb.Models.AccountHistory") - .WithMany() - .HasForeignKey("HistoryId"); - - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithOne() - .HasForeignKey("YavscWeb.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Blog", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Booking.SimpleBookQuery", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("YavscWeb.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.CircleMember", b => - { - b.HasOne("YavscWeb.Models.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Command", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Estimate", b => - { - b.HasOne("YavscWeb.Models.Command") - .WithMany() - .HasForeignKey("CommandId"); - }); - - modelBuilder.Entity("YavscWeb.Models.PerformerProfile", b => - { - b.HasOne("YavscWeb.Models.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerfomerId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20160315144017_init.cs b/src/Yavsc.Server/Migrations/2016/20160315144017_init.cs deleted file mode 100644 index 155eff75..00000000 --- a/src/Yavsc.Server/Migrations/2016/20160315144017_init.cs +++ /dev/null @@ -1,415 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -namespace Yavsc.Migrations -{ - public partial class init : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.CreateTable( - name: "AspNetRoles", - columns: table => new - { - Id = table.Column(nullable: false), - ConcurrencyStamp = table.Column(nullable: true), - Name = table.Column(nullable: true), - NormalizedName = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_IdentityRole", x => x.Id); - }); - migrationBuilder.CreateTable( - name: "Location", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("Npgsql:Serial", true), - Address = table.Column(nullable: false), - Latitude = table.Column(nullable: false), - Longitude = table.Column(nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Location", x => x.Id); - }); - migrationBuilder.CreateTable( - name: "AccountHistory", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("Npgsql:Serial", true) - }, - constraints: table => - { - table.PrimaryKey("PK_AccountHistory", x => x.Id); - }); - migrationBuilder.CreateTable( - name: "Activity", - columns: table => new - { - Code = table.Column(nullable: false), - Description = table.Column(nullable: true), - Name = table.Column(nullable: false), - Photo = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Activity", x => x.Code); - }); - migrationBuilder.CreateTable( - name: "AspNetUsers", - columns: table => new - { - Id = table.Column(nullable: false), - AccessFailedCount = table.Column(nullable: false), - ConcurrencyStamp = table.Column(nullable: true), - Email = table.Column(nullable: true), - EmailConfirmed = table.Column(nullable: false), - LockoutEnabled = table.Column(nullable: false), - LockoutEnd = table.Column(nullable: true), - NormalizedEmail = table.Column(nullable: true), - NormalizedUserName = table.Column(nullable: true), - PasswordHash = table.Column(nullable: true), - PhoneNumber = table.Column(nullable: true), - PhoneNumberConfirmed = table.Column(nullable: false), - SecurityStamp = table.Column(nullable: true), - TwoFactorEnabled = table.Column(nullable: false), - UserName = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_ApplicationUser", x => x.Id); - }); - migrationBuilder.CreateTable( - name: "Circle", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("Npgsql:Serial", true), - Name = table.Column(nullable: true), - UserId = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Circle", x => x.Id); - }); - migrationBuilder.CreateTable( - name: "Skill", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("Npgsql:Serial", true), - Name = table.Column(nullable: true), - Rate = table.Column(nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Skill", x => x.Id); - }); - migrationBuilder.CreateTable( - name: "AspNetRoleClaims", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("Npgsql:Serial", true), - ClaimType = table.Column(nullable: true), - ClaimValue = table.Column(nullable: true), - RoleId = table.Column(nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_IdentityRoleClaim", x => x.Id); - table.ForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - column: x => x.RoleId, - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - migrationBuilder.CreateTable( - name: "AspNetUserClaims", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("Npgsql:Serial", true), - ClaimType = table.Column(nullable: true), - ClaimValue = table.Column(nullable: true), - UserId = table.Column(nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_IdentityUserClaim", x => x.Id); - table.ForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - column: x => x.UserId, - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - migrationBuilder.CreateTable( - name: "AspNetUserLogins", - columns: table => new - { - LoginProvider = table.Column(nullable: false), - ProviderKey = table.Column(nullable: false), - ProviderDisplayName = table.Column(nullable: true), - UserId = table.Column(nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_IdentityUserLogin", x => new { x.LoginProvider, x.ProviderKey }); - table.ForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - column: x => x.UserId, - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - migrationBuilder.CreateTable( - name: "AspNetUserRoles", - columns: table => new - { - UserId = table.Column(nullable: false), - RoleId = table.Column(nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_IdentityUserRole", x => new { x.UserId, x.RoleId }); - table.ForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - column: x => x.RoleId, - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - table.ForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - column: x => x.UserId, - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - migrationBuilder.CreateTable( - name: "AccountBalance", - columns: table => new - { - UserId = table.Column(nullable: false), - Credits = table.Column(nullable: false), - HistoryId = table.Column(nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_AccountBalance", x => x.UserId); - table.ForeignKey( - name: "FK_AccountBalance_AccountHistory_HistoryId", - column: x => x.HistoryId, - principalTable: "AccountHistory", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - table.ForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - column: x => x.UserId, - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - migrationBuilder.CreateTable( - name: "Blog", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("Npgsql:Serial", true), - AuthorId = table.Column(nullable: false), - bcontent = table.Column(nullable: true), - modified = table.Column(nullable: false), - photo = table.Column(nullable: true), - posted = table.Column(nullable: false), - rate = table.Column(nullable: false), - title = table.Column(nullable: true), - visible = table.Column(nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Blog", x => x.Id); - table.ForeignKey( - name: "FK_Blog_ApplicationUser_AuthorId", - column: x => x.AuthorId, - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - migrationBuilder.CreateTable( - name: "SimpleBookQuery", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("Npgsql:Serial", true), - ClientId = table.Column(nullable: false), - EventDate = table.Column(nullable: false), - LocationId = table.Column(nullable: false), - PerformerId = table.Column(nullable: false), - ValidationDate = table.Column(nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_SimpleBookQuery", x => x.Id); - table.ForeignKey( - name: "FK_SimpleBookQuery_ApplicationUser_ClientId", - column: x => x.ClientId, - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - table.ForeignKey( - name: "FK_SimpleBookQuery_Location_LocationId", - column: x => x.LocationId, - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - table.ForeignKey( - name: "FK_SimpleBookQuery_ApplicationUser_PerformerId", - column: x => x.PerformerId, - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - migrationBuilder.CreateTable( - name: "Command", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("Npgsql:Serial", true), - ClientId = table.Column(nullable: false), - PerformerId = table.Column(nullable: false), - ValidationDate = table.Column(nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Command", x => x.Id); - table.ForeignKey( - name: "FK_Command_ApplicationUser_ClientId", - column: x => x.ClientId, - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - table.ForeignKey( - name: "FK_Command_ApplicationUser_PerformerId", - column: x => x.PerformerId, - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - migrationBuilder.CreateTable( - name: "PerformerProfile", - columns: table => new - { - PerfomerId = table.Column(nullable: false), - AcceptGeoLocalisation = table.Column(nullable: false), - AcceptNotifications = table.Column(nullable: false), - AcceptPublicContact = table.Column(nullable: false), - Active = table.Column(nullable: false), - ActivityCode = table.Column(nullable: false), - DailyCost = table.Column(nullable: false), - Rate = table.Column(nullable: false), - WebSite = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_PerformerProfile", x => x.PerfomerId); - table.ForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - column: x => x.ActivityCode, - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - table.ForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerfomerId", - column: x => x.PerfomerId, - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - migrationBuilder.CreateTable( - name: "CircleMember", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("Npgsql:Serial", true), - CircleId = table.Column(nullable: false), - MemberId = table.Column(nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_CircleMember", x => x.Id); - table.ForeignKey( - name: "FK_CircleMember_Circle_CircleId", - column: x => x.CircleId, - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - table.ForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - column: x => x.MemberId, - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - migrationBuilder.CreateTable( - name: "Estimate", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("Npgsql:Serial", true), - CommandId = table.Column(nullable: true), - Description = table.Column(nullable: true), - Status = table.Column(nullable: true), - Title = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Estimate", x => x.Id); - table.ForeignKey( - name: "FK_Estimate_Command_CommandId", - column: x => x.CommandId, - principalTable: "Command", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - }); - migrationBuilder.CreateIndex( - name: "RoleNameIndex", - table: "AspNetRoles", - column: "NormalizedName"); - migrationBuilder.CreateIndex( - name: "EmailIndex", - table: "AspNetUsers", - column: "NormalizedEmail"); - migrationBuilder.CreateIndex( - name: "UserNameIndex", - table: "AspNetUsers", - column: "NormalizedUserName"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable("AspNetRoleClaims"); - migrationBuilder.DropTable("AspNetUserClaims"); - migrationBuilder.DropTable("AspNetUserLogins"); - migrationBuilder.DropTable("AspNetUserRoles"); - migrationBuilder.DropTable("AccountBalance"); - migrationBuilder.DropTable("Blog"); - migrationBuilder.DropTable("SimpleBookQuery"); - migrationBuilder.DropTable("CircleMember"); - migrationBuilder.DropTable("Estimate"); - migrationBuilder.DropTable("PerformerProfile"); - migrationBuilder.DropTable("Skill"); - migrationBuilder.DropTable("AspNetRoles"); - migrationBuilder.DropTable("AccountHistory"); - migrationBuilder.DropTable("Location"); - migrationBuilder.DropTable("Circle"); - migrationBuilder.DropTable("Command"); - migrationBuilder.DropTable("Activity"); - migrationBuilder.DropTable("AspNetUsers"); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20160317215718_command.Designer.cs b/src/Yavsc.Server/Migrations/2016/20160317215718_command.Designer.cs deleted file mode 100644 index 148e3446..00000000 --- a/src/Yavsc.Server/Migrations/2016/20160317215718_command.Designer.cs +++ /dev/null @@ -1,452 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20160317215718_command")] - partial class command - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("YavscWeb.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired(); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("Credits"); - - b.Property("HistoryId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("YavscWeb.Models.AccountHistory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("Description"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("YavscWeb.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("YavscWeb.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId") - .IsRequired(); - - b.Property("bcontent"); - - b.Property("modified"); - - b.Property("photo"); - - b.Property("posted"); - - b.Property("rate"); - - b.Property("title"); - - b.Property("visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Book.Query", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("EventDate"); - - b.Property("Final"); - - b.Property("LocationId") - .IsRequired(); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("UserId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.CircleMember", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CircleId") - .IsRequired(); - - b.Property("MemberId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Command", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Final"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CommandId"); - - b.Property("Description"); - - b.Property("Status"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.PerformerProfile", b => - { - b.Property("PerfomerId"); - - b.Property("AcceptGeoLocalisation"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("DailyCost"); - - b.Property("Rate"); - - b.Property("WebSite"); - - b.HasKey("PerfomerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("YavscWeb.Models.AccountBalance", b => - { - b.HasOne("YavscWeb.Models.AccountHistory") - .WithMany() - .HasForeignKey("HistoryId"); - - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithOne() - .HasForeignKey("YavscWeb.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Blog", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Book.Query", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("YavscWeb.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.CircleMember", b => - { - b.HasOne("YavscWeb.Models.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Command", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Estimate", b => - { - b.HasOne("YavscWeb.Models.Command") - .WithMany() - .HasForeignKey("CommandId"); - }); - - modelBuilder.Entity("YavscWeb.Models.PerformerProfile", b => - { - b.HasOne("YavscWeb.Models.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerfomerId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20160317215718_command.cs b/src/Yavsc.Server/Migrations/2016/20160317215718_command.cs deleted file mode 100644 index 78e8ffbf..00000000 --- a/src/Yavsc.Server/Migrations/2016/20160317215718_command.cs +++ /dev/null @@ -1,332 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class command : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_AccountHistory_HistoryId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_Blog_ApplicationUser_AuthorId", table: "Blog"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Command_ApplicationUser_ClientId", table: "Command"); - migrationBuilder.DropForeignKey(name: "FK_Command_ApplicationUser_PerformerId", table: "Command"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerfomerId", table: "PerformerProfile"); - migrationBuilder.DropTable("SimpleBookQuery"); - migrationBuilder.CreateTable( - name: "Query", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("Npgsql:Serial", true), - ClientId = table.Column(nullable: false), - EventDate = table.Column(nullable: false), - Final = table.Column(nullable: true), - LocationId = table.Column(nullable: false), - PerformerId = table.Column(nullable: false), - Previsional = table.Column(nullable: true), - ValidationDate = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Query", x => x.Id); - table.ForeignKey( - name: "FK_Query_ApplicationUser_ClientId", - column: x => x.ClientId, - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - table.ForeignKey( - name: "FK_Query_Location_LocationId", - column: x => x.LocationId, - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - table.ForeignKey( - name: "FK_Query_ApplicationUser_PerformerId", - column: x => x.PerformerId, - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - migrationBuilder.AlterColumn( - name: "ValidationDate", - table: "Command", - nullable: true); - migrationBuilder.AddColumn( - name: "Final", - table: "Command", - nullable: true); - migrationBuilder.AddColumn( - name: "Previsional", - table: "Command", - nullable: true); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_AccountHistory_HistoryId", - table: "AccountBalance", - column: "HistoryId", - principalTable: "AccountHistory", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Blog_ApplicationUser_AuthorId", - table: "Blog", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Command_ApplicationUser_ClientId", - table: "Command", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Command_ApplicationUser_PerformerId", - table: "Command", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerfomerId", - table: "PerformerProfile", - column: "PerfomerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_AccountHistory_HistoryId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_Blog_ApplicationUser_AuthorId", table: "Blog"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Command_ApplicationUser_ClientId", table: "Command"); - migrationBuilder.DropForeignKey(name: "FK_Command_ApplicationUser_PerformerId", table: "Command"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerfomerId", table: "PerformerProfile"); - migrationBuilder.DropColumn(name: "Final", table: "Command"); - migrationBuilder.DropColumn(name: "Previsional", table: "Command"); - migrationBuilder.DropTable("Query"); - migrationBuilder.CreateTable( - name: "SimpleBookQuery", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("Npgsql:Serial", true), - ClientId = table.Column(nullable: false), - EventDate = table.Column(nullable: false), - LocationId = table.Column(nullable: false), - PerformerId = table.Column(nullable: false), - ValidationDate = table.Column(nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_SimpleBookQuery", x => x.Id); - table.ForeignKey( - name: "FK_SimpleBookQuery_ApplicationUser_ClientId", - column: x => x.ClientId, - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - table.ForeignKey( - name: "FK_SimpleBookQuery_Location_LocationId", - column: x => x.LocationId, - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - table.ForeignKey( - name: "FK_SimpleBookQuery_ApplicationUser_PerformerId", - column: x => x.PerformerId, - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - }); - migrationBuilder.AlterColumn( - name: "ValidationDate", - table: "Command", - nullable: false); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_AccountHistory_HistoryId", - table: "AccountBalance", - column: "HistoryId", - principalTable: "AccountHistory", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Blog_ApplicationUser_AuthorId", - table: "Blog", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Command_ApplicationUser_ClientId", - table: "Command", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Command_ApplicationUser_PerformerId", - table: "Command", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerfomerId", - table: "PerformerProfile", - column: "PerfomerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20160320170252_bank.Designer.cs b/src/Yavsc.Server/Migrations/2016/20160320170252_bank.Designer.cs deleted file mode 100644 index e6e5b8cf..00000000 --- a/src/Yavsc.Server/Migrations/2016/20160320170252_bank.Designer.cs +++ /dev/null @@ -1,485 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20160320170252_bank")] - partial class bank - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("YavscWeb.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired(); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("Credits"); - - b.Property("HistoryId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("YavscWeb.Models.AccountHistory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("Description"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("YavscWeb.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("YavscWeb.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.Property("TargetId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId") - .IsRequired(); - - b.Property("bcontent"); - - b.Property("modified"); - - b.Property("photo"); - - b.Property("posted"); - - b.Property("rate"); - - b.Property("title"); - - b.Property("visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Book.Query", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("EventDate"); - - b.Property("Final"); - - b.Property("LocationId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("UserId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.CircleMember", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CircleId") - .IsRequired(); - - b.Property("MemberId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Command", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Final"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CommandId"); - - b.Property("Description"); - - b.Property("Status"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.PerformerProfile", b => - { - b.Property("PerfomerId"); - - b.Property("AcceptGeoLocalisation"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("DailyCost"); - - b.Property("OrganisationAddressId"); - - b.Property("Rate"); - - b.Property("SIRET") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("WebSite"); - - b.HasKey("PerfomerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("YavscWeb.Models.AccountBalance", b => - { - b.HasOne("YavscWeb.Models.AccountHistory") - .WithMany() - .HasForeignKey("HistoryId"); - - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithOne() - .HasForeignKey("YavscWeb.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("YavscWeb.Models.BalanceImpact", b => - { - b.HasOne("YavscWeb.Models.AccountHistory") - .WithMany() - .HasForeignKey("TargetId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Blog", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Book.Query", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("YavscWeb.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.CircleMember", b => - { - b.HasOne("YavscWeb.Models.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Command", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Estimate", b => - { - b.HasOne("YavscWeb.Models.Command") - .WithMany() - .HasForeignKey("CommandId"); - }); - - modelBuilder.Entity("YavscWeb.Models.PerformerProfile", b => - { - b.HasOne("YavscWeb.Models.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("YavscWeb.Location") - .WithMany() - .HasForeignKey("OrganisationAddressId"); - - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerfomerId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20160320170252_bank.cs b/src/Yavsc.Server/Migrations/2016/20160320170252_bank.cs deleted file mode 100644 index d2252452..00000000 --- a/src/Yavsc.Server/Migrations/2016/20160320170252_bank.cs +++ /dev/null @@ -1,335 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -namespace Yavsc.Migrations -{ - public partial class bank : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_AccountHistory_HistoryId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_Blog_ApplicationUser_AuthorId", table: "Blog"); - migrationBuilder.DropForeignKey(name: "FK_Query_ApplicationUser_ClientId", table: "Query"); - migrationBuilder.DropForeignKey(name: "FK_Query_Location_LocationId", table: "Query"); - migrationBuilder.DropForeignKey(name: "FK_Query_ApplicationUser_PerformerId", table: "Query"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Command_ApplicationUser_ClientId", table: "Command"); - migrationBuilder.DropForeignKey(name: "FK_Command_ApplicationUser_PerformerId", table: "Command"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerfomerId", table: "PerformerProfile"); - migrationBuilder.CreateTable( - name: "BalanceImpact", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("Npgsql:Serial", true), - ExecDate = table.Column(nullable: false), - Impact = table.Column(nullable: false), - Reason = table.Column(nullable: false), - TargetId = table.Column(nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_BalanceImpact", x => x.Id); - table.ForeignKey( - name: "FK_BalanceImpact_AccountHistory_TargetId", - column: x => x.TargetId, - principalTable: "AccountHistory", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - migrationBuilder.AddColumn( - name: "OrganisationAddressId", - table: "PerformerProfile", - nullable: false, - defaultValue: 0L); - - migrationBuilder.AddColumn( - name: "SIRET", - table: "PerformerProfile", - nullable: false, - defaultValue: ""); - - migrationBuilder.Sql("delete from \"PerformerProfile\"" ); - - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_AccountHistory_HistoryId", - table: "AccountBalance", - column: "HistoryId", - principalTable: "AccountHistory", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Blog_ApplicationUser_AuthorId", - table: "Blog", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Query_ApplicationUser_ClientId", - table: "Query", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Query_Location_LocationId", - table: "Query", - column: "LocationId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Query_ApplicationUser_PerformerId", - table: "Query", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Command_ApplicationUser_ClientId", - table: "Command", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Command_ApplicationUser_PerformerId", - table: "Command", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganisationAddressId", - table: "PerformerProfile", - column: "OrganisationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerfomerId", - table: "PerformerProfile", - column: "PerfomerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_AccountHistory_HistoryId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_Blog_ApplicationUser_AuthorId", table: "Blog"); - migrationBuilder.DropForeignKey(name: "FK_Query_ApplicationUser_ClientId", table: "Query"); - migrationBuilder.DropForeignKey(name: "FK_Query_Location_LocationId", table: "Query"); - migrationBuilder.DropForeignKey(name: "FK_Query_ApplicationUser_PerformerId", table: "Query"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Command_ApplicationUser_ClientId", table: "Command"); - migrationBuilder.DropForeignKey(name: "FK_Command_ApplicationUser_PerformerId", table: "Command"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganisationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerfomerId", table: "PerformerProfile"); - migrationBuilder.DropColumn(name: "OrganisationAddressId", table: "PerformerProfile"); - migrationBuilder.DropColumn(name: "SIRET", table: "PerformerProfile"); - migrationBuilder.DropTable("BalanceImpact"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_AccountHistory_HistoryId", - table: "AccountBalance", - column: "HistoryId", - principalTable: "AccountHistory", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Blog_ApplicationUser_AuthorId", - table: "Blog", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Query_ApplicationUser_ClientId", - table: "Query", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Query_Location_LocationId", - table: "Query", - column: "LocationId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Query_ApplicationUser_PerformerId", - table: "Query", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Command_ApplicationUser_ClientId", - table: "Command", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Command_ApplicationUser_PerformerId", - table: "Command", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerfomerId", - table: "PerformerProfile", - column: "PerfomerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20160322144500_contact.Designer.cs b/src/Yavsc.Server/Migrations/2016/20160322144500_contact.Designer.cs deleted file mode 100644 index 43f6377f..00000000 --- a/src/Yavsc.Server/Migrations/2016/20160322144500_contact.Designer.cs +++ /dev/null @@ -1,592 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20160322144500_contact")] - partial class contact - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("YavscWeb.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired(); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("Credits"); - - b.Property("HistoryId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("YavscWeb.Models.AccountHistory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("Description"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("YavscWeb.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("YavscWeb.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.Property("TargetId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.BaseProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("Name"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId") - .IsRequired(); - - b.Property("bcontent"); - - b.Property("modified"); - - b.Property("photo"); - - b.Property("posted"); - - b.Property("rate"); - - b.Property("title"); - - b.Property("visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Book.Query", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("EventDate"); - - b.Property("Lag"); - - b.Property("LocationId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("UserId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.CircleMember", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CircleId") - .IsRequired(); - - b.Property("MemberId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Command", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Lag"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ArticleId"); - - b.Property("CommandId"); - - b.Property("Comment"); - - b.Property("Count"); - - b.Property("EstimateId"); - - b.Property("QueryId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CommandId"); - - b.Property("Description"); - - b.Property("Status"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.PerformerProfile", b => - { - b.Property("PerfomerId"); - - b.Property("AcceptGeoLocalisation"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("DailyCost"); - - b.Property("OrganisationAddressId"); - - b.Property("Rate"); - - b.Property("SIRET") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("WebSite"); - - b.HasKey("PerfomerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Depth"); - - b.Property("Description"); - - b.Property("Height"); - - b.Property("Name"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("YavscWeb.Models.AccountBalance", b => - { - b.HasOne("YavscWeb.Models.AccountHistory") - .WithMany() - .HasForeignKey("HistoryId"); - - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithOne() - .HasForeignKey("YavscWeb.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("YavscWeb.Models.ApplicationUser", b => - { - b.HasOne("YavscWeb.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("YavscWeb.Models.BalanceImpact", b => - { - b.HasOne("YavscWeb.Models.AccountHistory") - .WithMany() - .HasForeignKey("TargetId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Blog", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Book.Query", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("YavscWeb.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("YavscWeb.Models.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.CircleMember", b => - { - b.HasOne("YavscWeb.Models.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Command", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("YavscWeb.Models.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.CommandLine", b => - { - b.HasOne("YavscWeb.Models.BaseProduct") - .WithMany() - .HasForeignKey("ArticleId"); - - b.HasOne("YavscWeb.Models.Command") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("YavscWeb.Models.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("YavscWeb.Models.Book.Query") - .WithMany() - .HasForeignKey("QueryId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Contact", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Estimate", b => - { - b.HasOne("YavscWeb.Models.Command") - .WithMany() - .HasForeignKey("CommandId"); - }); - - modelBuilder.Entity("YavscWeb.Models.PerformerProfile", b => - { - b.HasOne("YavscWeb.Models.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("YavscWeb.Location") - .WithMany() - .HasForeignKey("OrganisationAddressId"); - - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerfomerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Service", b => - { - b.HasOne("YavscWeb.Models.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20160322144500_contact.cs b/src/Yavsc.Server/Migrations/2016/20160322144500_contact.cs deleted file mode 100644 index c6a3b294..00000000 --- a/src/Yavsc.Server/Migrations/2016/20160322144500_contact.cs +++ /dev/null @@ -1,457 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class contact : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_AccountHistory_HistoryId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountHistory_TargetId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_Blog_ApplicationUser_AuthorId", table: "Blog"); - migrationBuilder.DropForeignKey(name: "FK_Query_ApplicationUser_ClientId", table: "Query"); - migrationBuilder.DropForeignKey(name: "FK_Query_Location_LocationId", table: "Query"); - migrationBuilder.DropForeignKey(name: "FK_Query_ApplicationUser_PerformerId", table: "Query"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Command_ApplicationUser_ClientId", table: "Command"); - migrationBuilder.DropForeignKey(name: "FK_Command_ApplicationUser_PerformerId", table: "Command"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganisationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerfomerId", table: "PerformerProfile"); - migrationBuilder.DropColumn(name: "Final", table: "Command"); - migrationBuilder.DropColumn(name: "Final", table: "Query"); - migrationBuilder.CreateTable( - name: "BaseProduct", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("Npgsql:Serial", true), - Description = table.Column(nullable: true), - Name = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_BaseProduct", x => x.Id); - }); - migrationBuilder.CreateTable( - name: "Contact", - columns: table => new - { - OwnerId = table.Column(nullable: false), - UserId = table.Column(nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Contact", x => new { x.OwnerId, x.UserId }); - table.ForeignKey( - name: "FK_Contact_ApplicationUser_OwnerId", - column: x => x.OwnerId, - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - migrationBuilder.CreateTable( - name: "Service", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("Npgsql:Serial", true), - ContextId = table.Column(nullable: true), - Depth = table.Column(nullable: false), - Description = table.Column(nullable: true), - Height = table.Column(nullable: false), - Name = table.Column(nullable: true), - Weight = table.Column(nullable: false), - Width = table.Column(nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Service", x => x.Id); - table.ForeignKey( - name: "FK_Service_Activity_ContextId", - column: x => x.ContextId, - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - }); - migrationBuilder.CreateTable( - name: "CommandLine", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("Npgsql:Serial", true), - ArticleId = table.Column(nullable: true), - CommandId = table.Column(nullable: true), - Comment = table.Column(nullable: true), - Count = table.Column(nullable: false), - EstimateId = table.Column(nullable: true), - QueryId = table.Column(nullable: true), - UnitaryCost = table.Column(nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_CommandLine", x => x.Id); - table.ForeignKey( - name: "FK_CommandLine_BaseProduct_ArticleId", - column: x => x.ArticleId, - principalTable: "BaseProduct", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - table.ForeignKey( - name: "FK_CommandLine_Command_CommandId", - column: x => x.CommandId, - principalTable: "Command", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - table.ForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - column: x => x.EstimateId, - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - table.ForeignKey( - name: "FK_CommandLine_Query_QueryId", - column: x => x.QueryId, - principalTable: "Query", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - }); - migrationBuilder.AddColumn( - name: "Lag", - table: "Command", - nullable: false, - defaultValue: 0); - migrationBuilder.AddColumn( - name: "Lag", - table: "Query", - nullable: false, - defaultValue: 0); - migrationBuilder.AddColumn( - name: "PostalAddressId", - table: "AspNetUsers", - nullable: true); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_AccountHistory_HistoryId", - table: "AccountBalance", - column: "HistoryId", - principalTable: "AccountHistory", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_ApplicationUser_Location_PostalAddressId", - table: "AspNetUsers", - column: "PostalAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountHistory_TargetId", - table: "BalanceImpact", - column: "TargetId", - principalTable: "AccountHistory", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Blog_ApplicationUser_AuthorId", - table: "Blog", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Query_ApplicationUser_ClientId", - table: "Query", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Query_Location_LocationId", - table: "Query", - column: "LocationId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Query_PerformerProfile_PerformerId", - table: "Query", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerfomerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Command_ApplicationUser_ClientId", - table: "Command", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Command_PerformerProfile_PerformerId", - table: "Command", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerfomerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganisationAddressId", - table: "PerformerProfile", - column: "OrganisationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerfomerId", - table: "PerformerProfile", - column: "PerfomerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_AccountHistory_HistoryId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_ApplicationUser_Location_PostalAddressId", table: "AspNetUsers"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountHistory_TargetId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_Blog_ApplicationUser_AuthorId", table: "Blog"); - migrationBuilder.DropForeignKey(name: "FK_Query_ApplicationUser_ClientId", table: "Query"); - migrationBuilder.DropForeignKey(name: "FK_Query_Location_LocationId", table: "Query"); - migrationBuilder.DropForeignKey(name: "FK_Query_PerformerProfile_PerformerId", table: "Query"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Command_ApplicationUser_ClientId", table: "Command"); - migrationBuilder.DropForeignKey(name: "FK_Command_PerformerProfile_PerformerId", table: "Command"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganisationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerfomerId", table: "PerformerProfile"); - migrationBuilder.DropColumn(name: "Lag", table: "Command"); - migrationBuilder.DropColumn(name: "Lag", table: "Query"); - migrationBuilder.DropColumn(name: "PostalAddressId", table: "AspNetUsers"); - migrationBuilder.DropTable("CommandLine"); - migrationBuilder.DropTable("Contact"); - migrationBuilder.DropTable("Service"); - migrationBuilder.DropTable("BaseProduct"); - migrationBuilder.AddColumn( - name: "Final", - table: "Command", - nullable: true); - migrationBuilder.AddColumn( - name: "Final", - table: "Query", - nullable: true); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_AccountHistory_HistoryId", - table: "AccountBalance", - column: "HistoryId", - principalTable: "AccountHistory", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountHistory_TargetId", - table: "BalanceImpact", - column: "TargetId", - principalTable: "AccountHistory", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Blog_ApplicationUser_AuthorId", - table: "Blog", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Query_ApplicationUser_ClientId", - table: "Query", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Query_Location_LocationId", - table: "Query", - column: "LocationId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Query_ApplicationUser_PerformerId", - table: "Query", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Command_ApplicationUser_ClientId", - table: "Command", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Command_ApplicationUser_PerformerId", - table: "Command", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganisationAddressId", - table: "PerformerProfile", - column: "OrganisationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerfomerId", - table: "PerformerProfile", - column: "PerfomerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20160322152206_balance.Designer.cs b/src/Yavsc.Server/Migrations/2016/20160322152206_balance.Designer.cs deleted file mode 100644 index 1eb9aa72..00000000 --- a/src/Yavsc.Server/Migrations/2016/20160322152206_balance.Designer.cs +++ /dev/null @@ -1,579 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20160322152206_balance")] - partial class balance - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("YavscWeb.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired(); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("Description"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("YavscWeb.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("YavscWeb.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.BaseProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("Name"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId") - .IsRequired(); - - b.Property("bcontent"); - - b.Property("modified"); - - b.Property("photo"); - - b.Property("posted"); - - b.Property("rate"); - - b.Property("title"); - - b.Property("visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Book.Query", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("EventDate"); - - b.Property("Lag"); - - b.Property("LocationId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("UserId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.CircleMember", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CircleId") - .IsRequired(); - - b.Property("MemberId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Command", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Lag"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ArticleId"); - - b.Property("CommandId"); - - b.Property("Comment"); - - b.Property("Count"); - - b.Property("EstimateId"); - - b.Property("QueryId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CommandId"); - - b.Property("Description"); - - b.Property("Status"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.PerformerProfile", b => - { - b.Property("PerfomerId"); - - b.Property("AcceptGeoLocalisation"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("DailyCost"); - - b.Property("OrganisationAddressId"); - - b.Property("Rate"); - - b.Property("SIRET") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("WebSite"); - - b.HasKey("PerfomerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Depth"); - - b.Property("Description"); - - b.Property("Height"); - - b.Property("Name"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("YavscWeb.Models.AccountBalance", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithOne() - .HasForeignKey("YavscWeb.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("YavscWeb.Models.ApplicationUser", b => - { - b.HasOne("YavscWeb.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("YavscWeb.Models.BalanceImpact", b => - { - b.HasOne("YavscWeb.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Blog", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Book.Query", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("YavscWeb.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("YavscWeb.Models.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.CircleMember", b => - { - b.HasOne("YavscWeb.Models.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Command", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("YavscWeb.Models.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.CommandLine", b => - { - b.HasOne("YavscWeb.Models.BaseProduct") - .WithMany() - .HasForeignKey("ArticleId"); - - b.HasOne("YavscWeb.Models.Command") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("YavscWeb.Models.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("YavscWeb.Models.Book.Query") - .WithMany() - .HasForeignKey("QueryId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Contact", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Estimate", b => - { - b.HasOne("YavscWeb.Models.Command") - .WithMany() - .HasForeignKey("CommandId"); - }); - - modelBuilder.Entity("YavscWeb.Models.PerformerProfile", b => - { - b.HasOne("YavscWeb.Models.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("YavscWeb.Location") - .WithMany() - .HasForeignKey("OrganisationAddressId"); - - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerfomerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Service", b => - { - b.HasOne("YavscWeb.Models.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20160322152206_balance.cs b/src/Yavsc.Server/Migrations/2016/20160322152206_balance.cs deleted file mode 100644 index 976034ac..00000000 --- a/src/Yavsc.Server/Migrations/2016/20160322152206_balance.cs +++ /dev/null @@ -1,376 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class balance : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_AccountHistory_HistoryId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountHistory_TargetId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_Blog_ApplicationUser_AuthorId", table: "Blog"); - migrationBuilder.DropForeignKey(name: "FK_Query_ApplicationUser_ClientId", table: "Query"); - migrationBuilder.DropForeignKey(name: "FK_Query_Location_LocationId", table: "Query"); - migrationBuilder.DropForeignKey(name: "FK_Query_PerformerProfile_PerformerId", table: "Query"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Command_ApplicationUser_ClientId", table: "Command"); - migrationBuilder.DropForeignKey(name: "FK_Command_PerformerProfile_PerformerId", table: "Command"); - migrationBuilder.DropForeignKey(name: "FK_Contact_ApplicationUser_OwnerId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganisationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerfomerId", table: "PerformerProfile"); - migrationBuilder.DropColumn(name: "TargetId", table: "BalanceImpact"); - migrationBuilder.DropColumn(name: "HistoryId", table: "AccountBalance"); - migrationBuilder.DropTable("AccountHistory"); - migrationBuilder.AlterColumn( - name: "Impact", - table: "BalanceImpact", - nullable: false); - migrationBuilder.AddColumn( - name: "BalanceId", - table: "BalanceImpact", - nullable: false, - defaultValue: ""); - migrationBuilder.AlterColumn( - name: "Credits", - table: "AccountBalance", - nullable: false); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Blog_ApplicationUser_AuthorId", - table: "Blog", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Query_ApplicationUser_ClientId", - table: "Query", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Query_Location_LocationId", - table: "Query", - column: "LocationId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Query_PerformerProfile_PerformerId", - table: "Query", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerfomerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Command_ApplicationUser_ClientId", - table: "Command", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Command_PerformerProfile_PerformerId", - table: "Command", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerfomerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Contact_ApplicationUser_OwnerId", - table: "Contact", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganisationAddressId", - table: "PerformerProfile", - column: "OrganisationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerfomerId", - table: "PerformerProfile", - column: "PerfomerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_Blog_ApplicationUser_AuthorId", table: "Blog"); - migrationBuilder.DropForeignKey(name: "FK_Query_ApplicationUser_ClientId", table: "Query"); - migrationBuilder.DropForeignKey(name: "FK_Query_Location_LocationId", table: "Query"); - migrationBuilder.DropForeignKey(name: "FK_Query_PerformerProfile_PerformerId", table: "Query"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Command_ApplicationUser_ClientId", table: "Command"); - migrationBuilder.DropForeignKey(name: "FK_Command_PerformerProfile_PerformerId", table: "Command"); - migrationBuilder.DropForeignKey(name: "FK_Contact_ApplicationUser_OwnerId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganisationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerfomerId", table: "PerformerProfile"); - migrationBuilder.DropColumn(name: "BalanceId", table: "BalanceImpact"); - migrationBuilder.CreateTable( - name: "AccountHistory", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("Npgsql:Serial", true) - }, - constraints: table => - { - table.PrimaryKey("PK_AccountHistory", x => x.Id); - }); - migrationBuilder.AlterColumn( - name: "Impact", - table: "BalanceImpact", - nullable: false); - migrationBuilder.AddColumn( - name: "TargetId", - table: "BalanceImpact", - nullable: false, - defaultValue: 0L); - migrationBuilder.AlterColumn( - name: "Credits", - table: "AccountBalance", - nullable: false); - migrationBuilder.AddColumn( - name: "HistoryId", - table: "AccountBalance", - nullable: false, - defaultValue: 0L); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_AccountHistory_HistoryId", - table: "AccountBalance", - column: "HistoryId", - principalTable: "AccountHistory", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountHistory_TargetId", - table: "BalanceImpact", - column: "TargetId", - principalTable: "AccountHistory", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Blog_ApplicationUser_AuthorId", - table: "Blog", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Query_ApplicationUser_ClientId", - table: "Query", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Query_Location_LocationId", - table: "Query", - column: "LocationId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Query_PerformerProfile_PerformerId", - table: "Query", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerfomerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Command_ApplicationUser_ClientId", - table: "Command", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Command_PerformerProfile_PerformerId", - table: "Command", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerfomerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Contact_ApplicationUser_OwnerId", - table: "Contact", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganisationAddressId", - table: "PerformerProfile", - column: "OrganisationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerfomerId", - table: "PerformerProfile", - column: "PerfomerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20160401233357_circle.Designer.cs b/src/Yavsc.Server/Migrations/2016/20160401233357_circle.Designer.cs deleted file mode 100644 index a420d56f..00000000 --- a/src/Yavsc.Server/Migrations/2016/20160401233357_circle.Designer.cs +++ /dev/null @@ -1,603 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20160401233357_circle")] - partial class circle - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("YavscWeb.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired(); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("Description"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("YavscWeb.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("GoogleRegId"); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("YavscWeb.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.BaseProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("Name"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId") - .IsRequired(); - - b.Property("bcontent"); - - b.Property("modified"); - - b.Property("photo"); - - b.Property("posted"); - - b.Property("rate"); - - b.Property("title"); - - b.Property("visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Book.Query", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("EventDate"); - - b.Property("Lag"); - - b.Property("LocationId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.CircleMember", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CircleId") - .IsRequired(); - - b.Property("MemberId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Command", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Lag"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ArticleId"); - - b.Property("CommandId"); - - b.Property("Comment"); - - b.Property("Count"); - - b.Property("EstimateId"); - - b.Property("QueryId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CommandId"); - - b.Property("Description"); - - b.Property("Status"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("YavscWeb.Models.PerformerProfile", b => - { - b.Property("PerfomerId"); - - b.Property("AcceptGeoLocalisation"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("DailyCost"); - - b.Property("OrganisationAddressId"); - - b.Property("Rate"); - - b.Property("SIRET") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("WebSite"); - - b.HasKey("PerfomerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Depth"); - - b.Property("Description"); - - b.Property("Height"); - - b.Property("Name"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("YavscWeb.Models.AccountBalance", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithOne() - .HasForeignKey("YavscWeb.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("YavscWeb.Models.ApplicationUser", b => - { - b.HasOne("YavscWeb.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("YavscWeb.Models.BalanceImpact", b => - { - b.HasOne("YavscWeb.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Blog", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Book.Query", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("YavscWeb.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("YavscWeb.Models.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Circle", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.CircleMember", b => - { - b.HasOne("YavscWeb.Models.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Command", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("YavscWeb.Models.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.CommandLine", b => - { - b.HasOne("YavscWeb.Models.BaseProduct") - .WithMany() - .HasForeignKey("ArticleId"); - - b.HasOne("YavscWeb.Models.Command") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("YavscWeb.Models.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("YavscWeb.Models.Book.Query") - .WithMany() - .HasForeignKey("QueryId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Contact", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Estimate", b => - { - b.HasOne("YavscWeb.Models.Command") - .WithMany() - .HasForeignKey("CommandId"); - }); - - modelBuilder.Entity("YavscWeb.Models.PerformerProfile", b => - { - b.HasOne("YavscWeb.Models.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("YavscWeb.Location") - .WithMany() - .HasForeignKey("OrganisationAddressId"); - - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerfomerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Service", b => - { - b.HasOne("YavscWeb.Models.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20160401233357_circle.cs b/src/Yavsc.Server/Migrations/2016/20160401233357_circle.cs deleted file mode 100644 index 1f4c4970..00000000 --- a/src/Yavsc.Server/Migrations/2016/20160401233357_circle.cs +++ /dev/null @@ -1,360 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class circle : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_Blog_ApplicationUser_AuthorId", table: "Blog"); - migrationBuilder.DropForeignKey(name: "FK_Query_ApplicationUser_ClientId", table: "Query"); - migrationBuilder.DropForeignKey(name: "FK_Query_Location_LocationId", table: "Query"); - migrationBuilder.DropForeignKey(name: "FK_Query_PerformerProfile_PerformerId", table: "Query"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Command_ApplicationUser_ClientId", table: "Command"); - migrationBuilder.DropForeignKey(name: "FK_Command_PerformerProfile_PerformerId", table: "Command"); - migrationBuilder.DropForeignKey(name: "FK_Contact_ApplicationUser_OwnerId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganisationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerfomerId", table: "PerformerProfile"); - migrationBuilder.DropColumn(name: "UserId", table: "Circle"); - migrationBuilder.CreateTable( - name: "OAuth2Tokens", - columns: table => new - { - UserId = table.Column(nullable: false), - AccessToken = table.Column(nullable: true), - Expiration = table.Column(nullable: false), - RefreshToken = table.Column(nullable: true), - TokenType = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_OAuth2Tokens", x => x.UserId); - }); - migrationBuilder.AddColumn( - name: "OwnerId", - table: "Circle", - nullable: true); - migrationBuilder.AddColumn( - name: "GoogleRegId", - table: "AspNetUsers", - nullable: true); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Blog_ApplicationUser_AuthorId", - table: "Blog", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Query_ApplicationUser_ClientId", - table: "Query", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Query_Location_LocationId", - table: "Query", - column: "LocationId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Query_PerformerProfile_PerformerId", - table: "Query", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerfomerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Circle_ApplicationUser_OwnerId", - table: "Circle", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Command_ApplicationUser_ClientId", - table: "Command", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Command_PerformerProfile_PerformerId", - table: "Command", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerfomerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Contact_ApplicationUser_OwnerId", - table: "Contact", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganisationAddressId", - table: "PerformerProfile", - column: "OrganisationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerfomerId", - table: "PerformerProfile", - column: "PerfomerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_Blog_ApplicationUser_AuthorId", table: "Blog"); - migrationBuilder.DropForeignKey(name: "FK_Query_ApplicationUser_ClientId", table: "Query"); - migrationBuilder.DropForeignKey(name: "FK_Query_Location_LocationId", table: "Query"); - migrationBuilder.DropForeignKey(name: "FK_Query_PerformerProfile_PerformerId", table: "Query"); - migrationBuilder.DropForeignKey(name: "FK_Circle_ApplicationUser_OwnerId", table: "Circle"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Command_ApplicationUser_ClientId", table: "Command"); - migrationBuilder.DropForeignKey(name: "FK_Command_PerformerProfile_PerformerId", table: "Command"); - migrationBuilder.DropForeignKey(name: "FK_Contact_ApplicationUser_OwnerId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganisationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerfomerId", table: "PerformerProfile"); - migrationBuilder.DropColumn(name: "OwnerId", table: "Circle"); - migrationBuilder.DropColumn(name: "GoogleRegId", table: "AspNetUsers"); - migrationBuilder.DropTable("OAuth2Tokens"); - migrationBuilder.AddColumn( - name: "UserId", - table: "Circle", - nullable: true); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Blog_ApplicationUser_AuthorId", - table: "Blog", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Query_ApplicationUser_ClientId", - table: "Query", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Query_Location_LocationId", - table: "Query", - column: "LocationId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Query_PerformerProfile_PerformerId", - table: "Query", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerfomerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Command_ApplicationUser_ClientId", - table: "Command", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Command_PerformerProfile_PerformerId", - table: "Command", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerfomerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Contact_ApplicationUser_OwnerId", - table: "Contact", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganisationAddressId", - table: "PerformerProfile", - column: "OrganisationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerfomerId", - table: "PerformerProfile", - column: "PerfomerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20160402135146_calendar.Designer.cs b/src/Yavsc.Server/Migrations/2016/20160402135146_calendar.Designer.cs deleted file mode 100644 index db44795a..00000000 --- a/src/Yavsc.Server/Migrations/2016/20160402135146_calendar.Designer.cs +++ /dev/null @@ -1,607 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20160402135146_calendar")] - partial class calendar - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("YavscWeb.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired(); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("Description"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("YavscWeb.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("GoogleRegId"); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("YavscWeb.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.BaseProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("Name"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId") - .IsRequired(); - - b.Property("bcontent"); - - b.Property("modified"); - - b.Property("photo"); - - b.Property("posted"); - - b.Property("rate"); - - b.Property("title"); - - b.Property("visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Book.Query", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("EventDate"); - - b.Property("Lag"); - - b.Property("LocationId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.CircleMember", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CircleId") - .IsRequired(); - - b.Property("MemberId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Command", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Lag"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ArticleId"); - - b.Property("CommandId"); - - b.Property("Comment"); - - b.Property("Count"); - - b.Property("EstimateId"); - - b.Property("QueryId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CommandId"); - - b.Property("Description"); - - b.Property("Status"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("YavscWeb.Models.PerformerProfile", b => - { - b.Property("PerfomerId"); - - b.Property("AcceptGeoLocalisation"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("DailyCost"); - - b.Property("OrganisationAddressId"); - - b.Property("Rate"); - - b.Property("SIRET") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("WebSite"); - - b.HasKey("PerfomerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Depth"); - - b.Property("Description"); - - b.Property("Height"); - - b.Property("Name"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("YavscWeb.Models.AccountBalance", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithOne() - .HasForeignKey("YavscWeb.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("YavscWeb.Models.ApplicationUser", b => - { - b.HasOne("YavscWeb.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("YavscWeb.Models.BalanceImpact", b => - { - b.HasOne("YavscWeb.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Blog", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Book.Query", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("YavscWeb.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("YavscWeb.Models.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Circle", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.CircleMember", b => - { - b.HasOne("YavscWeb.Models.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Command", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("YavscWeb.Models.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.CommandLine", b => - { - b.HasOne("YavscWeb.Models.BaseProduct") - .WithMany() - .HasForeignKey("ArticleId"); - - b.HasOne("YavscWeb.Models.Command") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("YavscWeb.Models.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("YavscWeb.Models.Book.Query") - .WithMany() - .HasForeignKey("QueryId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Contact", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Estimate", b => - { - b.HasOne("YavscWeb.Models.Command") - .WithMany() - .HasForeignKey("CommandId"); - }); - - modelBuilder.Entity("YavscWeb.Models.PerformerProfile", b => - { - b.HasOne("YavscWeb.Models.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("YavscWeb.Location") - .WithMany() - .HasForeignKey("OrganisationAddressId"); - - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerfomerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Service", b => - { - b.HasOne("YavscWeb.Models.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20160402135146_calendar.cs b/src/Yavsc.Server/Migrations/2016/20160402135146_calendar.cs deleted file mode 100644 index bcb370a0..00000000 --- a/src/Yavsc.Server/Migrations/2016/20160402135146_calendar.cs +++ /dev/null @@ -1,333 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class calendar : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_Blog_ApplicationUser_AuthorId", table: "Blog"); - migrationBuilder.DropForeignKey(name: "FK_Query_ApplicationUser_ClientId", table: "Query"); - migrationBuilder.DropForeignKey(name: "FK_Query_Location_LocationId", table: "Query"); - migrationBuilder.DropForeignKey(name: "FK_Query_PerformerProfile_PerformerId", table: "Query"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Command_ApplicationUser_ClientId", table: "Command"); - migrationBuilder.DropForeignKey(name: "FK_Command_PerformerProfile_PerformerId", table: "Command"); - migrationBuilder.DropForeignKey(name: "FK_Contact_ApplicationUser_OwnerId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganisationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerfomerId", table: "PerformerProfile"); - migrationBuilder.AddColumn( - name: "DedicatedGoogleCalendar", - table: "AspNetUsers", - nullable: true); - migrationBuilder.AddColumn( - name: "ContactCredits", - table: "AccountBalance", - nullable: false, - defaultValue: 0L); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Blog_ApplicationUser_AuthorId", - table: "Blog", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Query_ApplicationUser_ClientId", - table: "Query", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Query_Location_LocationId", - table: "Query", - column: "LocationId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Query_PerformerProfile_PerformerId", - table: "Query", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerfomerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Command_ApplicationUser_ClientId", - table: "Command", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Command_PerformerProfile_PerformerId", - table: "Command", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerfomerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Contact_ApplicationUser_OwnerId", - table: "Contact", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganisationAddressId", - table: "PerformerProfile", - column: "OrganisationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerfomerId", - table: "PerformerProfile", - column: "PerfomerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_Blog_ApplicationUser_AuthorId", table: "Blog"); - migrationBuilder.DropForeignKey(name: "FK_Query_ApplicationUser_ClientId", table: "Query"); - migrationBuilder.DropForeignKey(name: "FK_Query_Location_LocationId", table: "Query"); - migrationBuilder.DropForeignKey(name: "FK_Query_PerformerProfile_PerformerId", table: "Query"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Command_ApplicationUser_ClientId", table: "Command"); - migrationBuilder.DropForeignKey(name: "FK_Command_PerformerProfile_PerformerId", table: "Command"); - migrationBuilder.DropForeignKey(name: "FK_Contact_ApplicationUser_OwnerId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganisationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerfomerId", table: "PerformerProfile"); - migrationBuilder.DropColumn(name: "DedicatedGoogleCalendar", table: "AspNetUsers"); - migrationBuilder.DropColumn(name: "ContactCredits", table: "AccountBalance"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Blog_ApplicationUser_AuthorId", - table: "Blog", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Query_ApplicationUser_ClientId", - table: "Query", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Query_Location_LocationId", - table: "Query", - column: "LocationId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Query_PerformerProfile_PerformerId", - table: "Query", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerfomerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Command_ApplicationUser_ClientId", - table: "Command", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Command_PerformerProfile_PerformerId", - table: "Command", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerfomerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Contact_ApplicationUser_OwnerId", - table: "Contact", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganisationAddressId", - table: "PerformerProfile", - column: "OrganisationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerfomerId", - table: "PerformerProfile", - column: "PerfomerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20160404110708_files.Designer.cs b/src/Yavsc.Server/Migrations/2016/20160404110708_files.Designer.cs deleted file mode 100644 index 261ebd9b..00000000 --- a/src/Yavsc.Server/Migrations/2016/20160404110708_files.Designer.cs +++ /dev/null @@ -1,611 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20160404110708_files")] - partial class files - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("YavscWeb.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired(); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("Description"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("YavscWeb.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("GoogleRegId"); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("YavscWeb.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.BaseProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("Name"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId") - .IsRequired(); - - b.Property("bcontent"); - - b.Property("modified"); - - b.Property("photo"); - - b.Property("posted"); - - b.Property("rate"); - - b.Property("title"); - - b.Property("visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Book.Query", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("EventDate"); - - b.Property("Lag"); - - b.Property("LocationId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.CircleMember", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CircleId") - .IsRequired(); - - b.Property("MemberId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Command", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Lag"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ArticleId"); - - b.Property("CommandId"); - - b.Property("Comment"); - - b.Property("Count"); - - b.Property("EstimateId"); - - b.Property("QueryId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFiles"); - - b.Property("AttachedGraphics"); - - b.Property("CommandId"); - - b.Property("Description"); - - b.Property("Status"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("YavscWeb.Models.PerformerProfile", b => - { - b.Property("PerfomerId"); - - b.Property("AcceptGeoLocalisation"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("DailyCost"); - - b.Property("OrganisationAddressId"); - - b.Property("Rate"); - - b.Property("SIRET") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("WebSite"); - - b.HasKey("PerfomerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Depth"); - - b.Property("Description"); - - b.Property("Height"); - - b.Property("Name"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("YavscWeb.Models.AccountBalance", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithOne() - .HasForeignKey("YavscWeb.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("YavscWeb.Models.ApplicationUser", b => - { - b.HasOne("YavscWeb.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("YavscWeb.Models.BalanceImpact", b => - { - b.HasOne("YavscWeb.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Blog", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Book.Query", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("YavscWeb.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("YavscWeb.Models.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Circle", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.CircleMember", b => - { - b.HasOne("YavscWeb.Models.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Command", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("YavscWeb.Models.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.CommandLine", b => - { - b.HasOne("YavscWeb.Models.BaseProduct") - .WithMany() - .HasForeignKey("ArticleId"); - - b.HasOne("YavscWeb.Models.Command") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("YavscWeb.Models.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("YavscWeb.Models.Book.Query") - .WithMany() - .HasForeignKey("QueryId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Contact", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Estimate", b => - { - b.HasOne("YavscWeb.Models.Command") - .WithMany() - .HasForeignKey("CommandId"); - }); - - modelBuilder.Entity("YavscWeb.Models.PerformerProfile", b => - { - b.HasOne("YavscWeb.Models.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("YavscWeb.Location") - .WithMany() - .HasForeignKey("OrganisationAddressId"); - - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerfomerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Service", b => - { - b.HasOne("YavscWeb.Models.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20160404110708_files.cs b/src/Yavsc.Server/Migrations/2016/20160404110708_files.cs deleted file mode 100644 index 62010a29..00000000 --- a/src/Yavsc.Server/Migrations/2016/20160404110708_files.cs +++ /dev/null @@ -1,332 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class files : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_Blog_ApplicationUser_AuthorId", table: "Blog"); - migrationBuilder.DropForeignKey(name: "FK_Query_ApplicationUser_ClientId", table: "Query"); - migrationBuilder.DropForeignKey(name: "FK_Query_Location_LocationId", table: "Query"); - migrationBuilder.DropForeignKey(name: "FK_Query_PerformerProfile_PerformerId", table: "Query"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Command_ApplicationUser_ClientId", table: "Command"); - migrationBuilder.DropForeignKey(name: "FK_Command_PerformerProfile_PerformerId", table: "Command"); - migrationBuilder.DropForeignKey(name: "FK_Contact_ApplicationUser_OwnerId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganisationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerfomerId", table: "PerformerProfile"); - migrationBuilder.AddColumn( - name: "AttachedFiles", - table: "Estimate", - nullable: true); - migrationBuilder.AddColumn( - name: "AttachedGraphics", - table: "Estimate", - nullable: true); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Blog_ApplicationUser_AuthorId", - table: "Blog", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Query_ApplicationUser_ClientId", - table: "Query", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Query_Location_LocationId", - table: "Query", - column: "LocationId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Query_PerformerProfile_PerformerId", - table: "Query", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerfomerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Command_ApplicationUser_ClientId", - table: "Command", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Command_PerformerProfile_PerformerId", - table: "Command", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerfomerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Contact_ApplicationUser_OwnerId", - table: "Contact", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganisationAddressId", - table: "PerformerProfile", - column: "OrganisationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerfomerId", - table: "PerformerProfile", - column: "PerfomerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_Blog_ApplicationUser_AuthorId", table: "Blog"); - migrationBuilder.DropForeignKey(name: "FK_Query_ApplicationUser_ClientId", table: "Query"); - migrationBuilder.DropForeignKey(name: "FK_Query_Location_LocationId", table: "Query"); - migrationBuilder.DropForeignKey(name: "FK_Query_PerformerProfile_PerformerId", table: "Query"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Command_ApplicationUser_ClientId", table: "Command"); - migrationBuilder.DropForeignKey(name: "FK_Command_PerformerProfile_PerformerId", table: "Command"); - migrationBuilder.DropForeignKey(name: "FK_Contact_ApplicationUser_OwnerId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganisationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerfomerId", table: "PerformerProfile"); - migrationBuilder.DropColumn(name: "AttachedFiles", table: "Estimate"); - migrationBuilder.DropColumn(name: "AttachedGraphics", table: "Estimate"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Blog_ApplicationUser_AuthorId", - table: "Blog", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Query_ApplicationUser_ClientId", - table: "Query", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Query_Location_LocationId", - table: "Query", - column: "LocationId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Query_PerformerProfile_PerformerId", - table: "Query", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerfomerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Command_ApplicationUser_ClientId", - table: "Command", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Command_PerformerProfile_PerformerId", - table: "Command", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerfomerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Contact_ApplicationUser_OwnerId", - table: "Contact", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganisationAddressId", - table: "PerformerProfile", - column: "OrganisationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerfomerId", - table: "PerformerProfile", - column: "PerfomerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20160404121446_estimate.Designer.cs b/src/Yavsc.Server/Migrations/2016/20160404121446_estimate.Designer.cs deleted file mode 100644 index 1a00b82f..00000000 --- a/src/Yavsc.Server/Migrations/2016/20160404121446_estimate.Designer.cs +++ /dev/null @@ -1,611 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20160404121446_estimate")] - partial class estimate - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("YavscWeb.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired(); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("Description"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("YavscWeb.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("GoogleRegId"); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("YavscWeb.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.BaseProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("Name"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId") - .IsRequired(); - - b.Property("bcontent"); - - b.Property("modified"); - - b.Property("photo"); - - b.Property("posted"); - - b.Property("rate"); - - b.Property("title"); - - b.Property("visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Book.Query", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("EventDate"); - - b.Property("Lag"); - - b.Property("LocationId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.CircleMember", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CircleId") - .IsRequired(); - - b.Property("MemberId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Command", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Lag"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ArticleId"); - - b.Property("CommandId"); - - b.Property("Comment"); - - b.Property("Count"); - - b.Property("EstimateId"); - - b.Property("QueryId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("CommandId"); - - b.Property("Description"); - - b.Property("Status"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("YavscWeb.Models.PerformerProfile", b => - { - b.Property("PerfomerId"); - - b.Property("AcceptGeoLocalisation"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("DailyCost"); - - b.Property("OrganisationAddressId"); - - b.Property("Rate"); - - b.Property("SIRET") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("WebSite"); - - b.HasKey("PerfomerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Depth"); - - b.Property("Description"); - - b.Property("Height"); - - b.Property("Name"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("YavscWeb.Models.AccountBalance", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithOne() - .HasForeignKey("YavscWeb.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("YavscWeb.Models.ApplicationUser", b => - { - b.HasOne("YavscWeb.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("YavscWeb.Models.BalanceImpact", b => - { - b.HasOne("YavscWeb.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Blog", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Book.Query", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("YavscWeb.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("YavscWeb.Models.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Circle", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.CircleMember", b => - { - b.HasOne("YavscWeb.Models.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Command", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("YavscWeb.Models.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.CommandLine", b => - { - b.HasOne("YavscWeb.Models.BaseProduct") - .WithMany() - .HasForeignKey("ArticleId"); - - b.HasOne("YavscWeb.Models.Command") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("YavscWeb.Models.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("YavscWeb.Models.Book.Query") - .WithMany() - .HasForeignKey("QueryId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Contact", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Estimate", b => - { - b.HasOne("YavscWeb.Models.Command") - .WithMany() - .HasForeignKey("CommandId"); - }); - - modelBuilder.Entity("YavscWeb.Models.PerformerProfile", b => - { - b.HasOne("YavscWeb.Models.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("YavscWeb.Location") - .WithMany() - .HasForeignKey("OrganisationAddressId"); - - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerfomerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Service", b => - { - b.HasOne("YavscWeb.Models.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20160404121446_estimate.cs b/src/Yavsc.Server/Migrations/2016/20160404121446_estimate.cs deleted file mode 100644 index b4c17b52..00000000 --- a/src/Yavsc.Server/Migrations/2016/20160404121446_estimate.cs +++ /dev/null @@ -1,342 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class estimate : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_Blog_ApplicationUser_AuthorId", table: "Blog"); - migrationBuilder.DropForeignKey(name: "FK_Query_ApplicationUser_ClientId", table: "Query"); - migrationBuilder.DropForeignKey(name: "FK_Query_Location_LocationId", table: "Query"); - migrationBuilder.DropForeignKey(name: "FK_Query_PerformerProfile_PerformerId", table: "Query"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Command_ApplicationUser_ClientId", table: "Command"); - migrationBuilder.DropForeignKey(name: "FK_Command_PerformerProfile_PerformerId", table: "Command"); - migrationBuilder.DropForeignKey(name: "FK_Contact_ApplicationUser_OwnerId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganisationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerfomerId", table: "PerformerProfile"); - migrationBuilder.DropColumn(name: "AttachedFiles", table: "Estimate"); - migrationBuilder.DropColumn(name: "AttachedGraphics", table: "Estimate"); - migrationBuilder.AddColumn( - name: "AttachedFilesString", - table: "Estimate", - nullable: true); - migrationBuilder.AddColumn( - name: "AttachedGraphicsString", - table: "Estimate", - nullable: true); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Blog_ApplicationUser_AuthorId", - table: "Blog", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Query_ApplicationUser_ClientId", - table: "Query", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Query_Location_LocationId", - table: "Query", - column: "LocationId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Query_PerformerProfile_PerformerId", - table: "Query", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerfomerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Command_ApplicationUser_ClientId", - table: "Command", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Command_PerformerProfile_PerformerId", - table: "Command", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerfomerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Contact_ApplicationUser_OwnerId", - table: "Contact", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganisationAddressId", - table: "PerformerProfile", - column: "OrganisationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerfomerId", - table: "PerformerProfile", - column: "PerfomerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_Blog_ApplicationUser_AuthorId", table: "Blog"); - migrationBuilder.DropForeignKey(name: "FK_Query_ApplicationUser_ClientId", table: "Query"); - migrationBuilder.DropForeignKey(name: "FK_Query_Location_LocationId", table: "Query"); - migrationBuilder.DropForeignKey(name: "FK_Query_PerformerProfile_PerformerId", table: "Query"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Command_ApplicationUser_ClientId", table: "Command"); - migrationBuilder.DropForeignKey(name: "FK_Command_PerformerProfile_PerformerId", table: "Command"); - migrationBuilder.DropForeignKey(name: "FK_Contact_ApplicationUser_OwnerId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganisationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerfomerId", table: "PerformerProfile"); - migrationBuilder.DropColumn(name: "AttachedFilesString", table: "Estimate"); - migrationBuilder.DropColumn(name: "AttachedGraphicsString", table: "Estimate"); - migrationBuilder.AddColumn( - name: "AttachedFiles", - table: "Estimate", - nullable: true); - migrationBuilder.AddColumn( - name: "AttachedGraphics", - table: "Estimate", - nullable: true); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Blog_ApplicationUser_AuthorId", - table: "Blog", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Query_ApplicationUser_ClientId", - table: "Query", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Query_Location_LocationId", - table: "Query", - column: "LocationId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Query_PerformerProfile_PerformerId", - table: "Query", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerfomerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Command_ApplicationUser_ClientId", - table: "Command", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Command_PerformerProfile_PerformerId", - table: "Command", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerfomerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Contact_ApplicationUser_OwnerId", - table: "Contact", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganisationAddressId", - table: "PerformerProfile", - column: "OrganisationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerfomerId", - table: "PerformerProfile", - column: "PerfomerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20160404130359_estimateCommand.Designer.cs b/src/Yavsc.Server/Migrations/2016/20160404130359_estimateCommand.Designer.cs deleted file mode 100644 index 1cb357ae..00000000 --- a/src/Yavsc.Server/Migrations/2016/20160404130359_estimateCommand.Designer.cs +++ /dev/null @@ -1,611 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20160404130359_estimateCommand")] - partial class estimateCommand - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("YavscWeb.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired(); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("Description"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("YavscWeb.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("GoogleRegId"); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("YavscWeb.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.BaseProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("Name"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId") - .IsRequired(); - - b.Property("bcontent"); - - b.Property("modified"); - - b.Property("photo"); - - b.Property("posted"); - - b.Property("rate"); - - b.Property("title"); - - b.Property("visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Book.Query", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("EventDate"); - - b.Property("Lag"); - - b.Property("LocationId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.CircleMember", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CircleId") - .IsRequired(); - - b.Property("MemberId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Command", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Lag"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ArticleId"); - - b.Property("CommandId"); - - b.Property("Comment"); - - b.Property("Count"); - - b.Property("EstimateId"); - - b.Property("QueryId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("CommandId"); - - b.Property("Description"); - - b.Property("Status"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("YavscWeb.Models.PerformerProfile", b => - { - b.Property("PerfomerId"); - - b.Property("AcceptGeoLocalisation"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("DailyCost"); - - b.Property("OrganisationAddressId"); - - b.Property("Rate"); - - b.Property("SIRET") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("WebSite"); - - b.HasKey("PerfomerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Depth"); - - b.Property("Description"); - - b.Property("Height"); - - b.Property("Name"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("YavscWeb.Models.AccountBalance", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithOne() - .HasForeignKey("YavscWeb.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("YavscWeb.Models.ApplicationUser", b => - { - b.HasOne("YavscWeb.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("YavscWeb.Models.BalanceImpact", b => - { - b.HasOne("YavscWeb.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Blog", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Book.Query", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("YavscWeb.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("YavscWeb.Models.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Circle", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.CircleMember", b => - { - b.HasOne("YavscWeb.Models.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Command", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("YavscWeb.Models.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.CommandLine", b => - { - b.HasOne("YavscWeb.Models.BaseProduct") - .WithMany() - .HasForeignKey("ArticleId"); - - b.HasOne("YavscWeb.Models.Command") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("YavscWeb.Models.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("YavscWeb.Models.Book.Query") - .WithMany() - .HasForeignKey("QueryId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Contact", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Estimate", b => - { - b.HasOne("YavscWeb.Models.Command") - .WithMany() - .HasForeignKey("CommandId"); - }); - - modelBuilder.Entity("YavscWeb.Models.PerformerProfile", b => - { - b.HasOne("YavscWeb.Models.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("YavscWeb.Location") - .WithMany() - .HasForeignKey("OrganisationAddressId"); - - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerfomerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Service", b => - { - b.HasOne("YavscWeb.Models.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20160404130359_estimateCommand.cs b/src/Yavsc.Server/Migrations/2016/20160404130359_estimateCommand.cs deleted file mode 100644 index 1d3108a1..00000000 --- a/src/Yavsc.Server/Migrations/2016/20160404130359_estimateCommand.cs +++ /dev/null @@ -1,322 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class estimateCommand : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_Blog_ApplicationUser_AuthorId", table: "Blog"); - migrationBuilder.DropForeignKey(name: "FK_Query_ApplicationUser_ClientId", table: "Query"); - migrationBuilder.DropForeignKey(name: "FK_Query_Location_LocationId", table: "Query"); - migrationBuilder.DropForeignKey(name: "FK_Query_PerformerProfile_PerformerId", table: "Query"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Command_ApplicationUser_ClientId", table: "Command"); - migrationBuilder.DropForeignKey(name: "FK_Command_PerformerProfile_PerformerId", table: "Command"); - migrationBuilder.DropForeignKey(name: "FK_Contact_ApplicationUser_OwnerId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganisationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerfomerId", table: "PerformerProfile"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Blog_ApplicationUser_AuthorId", - table: "Blog", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Query_ApplicationUser_ClientId", - table: "Query", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Query_Location_LocationId", - table: "Query", - column: "LocationId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Query_PerformerProfile_PerformerId", - table: "Query", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerfomerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Command_ApplicationUser_ClientId", - table: "Command", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Command_PerformerProfile_PerformerId", - table: "Command", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerfomerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Contact_ApplicationUser_OwnerId", - table: "Contact", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganisationAddressId", - table: "PerformerProfile", - column: "OrganisationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerfomerId", - table: "PerformerProfile", - column: "PerfomerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_Blog_ApplicationUser_AuthorId", table: "Blog"); - migrationBuilder.DropForeignKey(name: "FK_Query_ApplicationUser_ClientId", table: "Query"); - migrationBuilder.DropForeignKey(name: "FK_Query_Location_LocationId", table: "Query"); - migrationBuilder.DropForeignKey(name: "FK_Query_PerformerProfile_PerformerId", table: "Query"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Command_ApplicationUser_ClientId", table: "Command"); - migrationBuilder.DropForeignKey(name: "FK_Command_PerformerProfile_PerformerId", table: "Command"); - migrationBuilder.DropForeignKey(name: "FK_Contact_ApplicationUser_OwnerId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganisationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerfomerId", table: "PerformerProfile"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Blog_ApplicationUser_AuthorId", - table: "Blog", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Query_ApplicationUser_ClientId", - table: "Query", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Query_Location_LocationId", - table: "Query", - column: "LocationId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Query_PerformerProfile_PerformerId", - table: "Query", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerfomerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Command_ApplicationUser_ClientId", - table: "Command", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Command_PerformerProfile_PerformerId", - table: "Command", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerfomerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Contact_ApplicationUser_OwnerId", - table: "Contact", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganisationAddressId", - table: "PerformerProfile", - column: "OrganisationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerfomerId", - table: "PerformerProfile", - column: "PerfomerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20160405091432_booking.Designer.cs b/src/Yavsc.Server/Migrations/2016/20160405091432_booking.Designer.cs deleted file mode 100644 index 59537d78..00000000 --- a/src/Yavsc.Server/Migrations/2016/20160405091432_booking.Designer.cs +++ /dev/null @@ -1,611 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20160405091432_booking")] - partial class booking - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("YavscWeb.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired(); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("Description"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("YavscWeb.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("GoogleRegId"); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("YavscWeb.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.BaseProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("Name"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId") - .IsRequired(); - - b.Property("bcontent"); - - b.Property("modified"); - - b.Property("photo"); - - b.Property("posted"); - - b.Property("rate"); - - b.Property("title"); - - b.Property("visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Book.BookQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("EventDate"); - - b.Property("Lag"); - - b.Property("LocationId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.CircleMember", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CircleId") - .IsRequired(); - - b.Property("MemberId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Command", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Lag"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ArticleId"); - - b.Property("BookQueryId"); - - b.Property("CommandId"); - - b.Property("Comment"); - - b.Property("Count"); - - b.Property("EstimateId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("CommandId"); - - b.Property("Description"); - - b.Property("Status"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("YavscWeb.Models.PerformerProfile", b => - { - b.Property("PerfomerId"); - - b.Property("AcceptGeoLocalisation"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("DailyCost"); - - b.Property("OrganisationAddressId"); - - b.Property("Rate"); - - b.Property("SIRET") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("WebSite"); - - b.HasKey("PerfomerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Depth"); - - b.Property("Description"); - - b.Property("Height"); - - b.Property("Name"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("YavscWeb.Models.AccountBalance", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithOne() - .HasForeignKey("YavscWeb.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("YavscWeb.Models.ApplicationUser", b => - { - b.HasOne("YavscWeb.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("YavscWeb.Models.BalanceImpact", b => - { - b.HasOne("YavscWeb.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Blog", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Book.BookQuery", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("YavscWeb.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("YavscWeb.Models.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Circle", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.CircleMember", b => - { - b.HasOne("YavscWeb.Models.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Command", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("YavscWeb.Models.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.CommandLine", b => - { - b.HasOne("YavscWeb.Models.BaseProduct") - .WithMany() - .HasForeignKey("ArticleId"); - - b.HasOne("YavscWeb.Models.Book.BookQuery") - .WithMany() - .HasForeignKey("BookQueryId"); - - b.HasOne("YavscWeb.Models.Command") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("YavscWeb.Models.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Contact", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Estimate", b => - { - b.HasOne("YavscWeb.Models.Command") - .WithMany() - .HasForeignKey("CommandId"); - }); - - modelBuilder.Entity("YavscWeb.Models.PerformerProfile", b => - { - b.HasOne("YavscWeb.Models.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("YavscWeb.Location") - .WithMany() - .HasForeignKey("OrganisationAddressId"); - - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerfomerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Service", b => - { - b.HasOne("YavscWeb.Models.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20160405091432_booking.cs b/src/Yavsc.Server/Migrations/2016/20160405091432_booking.cs deleted file mode 100644 index 50654a1c..00000000 --- a/src/Yavsc.Server/Migrations/2016/20160405091432_booking.cs +++ /dev/null @@ -1,374 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class booking : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_Blog_ApplicationUser_AuthorId", table: "Blog"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Command_ApplicationUser_ClientId", table: "Command"); - migrationBuilder.DropForeignKey(name: "FK_Command_PerformerProfile_PerformerId", table: "Command"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Query_QueryId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Contact_ApplicationUser_OwnerId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganisationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerfomerId", table: "PerformerProfile"); - migrationBuilder.DropColumn(name: "QueryId", table: "CommandLine"); - migrationBuilder.DropTable("Query"); - migrationBuilder.CreateTable( - name: "BookQuery", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("Npgsql:Serial", true), - ClientId = table.Column(nullable: false), - EventDate = table.Column(nullable: false), - Lag = table.Column(nullable: false), - LocationId = table.Column(nullable: false), - PerformerId = table.Column(nullable: false), - Previsional = table.Column(nullable: true), - ValidationDate = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_BookQuery", x => x.Id); - table.ForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - column: x => x.ClientId, - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - table.ForeignKey( - name: "FK_BookQuery_Location_LocationId", - column: x => x.LocationId, - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - table.ForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - column: x => x.PerformerId, - principalTable: "PerformerProfile", - principalColumn: "PerfomerId", - onDelete: ReferentialAction.Cascade); - }); - migrationBuilder.AddColumn( - name: "BookQueryId", - table: "CommandLine", - nullable: true); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Blog_ApplicationUser_AuthorId", - table: "Blog", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Command_ApplicationUser_ClientId", - table: "Command", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Command_PerformerProfile_PerformerId", - table: "Command", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerfomerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_BookQuery_BookQueryId", - table: "CommandLine", - column: "BookQueryId", - principalTable: "BookQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Contact_ApplicationUser_OwnerId", - table: "Contact", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganisationAddressId", - table: "PerformerProfile", - column: "OrganisationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerfomerId", - table: "PerformerProfile", - column: "PerfomerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_Blog_ApplicationUser_AuthorId", table: "Blog"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Command_ApplicationUser_ClientId", table: "Command"); - migrationBuilder.DropForeignKey(name: "FK_Command_PerformerProfile_PerformerId", table: "Command"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_BookQuery_BookQueryId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Contact_ApplicationUser_OwnerId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganisationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerfomerId", table: "PerformerProfile"); - migrationBuilder.DropColumn(name: "BookQueryId", table: "CommandLine"); - migrationBuilder.DropTable("BookQuery"); - migrationBuilder.CreateTable( - name: "Query", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("Npgsql:Serial", true), - ClientId = table.Column(nullable: false), - EventDate = table.Column(nullable: false), - Lag = table.Column(nullable: false), - LocationId = table.Column(nullable: false), - PerformerId = table.Column(nullable: false), - Previsional = table.Column(nullable: true), - ValidationDate = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Query", x => x.Id); - table.ForeignKey( - name: "FK_Query_ApplicationUser_ClientId", - column: x => x.ClientId, - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - table.ForeignKey( - name: "FK_Query_Location_LocationId", - column: x => x.LocationId, - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - table.ForeignKey( - name: "FK_Query_PerformerProfile_PerformerId", - column: x => x.PerformerId, - principalTable: "PerformerProfile", - principalColumn: "PerfomerId", - onDelete: ReferentialAction.Restrict); - }); - migrationBuilder.AddColumn( - name: "QueryId", - table: "CommandLine", - nullable: true); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Blog_ApplicationUser_AuthorId", - table: "Blog", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Command_ApplicationUser_ClientId", - table: "Command", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Command_PerformerProfile_PerformerId", - table: "Command", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerfomerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Query_QueryId", - table: "CommandLine", - column: "QueryId", - principalTable: "Query", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Contact_ApplicationUser_OwnerId", - table: "Contact", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganisationAddressId", - table: "PerformerProfile", - column: "OrganisationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerfomerId", - table: "PerformerProfile", - column: "PerfomerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20160407112403_dailycost.Designer.cs b/src/Yavsc.Server/Migrations/2016/20160407112403_dailycost.Designer.cs deleted file mode 100644 index 43affc91..00000000 --- a/src/Yavsc.Server/Migrations/2016/20160407112403_dailycost.Designer.cs +++ /dev/null @@ -1,613 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20160407112403_dailycost")] - partial class dailycost - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("YavscWeb.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired(); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("Description"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("YavscWeb.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("GoogleRegId"); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("YavscWeb.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.BaseProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("Name"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId") - .IsRequired(); - - b.Property("bcontent"); - - b.Property("modified"); - - b.Property("photo"); - - b.Property("posted"); - - b.Property("rate"); - - b.Property("title"); - - b.Property("visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Book.BookQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("EventDate"); - - b.Property("Lag"); - - b.Property("LocationId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.CircleMember", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CircleId") - .IsRequired(); - - b.Property("MemberId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Command", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Lag"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ArticleId"); - - b.Property("BookQueryId"); - - b.Property("CommandId"); - - b.Property("Comment"); - - b.Property("Count"); - - b.Property("EstimateId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("CommandId"); - - b.Property("Description"); - - b.Property("Status"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("YavscWeb.Models.PerformerProfile", b => - { - b.Property("PerfomerId"); - - b.Property("AcceptGeoLocalisation"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganisationAddressId"); - - b.Property("Rate"); - - b.Property("SIRET") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("WebSite"); - - b.HasKey("PerfomerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Depth"); - - b.Property("Description"); - - b.Property("Height"); - - b.Property("Name"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("YavscWeb.Models.AccountBalance", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithOne() - .HasForeignKey("YavscWeb.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("YavscWeb.Models.ApplicationUser", b => - { - b.HasOne("YavscWeb.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("YavscWeb.Models.BalanceImpact", b => - { - b.HasOne("YavscWeb.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Blog", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Book.BookQuery", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("YavscWeb.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("YavscWeb.Models.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Circle", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.CircleMember", b => - { - b.HasOne("YavscWeb.Models.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Command", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("YavscWeb.Models.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.CommandLine", b => - { - b.HasOne("YavscWeb.Models.BaseProduct") - .WithMany() - .HasForeignKey("ArticleId"); - - b.HasOne("YavscWeb.Models.Book.BookQuery") - .WithMany() - .HasForeignKey("BookQueryId"); - - b.HasOne("YavscWeb.Models.Command") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("YavscWeb.Models.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Contact", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Estimate", b => - { - b.HasOne("YavscWeb.Models.Command") - .WithMany() - .HasForeignKey("CommandId"); - }); - - modelBuilder.Entity("YavscWeb.Models.PerformerProfile", b => - { - b.HasOne("YavscWeb.Models.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("YavscWeb.Location") - .WithMany() - .HasForeignKey("OrganisationAddressId"); - - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerfomerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Service", b => - { - b.HasOne("YavscWeb.Models.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20160407112403_dailycost.cs b/src/Yavsc.Server/Migrations/2016/20160407112403_dailycost.cs deleted file mode 100644 index b79dde51..00000000 --- a/src/Yavsc.Server/Migrations/2016/20160407112403_dailycost.cs +++ /dev/null @@ -1,337 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -namespace Yavsc.Migrations -{ - public partial class dailycost : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_Blog_ApplicationUser_AuthorId", table: "Blog"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_Location_LocationId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Command_ApplicationUser_ClientId", table: "Command"); - migrationBuilder.DropForeignKey(name: "FK_Command_PerformerProfile_PerformerId", table: "Command"); - migrationBuilder.DropForeignKey(name: "FK_Contact_ApplicationUser_OwnerId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganisationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerfomerId", table: "PerformerProfile"); - migrationBuilder.DropColumn(name: "DailyCost", table: "PerformerProfile"); - migrationBuilder.AddColumn( - name: "MaxDailyCost", - table: "PerformerProfile", - nullable: true); - migrationBuilder.AddColumn( - name: "MinDailyCost", - table: "PerformerProfile", - nullable: true); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Blog_ApplicationUser_AuthorId", - table: "Blog", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_Location_LocationId", - table: "BookQuery", - column: "LocationId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerfomerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Command_ApplicationUser_ClientId", - table: "Command", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Command_PerformerProfile_PerformerId", - table: "Command", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerfomerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Contact_ApplicationUser_OwnerId", - table: "Contact", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganisationAddressId", - table: "PerformerProfile", - column: "OrganisationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerfomerId", - table: "PerformerProfile", - column: "PerfomerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_Blog_ApplicationUser_AuthorId", table: "Blog"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_Location_LocationId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Command_ApplicationUser_ClientId", table: "Command"); - migrationBuilder.DropForeignKey(name: "FK_Command_PerformerProfile_PerformerId", table: "Command"); - migrationBuilder.DropForeignKey(name: "FK_Contact_ApplicationUser_OwnerId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganisationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerfomerId", table: "PerformerProfile"); - migrationBuilder.DropColumn(name: "MaxDailyCost", table: "PerformerProfile"); - migrationBuilder.DropColumn(name: "MinDailyCost", table: "PerformerProfile"); - migrationBuilder.AddColumn( - name: "DailyCost", - table: "PerformerProfile", - nullable: false, - defaultValue: 0); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Blog_ApplicationUser_AuthorId", - table: "Blog", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_Location_LocationId", - table: "BookQuery", - column: "LocationId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerfomerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Command_ApplicationUser_ClientId", - table: "Command", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Command_PerformerProfile_PerformerId", - table: "Command", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerfomerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Contact_ApplicationUser_OwnerId", - table: "Contact", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganisationAddressId", - table: "PerformerProfile", - column: "OrganisationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerfomerId", - table: "PerformerProfile", - column: "PerfomerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20160418114001_commandCreation.Designer.cs b/src/Yavsc.Server/Migrations/2016/20160418114001_commandCreation.Designer.cs deleted file mode 100644 index a5e518f1..00000000 --- a/src/Yavsc.Server/Migrations/2016/20160418114001_commandCreation.Designer.cs +++ /dev/null @@ -1,619 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20160418114001_commandCreation")] - partial class commandCreation - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("YavscWeb.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired(); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("Description"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("YavscWeb.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("GoogleRegId"); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("YavscWeb.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.BaseProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("Name"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId") - .IsRequired(); - - b.Property("bcontent"); - - b.Property("modified"); - - b.Property("photo"); - - b.Property("posted"); - - b.Property("rate"); - - b.Property("title"); - - b.Property("visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Booking.BookQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("CreationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("EventDate"); - - b.Property("Lag"); - - b.Property("LocationId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.CircleMember", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CircleId") - .IsRequired(); - - b.Property("MemberId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Command", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("CreationDate"); - - b.Property("Lag"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ArticleId"); - - b.Property("BookQueryId"); - - b.Property("CommandId"); - - b.Property("Comment"); - - b.Property("Count"); - - b.Property("EstimateId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("CommandId"); - - b.Property("Description"); - - b.Property("Status"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("YavscWeb.Models.PerformerProfile", b => - { - b.Property("PerfomerId"); - - b.Property("AcceptGeoLocalisation"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganisationAddressId"); - - b.Property("Rate"); - - b.Property("SIRET") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("WebSite"); - - b.HasKey("PerfomerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Depth"); - - b.Property("Description"); - - b.Property("Height"); - - b.Property("Name"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("YavscWeb.Models.AccountBalance", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithOne() - .HasForeignKey("YavscWeb.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("YavscWeb.Models.ApplicationUser", b => - { - b.HasOne("YavscWeb.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("YavscWeb.Models.BalanceImpact", b => - { - b.HasOne("YavscWeb.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Blog", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Booking.BookQuery", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("YavscWeb.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("YavscWeb.Models.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Circle", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.CircleMember", b => - { - b.HasOne("YavscWeb.Models.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Command", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("YavscWeb.Models.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.CommandLine", b => - { - b.HasOne("YavscWeb.Models.BaseProduct") - .WithMany() - .HasForeignKey("ArticleId"); - - b.HasOne("YavscWeb.Models.Booking.BookQuery") - .WithMany() - .HasForeignKey("BookQueryId"); - - b.HasOne("YavscWeb.Models.Command") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("YavscWeb.Models.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Contact", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Estimate", b => - { - b.HasOne("YavscWeb.Models.Command") - .WithMany() - .HasForeignKey("CommandId"); - }); - - modelBuilder.Entity("YavscWeb.Models.PerformerProfile", b => - { - b.HasOne("YavscWeb.Models.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("YavscWeb.Location") - .WithMany() - .HasForeignKey("OrganisationAddressId"); - - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerfomerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Service", b => - { - b.HasOne("YavscWeb.Models.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20160418114001_commandCreation.cs b/src/Yavsc.Server/Migrations/2016/20160418114001_commandCreation.cs deleted file mode 100644 index e1f48ae5..00000000 --- a/src/Yavsc.Server/Migrations/2016/20160418114001_commandCreation.cs +++ /dev/null @@ -1,334 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class commandCreation : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_Blog_ApplicationUser_AuthorId", table: "Blog"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_Location_LocationId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Command_ApplicationUser_ClientId", table: "Command"); - migrationBuilder.DropForeignKey(name: "FK_Command_PerformerProfile_PerformerId", table: "Command"); - migrationBuilder.DropForeignKey(name: "FK_Contact_ApplicationUser_OwnerId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganisationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerfomerId", table: "PerformerProfile"); - migrationBuilder.AddColumn( - name: "CreationDate", - table: "Command", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - migrationBuilder.AddColumn( - name: "CreationDate", - table: "BookQuery", - nullable: false, - defaultValueSql: "LOCALTIMESTAMP"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Blog_ApplicationUser_AuthorId", - table: "Blog", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_Location_LocationId", - table: "BookQuery", - column: "LocationId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerfomerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Command_ApplicationUser_ClientId", - table: "Command", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Command_PerformerProfile_PerformerId", - table: "Command", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerfomerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Contact_ApplicationUser_OwnerId", - table: "Contact", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganisationAddressId", - table: "PerformerProfile", - column: "OrganisationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerfomerId", - table: "PerformerProfile", - column: "PerfomerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_Blog_ApplicationUser_AuthorId", table: "Blog"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_Location_LocationId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Command_ApplicationUser_ClientId", table: "Command"); - migrationBuilder.DropForeignKey(name: "FK_Command_PerformerProfile_PerformerId", table: "Command"); - migrationBuilder.DropForeignKey(name: "FK_Contact_ApplicationUser_OwnerId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganisationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerfomerId", table: "PerformerProfile"); - migrationBuilder.DropColumn(name: "CreationDate", table: "Command"); - migrationBuilder.DropColumn(name: "CreationDate", table: "BookQuery"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Blog_ApplicationUser_AuthorId", - table: "Blog", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_Location_LocationId", - table: "BookQuery", - column: "LocationId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerfomerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Command_ApplicationUser_ClientId", - table: "Command", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Command_PerformerProfile_PerformerId", - table: "Command", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerfomerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Contact_ApplicationUser_OwnerId", - table: "Contact", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganisationAddressId", - table: "PerformerProfile", - column: "OrganisationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerfomerId", - table: "PerformerProfile", - column: "PerfomerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20160427123737_perfoffer.Designer.cs b/src/Yavsc.Server/Migrations/2016/20160427123737_perfoffer.Designer.cs deleted file mode 100644 index 4aeea15c..00000000 --- a/src/Yavsc.Server/Migrations/2016/20160427123737_perfoffer.Designer.cs +++ /dev/null @@ -1,619 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20160427123737_perfoffer")] - partial class perfoffer - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("YavscWeb.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired(); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("ActorDenomination"); - - b.Property("Description"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("YavscWeb.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("GoogleRegId"); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("YavscWeb.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.BaseProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("Name"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId") - .IsRequired(); - - b.Property("bcontent"); - - b.Property("modified"); - - b.Property("photo"); - - b.Property("posted"); - - b.Property("rate"); - - b.Property("title"); - - b.Property("visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Booking.BookQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("CreationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("EventDate"); - - b.Property("Lag"); - - b.Property("LocationId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.CircleMember", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CircleId") - .IsRequired(); - - b.Property("MemberId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Command", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("CreationDate"); - - b.Property("Lag"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ArticleId"); - - b.Property("BookQueryId"); - - b.Property("CommandId"); - - b.Property("Comment"); - - b.Property("Count"); - - b.Property("EstimateId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("CommandId"); - - b.Property("Description"); - - b.Property("Status"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("YavscWeb.Models.PerformerProfile", b => - { - b.Property("PerfomerId"); - - b.Property("AcceptGeoLocalisation"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OfferId"); - - b.Property("OrganisationAddressId"); - - b.Property("Rate"); - - b.Property("SIRET") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("WebSite"); - - b.HasKey("PerfomerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("YavscWeb.Models.AccountBalance", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithOne() - .HasForeignKey("YavscWeb.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("YavscWeb.Models.ApplicationUser", b => - { - b.HasOne("YavscWeb.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("YavscWeb.Models.BalanceImpact", b => - { - b.HasOne("YavscWeb.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Blog", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Booking.BookQuery", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("YavscWeb.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("YavscWeb.Models.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Circle", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.CircleMember", b => - { - b.HasOne("YavscWeb.Models.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Command", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("YavscWeb.Models.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.CommandLine", b => - { - b.HasOne("YavscWeb.Models.BaseProduct") - .WithMany() - .HasForeignKey("ArticleId"); - - b.HasOne("YavscWeb.Models.Booking.BookQuery") - .WithMany() - .HasForeignKey("BookQueryId"); - - b.HasOne("YavscWeb.Models.Command") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("YavscWeb.Models.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Contact", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Estimate", b => - { - b.HasOne("YavscWeb.Models.Command") - .WithMany() - .HasForeignKey("CommandId"); - }); - - modelBuilder.Entity("YavscWeb.Models.PerformerProfile", b => - { - b.HasOne("YavscWeb.Models.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("YavscWeb.Models.Service") - .WithMany() - .HasForeignKey("OfferId"); - - b.HasOne("YavscWeb.Location") - .WithMany() - .HasForeignKey("OrganisationAddressId"); - - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerfomerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Service", b => - { - b.HasOne("YavscWeb.Models.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20160427123737_perfoffer.cs b/src/Yavsc.Server/Migrations/2016/20160427123737_perfoffer.cs deleted file mode 100644 index bfd21dee..00000000 --- a/src/Yavsc.Server/Migrations/2016/20160427123737_perfoffer.cs +++ /dev/null @@ -1,363 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -namespace Yavsc.Migrations -{ - public partial class perfoffer : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_Blog_ApplicationUser_AuthorId", table: "Blog"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_Location_LocationId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Command_ApplicationUser_ClientId", table: "Command"); - migrationBuilder.DropForeignKey(name: "FK_Command_PerformerProfile_PerformerId", table: "Command"); - migrationBuilder.DropForeignKey(name: "FK_Contact_ApplicationUser_OwnerId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganisationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerfomerId", table: "PerformerProfile"); - migrationBuilder.DropColumn(name: "Depth", table: "Service"); - migrationBuilder.DropColumn(name: "Height", table: "Service"); - migrationBuilder.DropColumn(name: "Weight", table: "Service"); - migrationBuilder.DropColumn(name: "Width", table: "Service"); - migrationBuilder.AddColumn( - name: "OfferId", - table: "PerformerProfile", - nullable: true); - migrationBuilder.AddColumn( - name: "ActorDenomination", - table: "Activity", - nullable: true); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Blog_ApplicationUser_AuthorId", - table: "Blog", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_Location_LocationId", - table: "BookQuery", - column: "LocationId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerfomerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Command_ApplicationUser_ClientId", - table: "Command", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Command_PerformerProfile_PerformerId", - table: "Command", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerfomerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Contact_ApplicationUser_OwnerId", - table: "Contact", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Service_OfferId", - table: "PerformerProfile", - column: "OfferId", - principalTable: "Service", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganisationAddressId", - table: "PerformerProfile", - column: "OrganisationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerfomerId", - table: "PerformerProfile", - column: "PerfomerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_Blog_ApplicationUser_AuthorId", table: "Blog"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_Location_LocationId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Command_ApplicationUser_ClientId", table: "Command"); - migrationBuilder.DropForeignKey(name: "FK_Command_PerformerProfile_PerformerId", table: "Command"); - migrationBuilder.DropForeignKey(name: "FK_Contact_ApplicationUser_OwnerId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Service_OfferId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganisationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerfomerId", table: "PerformerProfile"); - migrationBuilder.DropColumn(name: "OfferId", table: "PerformerProfile"); - migrationBuilder.DropColumn(name: "ActorDenomination", table: "Activity"); - migrationBuilder.AddColumn( - name: "Depth", - table: "Service", - nullable: false, - defaultValue: 0m); - migrationBuilder.AddColumn( - name: "Height", - table: "Service", - nullable: false, - defaultValue: 0m); - migrationBuilder.AddColumn( - name: "Weight", - table: "Service", - nullable: false, - defaultValue: 0m); - migrationBuilder.AddColumn( - name: "Width", - table: "Service", - nullable: false, - defaultValue: 0m); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Blog_ApplicationUser_AuthorId", - table: "Blog", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_Location_LocationId", - table: "BookQuery", - column: "LocationId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerfomerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Command_ApplicationUser_ClientId", - table: "Command", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Command_PerformerProfile_PerformerId", - table: "Command", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerfomerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Contact_ApplicationUser_OwnerId", - table: "Contact", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganisationAddressId", - table: "PerformerProfile", - column: "OrganisationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerfomerId", - table: "PerformerProfile", - column: "PerfomerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20160506154628_siren.Designer.cs b/src/Yavsc.Server/Migrations/2016/20160506154628_siren.Designer.cs deleted file mode 100644 index 3c2433ff..00000000 --- a/src/Yavsc.Server/Migrations/2016/20160506154628_siren.Designer.cs +++ /dev/null @@ -1,623 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20160506154628_siren")] - partial class siren - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("YavscWeb.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired(); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("ActorDenomination"); - - b.Property("Description"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("YavscWeb.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("GoogleRegId"); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("YavscWeb.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.BaseProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("Name"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId") - .IsRequired(); - - b.Property("bcontent"); - - b.Property("modified"); - - b.Property("photo"); - - b.Property("posted"); - - b.Property("rate"); - - b.Property("title"); - - b.Property("visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Booking.BookQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("CreationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("EventDate"); - - b.Property("Lag"); - - b.Property("LocationId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.CircleMember", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CircleId") - .IsRequired(); - - b.Property("MemberId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Command", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("CreationDate"); - - b.Property("Lag"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ArticleId"); - - b.Property("BookQueryId"); - - b.Property("CommandId"); - - b.Property("Comment"); - - b.Property("Count"); - - b.Property("EstimateId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("CommandId"); - - b.Property("Description"); - - b.Property("Status"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("YavscWeb.Models.PerformerProfile", b => - { - b.Property("PerfomerId"); - - b.Property("AcceptGeoLocalisation"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OfferId"); - - b.Property("OrganisationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("WebSite"); - - b.HasKey("PerfomerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Billing"); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Pricing"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("YavscWeb.Models.AccountBalance", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithOne() - .HasForeignKey("YavscWeb.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("YavscWeb.Models.ApplicationUser", b => - { - b.HasOne("YavscWeb.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("YavscWeb.Models.BalanceImpact", b => - { - b.HasOne("YavscWeb.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Blog", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Booking.BookQuery", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("YavscWeb.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("YavscWeb.Models.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Circle", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.CircleMember", b => - { - b.HasOne("YavscWeb.Models.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Command", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("YavscWeb.Models.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.CommandLine", b => - { - b.HasOne("YavscWeb.Models.BaseProduct") - .WithMany() - .HasForeignKey("ArticleId"); - - b.HasOne("YavscWeb.Models.Booking.BookQuery") - .WithMany() - .HasForeignKey("BookQueryId"); - - b.HasOne("YavscWeb.Models.Command") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("YavscWeb.Models.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Contact", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Estimate", b => - { - b.HasOne("YavscWeb.Models.Command") - .WithMany() - .HasForeignKey("CommandId"); - }); - - modelBuilder.Entity("YavscWeb.Models.PerformerProfile", b => - { - b.HasOne("YavscWeb.Models.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("YavscWeb.Models.Service") - .WithMany() - .HasForeignKey("OfferId"); - - b.HasOne("YavscWeb.Location") - .WithMany() - .HasForeignKey("OrganisationAddressId"); - - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerfomerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Service", b => - { - b.HasOne("YavscWeb.Models.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20160506154628_siren.cs b/src/Yavsc.Server/Migrations/2016/20160506154628_siren.cs deleted file mode 100644 index 430ac2ef..00000000 --- a/src/Yavsc.Server/Migrations/2016/20160506154628_siren.cs +++ /dev/null @@ -1,344 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class siren : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_Blog_ApplicationUser_AuthorId", table: "Blog"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_Location_LocationId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Command_ApplicationUser_ClientId", table: "Command"); - migrationBuilder.DropForeignKey(name: "FK_Command_PerformerProfile_PerformerId", table: "Command"); - migrationBuilder.DropForeignKey(name: "FK_Contact_ApplicationUser_OwnerId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganisationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerfomerId", table: "PerformerProfile"); - migrationBuilder.DropColumn(name: "SIRET", table: "PerformerProfile"); - migrationBuilder.AddColumn( - name: "Billing", - table: "Service", - nullable: true); - migrationBuilder.AddColumn( - name: "Pricing", - table: "Service", - nullable: true); - migrationBuilder.AddColumn( - name: "SIREN", - table: "PerformerProfile", - nullable: false, - defaultValue: ""); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Blog_ApplicationUser_AuthorId", - table: "Blog", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_Location_LocationId", - table: "BookQuery", - column: "LocationId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerfomerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Command_ApplicationUser_ClientId", - table: "Command", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Command_PerformerProfile_PerformerId", - table: "Command", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerfomerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Contact_ApplicationUser_OwnerId", - table: "Contact", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganisationAddressId", - table: "PerformerProfile", - column: "OrganisationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerfomerId", - table: "PerformerProfile", - column: "PerfomerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_Blog_ApplicationUser_AuthorId", table: "Blog"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_Location_LocationId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Command_ApplicationUser_ClientId", table: "Command"); - migrationBuilder.DropForeignKey(name: "FK_Command_PerformerProfile_PerformerId", table: "Command"); - migrationBuilder.DropForeignKey(name: "FK_Contact_ApplicationUser_OwnerId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganisationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerfomerId", table: "PerformerProfile"); - migrationBuilder.DropColumn(name: "Billing", table: "Service"); - migrationBuilder.DropColumn(name: "Pricing", table: "Service"); - migrationBuilder.DropColumn(name: "SIREN", table: "PerformerProfile"); - migrationBuilder.AddColumn( - name: "SIRET", - table: "PerformerProfile", - nullable: false, - defaultValue: ""); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Blog_ApplicationUser_AuthorId", - table: "Blog", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_Location_LocationId", - table: "BookQuery", - column: "LocationId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerfomerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Command_ApplicationUser_ClientId", - table: "Command", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Command_PerformerProfile_PerformerId", - table: "Command", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerfomerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Contact_ApplicationUser_OwnerId", - table: "Contact", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganisationAddressId", - table: "PerformerProfile", - column: "OrganisationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerfomerId", - table: "PerformerProfile", - column: "PerfomerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20160515142434_tokenExpiresIn.Designer.cs b/src/Yavsc.Server/Migrations/2016/20160515142434_tokenExpiresIn.Designer.cs deleted file mode 100644 index 45d384a5..00000000 --- a/src/Yavsc.Server/Migrations/2016/20160515142434_tokenExpiresIn.Designer.cs +++ /dev/null @@ -1,644 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20160515142434_tokenExpiresIn")] - partial class tokenExpiresIn - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Application", b => - { - b.Property("ApplicationID"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri"); - - b.Property("RedirectUri"); - - b.Property("Secret"); - - b.HasKey("ApplicationID"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("YavscWeb.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired(); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("ActorDenomination"); - - b.Property("Description"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("YavscWeb.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("GoogleRegId"); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("YavscWeb.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.BaseProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId") - .IsRequired(); - - b.Property("bcontent"); - - b.Property("modified"); - - b.Property("photo"); - - b.Property("posted"); - - b.Property("rate"); - - b.Property("title"); - - b.Property("visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Booking.BookQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("CreationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("EventDate"); - - b.Property("Lag"); - - b.Property("LocationId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.CircleMember", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CircleId") - .IsRequired(); - - b.Property("MemberId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Command", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("CreationDate"); - - b.Property("Lag"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ArticleId"); - - b.Property("BookQueryId"); - - b.Property("CommandId"); - - b.Property("Comment"); - - b.Property("Count"); - - b.Property("EstimateId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("CommandId"); - - b.Property("Description"); - - b.Property("Status"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("YavscWeb.Models.PerformerProfile", b => - { - b.Property("PerfomerId"); - - b.Property("AcceptGeoLocalisation"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OfferId"); - - b.Property("OrganisationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("WebSite"); - - b.HasKey("PerfomerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Billing"); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Pricing"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("YavscWeb.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("YavscWeb.Models.AccountBalance", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithOne() - .HasForeignKey("YavscWeb.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("YavscWeb.Models.ApplicationUser", b => - { - b.HasOne("YavscWeb.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("YavscWeb.Models.BalanceImpact", b => - { - b.HasOne("YavscWeb.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Blog", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Booking.BookQuery", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("YavscWeb.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("YavscWeb.Models.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Circle", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.CircleMember", b => - { - b.HasOne("YavscWeb.Models.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Command", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("YavscWeb.Models.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.CommandLine", b => - { - b.HasOne("YavscWeb.Models.BaseProduct") - .WithMany() - .HasForeignKey("ArticleId"); - - b.HasOne("YavscWeb.Models.Booking.BookQuery") - .WithMany() - .HasForeignKey("BookQueryId"); - - b.HasOne("YavscWeb.Models.Command") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("YavscWeb.Models.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Contact", b => - { - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Estimate", b => - { - b.HasOne("YavscWeb.Models.Command") - .WithMany() - .HasForeignKey("CommandId"); - }); - - modelBuilder.Entity("YavscWeb.Models.PerformerProfile", b => - { - b.HasOne("YavscWeb.Models.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("YavscWeb.Models.Service") - .WithMany() - .HasForeignKey("OfferId"); - - b.HasOne("YavscWeb.Location") - .WithMany() - .HasForeignKey("OrganisationAddressId"); - - b.HasOne("YavscWeb.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerfomerId"); - }); - - modelBuilder.Entity("YavscWeb.Models.Service", b => - { - b.HasOne("YavscWeb.Models.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20160515142434_tokenExpiresIn.cs b/src/Yavsc.Server/Migrations/2016/20160515142434_tokenExpiresIn.cs deleted file mode 100644 index 3cfa1dc4..00000000 --- a/src/Yavsc.Server/Migrations/2016/20160515142434_tokenExpiresIn.cs +++ /dev/null @@ -1,353 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -namespace Yavsc.Migrations -{ - public partial class tokenExpiresIn : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_Blog_ApplicationUser_AuthorId", table: "Blog"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_Location_LocationId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Command_ApplicationUser_ClientId", table: "Command"); - migrationBuilder.DropForeignKey(name: "FK_Command_PerformerProfile_PerformerId", table: "Command"); - migrationBuilder.DropForeignKey(name: "FK_Contact_ApplicationUser_OwnerId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganisationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerfomerId", table: "PerformerProfile"); - migrationBuilder.CreateTable( - name: "Application", - columns: table => new - { - ApplicationID = table.Column(nullable: false), - DisplayName = table.Column(nullable: true), - LogoutRedirectUri = table.Column(nullable: true), - RedirectUri = table.Column(nullable: true), - Secret = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Application", x => x.ApplicationID); - }); - migrationBuilder.AddColumn( - name: "Public", - table: "Service", - nullable: false, - defaultValue: false); - migrationBuilder.AddColumn( - name: "ExpiresIn", - table: "OAuth2Tokens", - nullable: true); - migrationBuilder.AddColumn( - name: "Public", - table: "BaseProduct", - nullable: false, - defaultValue: false); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Blog_ApplicationUser_AuthorId", - table: "Blog", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_Location_LocationId", - table: "BookQuery", - column: "LocationId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerfomerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Command_ApplicationUser_ClientId", - table: "Command", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Command_PerformerProfile_PerformerId", - table: "Command", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerfomerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Contact_ApplicationUser_OwnerId", - table: "Contact", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganisationAddressId", - table: "PerformerProfile", - column: "OrganisationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerfomerId", - table: "PerformerProfile", - column: "PerfomerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_Blog_ApplicationUser_AuthorId", table: "Blog"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_Location_LocationId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Command_ApplicationUser_ClientId", table: "Command"); - migrationBuilder.DropForeignKey(name: "FK_Command_PerformerProfile_PerformerId", table: "Command"); - migrationBuilder.DropForeignKey(name: "FK_Contact_ApplicationUser_OwnerId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganisationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerfomerId", table: "PerformerProfile"); - migrationBuilder.DropColumn(name: "Public", table: "Service"); - migrationBuilder.DropColumn(name: "ExpiresIn", table: "OAuth2Tokens"); - migrationBuilder.DropColumn(name: "Public", table: "BaseProduct"); - migrationBuilder.DropTable("Application"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Blog_ApplicationUser_AuthorId", - table: "Blog", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_Location_LocationId", - table: "BookQuery", - column: "LocationId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerfomerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Command_ApplicationUser_ClientId", - table: "Command", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Command_PerformerProfile_PerformerId", - table: "Command", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerfomerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Contact_ApplicationUser_OwnerId", - table: "Contact", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganisationAddressId", - table: "PerformerProfile", - column: "OrganisationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerfomerId", - table: "PerformerProfile", - column: "PerfomerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20160529205859_ModeratorGroupName.Designer.cs b/src/Yavsc.Server/Migrations/2016/20160529205859_ModeratorGroupName.Designer.cs deleted file mode 100644 index d5bbcbb3..00000000 --- a/src/Yavsc.Server/Migrations/2016/20160529205859_ModeratorGroupName.Designer.cs +++ /dev/null @@ -1,646 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20160529205859_ModeratorGroupName")] - partial class ModeratorGroupName - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Application", b => - { - b.Property("ApplicationID"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri"); - - b.Property("RedirectUri"); - - b.Property("Secret"); - - b.HasKey("ApplicationID"); - }); - - modelBuilder.Entity("Yavsc.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired(); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("ActorDenomination"); - - b.Property("Description"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("GoogleRegId"); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BaseProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId") - .IsRequired(); - - b.Property("bcontent"); - - b.Property("modified"); - - b.Property("photo"); - - b.Property("posted"); - - b.Property("rate"); - - b.Property("title"); - - b.Property("visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("CreationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("EventDate"); - - b.Property("Lag"); - - b.Property("LocationId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CircleId") - .IsRequired(); - - b.Property("MemberId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Command", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("CreationDate"); - - b.Property("Lag"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ArticleId"); - - b.Property("BookQueryId"); - - b.Property("CommandId"); - - b.Property("Comment"); - - b.Property("Count"); - - b.Property("EstimateId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("CommandId"); - - b.Property("Description"); - - b.Property("Status"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.PerformerProfile", b => - { - b.Property("PerfomerId"); - - b.Property("AcceptGeoLocalisation"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OfferId"); - - b.Property("OrganisationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("WebSite"); - - b.HasKey("PerfomerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Billing"); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Pricing"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.HasOne("Yavsc.Models.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Command", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.CommandLine", b => - { - b.HasOne("Yavsc.Models.BaseProduct") - .WithMany() - .HasForeignKey("ArticleId"); - - b.HasOne("Yavsc.Models.Booking.BookQuery") - .WithMany() - .HasForeignKey("BookQueryId"); - - b.HasOne("Yavsc.Models.Command") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Estimate", b => - { - b.HasOne("Yavsc.Models.Command") - .WithMany() - .HasForeignKey("CommandId"); - }); - - modelBuilder.Entity("Yavsc.Models.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.Service") - .WithMany() - .HasForeignKey("OfferId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("OrganisationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerfomerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Service", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20160529205859_ModeratorGroupName.cs b/src/Yavsc.Server/Migrations/2016/20160529205859_ModeratorGroupName.cs deleted file mode 100644 index 0825cb6a..00000000 --- a/src/Yavsc.Server/Migrations/2016/20160529205859_ModeratorGroupName.cs +++ /dev/null @@ -1,326 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -namespace Yavsc.Migrations -{ - public partial class ModeratorGroupName : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_Blog_ApplicationUser_AuthorId", table: "Blog"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_Location_LocationId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Command_ApplicationUser_ClientId", table: "Command"); - migrationBuilder.DropForeignKey(name: "FK_Command_PerformerProfile_PerformerId", table: "Command"); - migrationBuilder.DropForeignKey(name: "FK_Contact_ApplicationUser_OwnerId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganisationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerfomerId", table: "PerformerProfile"); - migrationBuilder.AddColumn( - name: "ModeratorGroupName", - table: "Activity", - nullable: true); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Blog_ApplicationUser_AuthorId", - table: "Blog", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_Location_LocationId", - table: "BookQuery", - column: "LocationId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerfomerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Command_ApplicationUser_ClientId", - table: "Command", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Command_PerformerProfile_PerformerId", - table: "Command", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerfomerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Contact_ApplicationUser_OwnerId", - table: "Contact", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganisationAddressId", - table: "PerformerProfile", - column: "OrganisationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerfomerId", - table: "PerformerProfile", - column: "PerfomerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_Blog_ApplicationUser_AuthorId", table: "Blog"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_Location_LocationId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Command_ApplicationUser_ClientId", table: "Command"); - migrationBuilder.DropForeignKey(name: "FK_Command_PerformerProfile_PerformerId", table: "Command"); - migrationBuilder.DropForeignKey(name: "FK_Contact_ApplicationUser_OwnerId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganisationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerfomerId", table: "PerformerProfile"); - migrationBuilder.DropColumn(name: "ModeratorGroupName", table: "Activity"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Blog_ApplicationUser_AuthorId", - table: "Blog", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_Location_LocationId", - table: "BookQuery", - column: "LocationId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerfomerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Command_ApplicationUser_ClientId", - table: "Command", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Command_PerformerProfile_PerformerId", - table: "Command", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerfomerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Contact_ApplicationUser_OwnerId", - table: "Contact", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganisationAddressId", - table: "PerformerProfile", - column: "OrganisationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerfomerId", - table: "PerformerProfile", - column: "PerfomerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20160610153353_client.Designer.cs b/src/Yavsc.Server/Migrations/2016/20160610153353_client.Designer.cs deleted file mode 100644 index 3ffca6b9..00000000 --- a/src/Yavsc.Server/Migrations/2016/20160610153353_client.Designer.cs +++ /dev/null @@ -1,693 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20160610153353_client")] - partial class client - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("GoogleCloudMobileDeclaration", b => - { - b.Property("RegistrationId"); - - b.Property("DeviceOwnerId"); - - b.Property("Name"); - - b.HasKey("RegistrationId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired(); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("ActorDenomination"); - - b.Property("Description"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("AllowedOrigin") - .HasAnnotation("MaxLength", 100); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri"); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BaseProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId") - .IsRequired(); - - b.Property("bcontent"); - - b.Property("modified"); - - b.Property("photo"); - - b.Property("posted"); - - b.Property("rate"); - - b.Property("title"); - - b.Property("visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("CreationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("EventDate"); - - b.Property("Lag"); - - b.Property("LocationId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CircleId") - .IsRequired(); - - b.Property("MemberId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Command", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("CreationDate"); - - b.Property("Lag"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ArticleId"); - - b.Property("BookQueryId"); - - b.Property("CommandId"); - - b.Property("Comment"); - - b.Property("Count"); - - b.Property("EstimateId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("CommandId"); - - b.Property("Description"); - - b.Property("Status"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.PerformerProfile", b => - { - b.Property("PerfomerId"); - - b.Property("AcceptGeoLocalisation"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OfferId"); - - b.Property("OrganisationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("WebSite"); - - b.HasKey("PerfomerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Billing"); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Pricing"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.HasOne("Yavsc.Models.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Command", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.CommandLine", b => - { - b.HasOne("Yavsc.Models.BaseProduct") - .WithMany() - .HasForeignKey("ArticleId"); - - b.HasOne("Yavsc.Models.Booking.BookQuery") - .WithMany() - .HasForeignKey("BookQueryId"); - - b.HasOne("Yavsc.Models.Command") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Estimate", b => - { - b.HasOne("Yavsc.Models.Command") - .WithMany() - .HasForeignKey("CommandId"); - }); - - modelBuilder.Entity("Yavsc.Models.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.Service") - .WithMany() - .HasForeignKey("OfferId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("OrganisationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerfomerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Service", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20160610153353_client.cs b/src/Yavsc.Server/Migrations/2016/20160610153353_client.cs deleted file mode 100644 index c719cbd7..00000000 --- a/src/Yavsc.Server/Migrations/2016/20160610153353_client.cs +++ /dev/null @@ -1,396 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class client : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_Blog_ApplicationUser_AuthorId", table: "Blog"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_Location_LocationId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Command_ApplicationUser_ClientId", table: "Command"); - migrationBuilder.DropForeignKey(name: "FK_Command_PerformerProfile_PerformerId", table: "Command"); - migrationBuilder.DropForeignKey(name: "FK_Contact_ApplicationUser_OwnerId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganisationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerfomerId", table: "PerformerProfile"); - migrationBuilder.DropColumn(name: "GoogleRegId", table: "AspNetUsers"); - migrationBuilder.DropTable("Application"); - migrationBuilder.CreateTable( - name: "GoogleCloudMobileDeclaration", - columns: table => new - { - RegistrationId = table.Column(nullable: false), - DeviceOwnerId = table.Column(nullable: true), - Name = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_GoogleCloudMobileDeclaration", x => x.RegistrationId); - table.ForeignKey( - name: "FK_GoogleCloudMobileDeclaration_ApplicationUser_DeviceOwnerId", - column: x => x.DeviceOwnerId, - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - }); - migrationBuilder.CreateTable( - name: "Client", - columns: table => new - { - Id = table.Column(nullable: false), - Active = table.Column(nullable: false), - AllowedOrigin = table.Column(nullable: true), - DisplayName = table.Column(nullable: true), - LogoutRedirectUri = table.Column(nullable: true), - RedirectUri = table.Column(nullable: true), - RefreshTokenLifeTime = table.Column(nullable: false), - Secret = table.Column(nullable: true), - Type = table.Column(nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Client", x => x.Id); - }); - migrationBuilder.CreateTable( - name: "RefreshToken", - columns: table => new - { - Id = table.Column(nullable: false), - ClientId = table.Column(nullable: false), - ExpiresUtc = table.Column(nullable: false), - IssuedUtc = table.Column(nullable: false), - ProtectedTicket = table.Column(nullable: false), - Subject = table.Column(nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_RefreshToken", x => x.Id); - }); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Blog_ApplicationUser_AuthorId", - table: "Blog", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_Location_LocationId", - table: "BookQuery", - column: "LocationId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerfomerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Command_ApplicationUser_ClientId", - table: "Command", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Command_PerformerProfile_PerformerId", - table: "Command", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerfomerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Contact_ApplicationUser_OwnerId", - table: "Contact", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganisationAddressId", - table: "PerformerProfile", - column: "OrganisationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerfomerId", - table: "PerformerProfile", - column: "PerfomerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_Blog_ApplicationUser_AuthorId", table: "Blog"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_Location_LocationId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Command_ApplicationUser_ClientId", table: "Command"); - migrationBuilder.DropForeignKey(name: "FK_Command_PerformerProfile_PerformerId", table: "Command"); - migrationBuilder.DropForeignKey(name: "FK_Contact_ApplicationUser_OwnerId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganisationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerfomerId", table: "PerformerProfile"); - migrationBuilder.DropTable("GoogleCloudMobileDeclaration"); - migrationBuilder.DropTable("Client"); - migrationBuilder.DropTable("RefreshToken"); - migrationBuilder.CreateTable( - name: "Application", - columns: table => new - { - ApplicationID = table.Column(nullable: false), - DisplayName = table.Column(nullable: true), - LogoutRedirectUri = table.Column(nullable: true), - RedirectUri = table.Column(nullable: true), - Secret = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Application", x => x.ApplicationID); - }); - migrationBuilder.AddColumn( - name: "GoogleRegId", - table: "AspNetUsers", - nullable: true); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Blog_ApplicationUser_AuthorId", - table: "Blog", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_Location_LocationId", - table: "BookQuery", - column: "LocationId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerfomerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Command_ApplicationUser_ClientId", - table: "Command", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Command_PerformerProfile_PerformerId", - table: "Command", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerfomerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Contact_ApplicationUser_OwnerId", - table: "Contact", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganisationAddressId", - table: "PerformerProfile", - column: "OrganisationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerfomerId", - table: "PerformerProfile", - column: "PerfomerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20160613142037_devices.Designer.cs b/src/Yavsc.Server/Migrations/2016/20160613142037_devices.Designer.cs deleted file mode 100644 index 87c0c383..00000000 --- a/src/Yavsc.Server/Migrations/2016/20160613142037_devices.Designer.cs +++ /dev/null @@ -1,712 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20160613142037_devices")] - partial class devices - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("GoogleCloudMobileDeclaration", b => - { - b.Property("RegistrationId"); - - b.Property("DeviceOwnerId"); - - b.Property("Name"); - - b.HasKey("RegistrationId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired(); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("ActorDenomination"); - - b.Property("Description"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ArticleId"); - - b.Property("BookQueryId"); - - b.Property("Comment"); - - b.Property("Count"); - - b.Property("EstimateId"); - - b.Property("NominativeCommandId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("CommandId"); - - b.Property("Description"); - - b.Property("Status"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.NominativeCommand", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("CreationDate"); - - b.Property("Lag"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId") - .IsRequired(); - - b.Property("bcontent"); - - b.Property("modified"); - - b.Property("photo"); - - b.Property("posted"); - - b.Property("rate"); - - b.Property("title"); - - b.Property("visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("CreationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("EventDate"); - - b.Property("Lag"); - - b.Property("LocationId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CircleId") - .IsRequired(); - - b.Property("MemberId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.BaseProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.CommandSpecification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ModelType"); - - b.Property("QueryViewName"); - - b.Property("ServiceId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Billing"); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Pricing"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerfomerId"); - - b.Property("AcceptGeoLocalisation"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OfferId"); - - b.Property("OrganisationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("WebSite"); - - b.HasKey("PerfomerId"); - }); - - modelBuilder.Entity("GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Market.BaseProduct") - .WithMany() - .HasForeignKey("ArticleId"); - - b.HasOne("Yavsc.Models.Booking.BookQuery") - .WithMany() - .HasForeignKey("BookQueryId"); - - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.NominativeCommand") - .WithMany() - .HasForeignKey("NominativeCommandId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.Billing.NominativeCommand") - .WithMany() - .HasForeignKey("CommandId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.NominativeCommand", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.HasOne("Yavsc.Models.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.CommandSpecification", b => - { - b.HasOne("Yavsc.Models.Market.Service") - .WithMany() - .HasForeignKey("ServiceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.Market.Service") - .WithMany() - .HasForeignKey("OfferId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("OrganisationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerfomerId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20160613142037_devices.cs b/src/Yavsc.Server/Migrations/2016/20160613142037_devices.cs deleted file mode 100644 index 5b414b84..00000000 --- a/src/Yavsc.Server/Migrations/2016/20160613142037_devices.cs +++ /dev/null @@ -1,417 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -namespace Yavsc.Migrations -{ - public partial class devices : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_Blog_ApplicationUser_AuthorId", table: "Blog"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_Location_LocationId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Command_CommandId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Contact_ApplicationUser_OwnerId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_Command_CommandId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganisationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerfomerId", table: "PerformerProfile"); - migrationBuilder.DropColumn(name: "AllowedOrigin", table: "Client"); - migrationBuilder.DropColumn(name: "CommandId", table: "CommandLine"); - migrationBuilder.DropTable("Command"); - migrationBuilder.CreateTable( - name: "NominativeCommand", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("Npgsql:Serial", true), - ClientId = table.Column(nullable: false), - CreationDate = table.Column(nullable: false), - Lag = table.Column(nullable: false), - PerformerId = table.Column(nullable: false), - Previsional = table.Column(nullable: true), - ValidationDate = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_NominativeCommand", x => x.Id); - table.ForeignKey( - name: "FK_NominativeCommand_ApplicationUser_ClientId", - column: x => x.ClientId, - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - table.ForeignKey( - name: "FK_NominativeCommand_PerformerProfile_PerformerId", - column: x => x.PerformerId, - principalTable: "PerformerProfile", - principalColumn: "PerfomerId", - onDelete: ReferentialAction.Cascade); - }); - migrationBuilder.CreateTable( - name: "CommandSpecification", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("Npgsql:Serial", true), - ModelType = table.Column(nullable: true), - QueryViewName = table.Column(nullable: true), - ServiceId = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_CommandSpecification", x => x.Id); - table.ForeignKey( - name: "FK_CommandSpecification_Service_ServiceId", - column: x => x.ServiceId, - principalTable: "Service", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - }); - migrationBuilder.AddColumn( - name: "NominativeCommandId", - table: "CommandLine", - nullable: true); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_NominativeCommand_NominativeCommandId", - table: "CommandLine", - column: "NominativeCommandId", - principalTable: "NominativeCommand", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_NominativeCommand_CommandId", - table: "Estimate", - column: "CommandId", - principalTable: "NominativeCommand", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Blog_ApplicationUser_AuthorId", - table: "Blog", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_Location_LocationId", - table: "BookQuery", - column: "LocationId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerfomerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Contact_ApplicationUser_OwnerId", - table: "Contact", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganisationAddressId", - table: "PerformerProfile", - column: "OrganisationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerfomerId", - table: "PerformerProfile", - column: "PerfomerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_NominativeCommand_NominativeCommandId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_NominativeCommand_CommandId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Blog_ApplicationUser_AuthorId", table: "Blog"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_Location_LocationId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Contact_ApplicationUser_OwnerId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganisationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerfomerId", table: "PerformerProfile"); - migrationBuilder.DropColumn(name: "NominativeCommandId", table: "CommandLine"); - migrationBuilder.DropTable("NominativeCommand"); - migrationBuilder.DropTable("CommandSpecification"); - migrationBuilder.CreateTable( - name: "Command", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("Npgsql:Serial", true), - ClientId = table.Column(nullable: false), - CreationDate = table.Column(nullable: false), - Lag = table.Column(nullable: false), - PerformerId = table.Column(nullable: false), - Previsional = table.Column(nullable: true), - ValidationDate = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Command", x => x.Id); - table.ForeignKey( - name: "FK_Command_ApplicationUser_ClientId", - column: x => x.ClientId, - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - table.ForeignKey( - name: "FK_Command_PerformerProfile_PerformerId", - column: x => x.PerformerId, - principalTable: "PerformerProfile", - principalColumn: "PerfomerId", - onDelete: ReferentialAction.Restrict); - }); - migrationBuilder.AddColumn( - name: "AllowedOrigin", - table: "Client", - nullable: true); - migrationBuilder.AddColumn( - name: "CommandId", - table: "CommandLine", - nullable: true); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Blog_ApplicationUser_AuthorId", - table: "Blog", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_Location_LocationId", - table: "BookQuery", - column: "LocationId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerfomerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Command_CommandId", - table: "CommandLine", - column: "CommandId", - principalTable: "Command", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Contact_ApplicationUser_OwnerId", - table: "Contact", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_Command_CommandId", - table: "Estimate", - column: "CommandId", - principalTable: "Command", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganisationAddressId", - table: "PerformerProfile", - column: "OrganisationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerfomerId", - table: "PerformerProfile", - column: "PerfomerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20160614010545_bookquery.Designer.cs b/src/Yavsc.Server/Migrations/2016/20160614010545_bookquery.Designer.cs deleted file mode 100644 index 09b0ad4f..00000000 --- a/src/Yavsc.Server/Migrations/2016/20160614010545_bookquery.Designer.cs +++ /dev/null @@ -1,652 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20160614010545_bookquery")] - partial class bookquery - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("GoogleCloudMobileDeclaration", b => - { - b.Property("RegistrationId"); - - b.Property("DeviceOwnerId"); - - b.Property("Name"); - - b.HasKey("RegistrationId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired(); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("ActorDenomination"); - - b.Property("Description"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ArticleId"); - - b.Property("BookQueryId"); - - b.Property("Comment"); - - b.Property("Count"); - - b.Property("RDVEstimateId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.RDVEstimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("CommandId"); - - b.Property("Description"); - - b.Property("Status"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId") - .IsRequired(); - - b.Property("bcontent"); - - b.Property("modified"); - - b.Property("photo"); - - b.Property("posted"); - - b.Property("rate"); - - b.Property("title"); - - b.Property("visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("CreationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("EventDate"); - - b.Property("Lag"); - - b.Property("LocationId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CircleId") - .IsRequired(); - - b.Property("MemberId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.BaseProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Billing"); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Pricing"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerfomerId"); - - b.Property("AcceptGeoLocalisation"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OfferId"); - - b.Property("OrganisationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("WebSite"); - - b.HasKey("PerfomerId"); - }); - - modelBuilder.Entity("GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Market.BaseProduct") - .WithMany() - .HasForeignKey("ArticleId"); - - b.HasOne("Yavsc.Models.Booking.BookQuery") - .WithMany() - .HasForeignKey("BookQueryId"); - - b.HasOne("Yavsc.Models.Billing.RDVEstimate") - .WithMany() - .HasForeignKey("RDVEstimateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.RDVEstimate", b => - { - b.HasOne("Yavsc.Models.Booking.BookQuery") - .WithMany() - .HasForeignKey("CommandId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.HasOne("Yavsc.Models.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.Market.Service") - .WithMany() - .HasForeignKey("OfferId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("OrganisationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerfomerId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20160614010545_bookquery.cs b/src/Yavsc.Server/Migrations/2016/20160614010545_bookquery.cs deleted file mode 100644 index 109127ef..00000000 --- a/src/Yavsc.Server/Migrations/2016/20160614010545_bookquery.cs +++ /dev/null @@ -1,419 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -namespace Yavsc.Migrations -{ - public partial class bookquery : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_NominativeCommand_NominativeCommandId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Blog_ApplicationUser_AuthorId", table: "Blog"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Contact_ApplicationUser_OwnerId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganisationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerfomerId", table: "PerformerProfile"); - migrationBuilder.DropColumn(name: "EstimateId", table: "CommandLine"); - migrationBuilder.DropColumn(name: "NominativeCommandId", table: "CommandLine"); - migrationBuilder.DropTable("Estimate"); - migrationBuilder.DropTable("CommandSpecification"); - migrationBuilder.DropTable("NominativeCommand"); - migrationBuilder.CreateTable( - name: "RDVEstimate", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("Npgsql:Serial", true), - AttachedFilesString = table.Column(nullable: true), - AttachedGraphicsString = table.Column(nullable: true), - CommandId = table.Column(nullable: true), - Description = table.Column(nullable: true), - Status = table.Column(nullable: true), - Title = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_RDVEstimate", x => x.Id); - table.ForeignKey( - name: "FK_RDVEstimate_BookQuery_CommandId", - column: x => x.CommandId, - principalTable: "BookQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - }); - migrationBuilder.AlterColumn( - name: "LocationId", - table: "BookQuery", - nullable: true); - migrationBuilder.AddColumn( - name: "RDVEstimateId", - table: "CommandLine", - nullable: true); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_RDVEstimate_RDVEstimateId", - table: "CommandLine", - column: "RDVEstimateId", - principalTable: "RDVEstimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Blog_ApplicationUser_AuthorId", - table: "Blog", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerfomerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Contact_ApplicationUser_OwnerId", - table: "Contact", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganisationAddressId", - table: "PerformerProfile", - column: "OrganisationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerfomerId", - table: "PerformerProfile", - column: "PerfomerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_RDVEstimate_RDVEstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Blog_ApplicationUser_AuthorId", table: "Blog"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Contact_ApplicationUser_OwnerId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganisationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerfomerId", table: "PerformerProfile"); - migrationBuilder.DropColumn(name: "RDVEstimateId", table: "CommandLine"); - migrationBuilder.DropTable("RDVEstimate"); - migrationBuilder.CreateTable( - name: "NominativeCommand", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("Npgsql:Serial", true), - ClientId = table.Column(nullable: false), - CreationDate = table.Column(nullable: false), - Lag = table.Column(nullable: false), - PerformerId = table.Column(nullable: false), - Previsional = table.Column(nullable: true), - ValidationDate = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_NominativeCommand", x => x.Id); - table.ForeignKey( - name: "FK_NominativeCommand_ApplicationUser_ClientId", - column: x => x.ClientId, - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - table.ForeignKey( - name: "FK_NominativeCommand_PerformerProfile_PerformerId", - column: x => x.PerformerId, - principalTable: "PerformerProfile", - principalColumn: "PerfomerId", - onDelete: ReferentialAction.Restrict); - }); - migrationBuilder.CreateTable( - name: "CommandSpecification", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("Npgsql:Serial", true), - ModelType = table.Column(nullable: true), - QueryViewName = table.Column(nullable: true), - ServiceId = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_CommandSpecification", x => x.Id); - table.ForeignKey( - name: "FK_CommandSpecification_Service_ServiceId", - column: x => x.ServiceId, - principalTable: "Service", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - }); - migrationBuilder.CreateTable( - name: "Estimate", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("Npgsql:Serial", true), - AttachedFilesString = table.Column(nullable: true), - AttachedGraphicsString = table.Column(nullable: true), - CommandId = table.Column(nullable: true), - Description = table.Column(nullable: true), - Status = table.Column(nullable: true), - Title = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Estimate", x => x.Id); - table.ForeignKey( - name: "FK_Estimate_NominativeCommand_CommandId", - column: x => x.CommandId, - principalTable: "NominativeCommand", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - }); - migrationBuilder.AlterColumn( - name: "LocationId", - table: "BookQuery", - nullable: false); - migrationBuilder.AddColumn( - name: "EstimateId", - table: "CommandLine", - nullable: true); - migrationBuilder.AddColumn( - name: "NominativeCommandId", - table: "CommandLine", - nullable: true); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_NominativeCommand_NominativeCommandId", - table: "CommandLine", - column: "NominativeCommandId", - principalTable: "NominativeCommand", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Blog_ApplicationUser_AuthorId", - table: "Blog", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerfomerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Contact_ApplicationUser_OwnerId", - table: "Contact", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganisationAddressId", - table: "PerformerProfile", - column: "OrganisationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerfomerId", - table: "PerformerProfile", - column: "PerfomerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20160702195348_GCMinfos.Designer.cs b/src/Yavsc.Server/Migrations/2016/20160702195348_GCMinfos.Designer.cs deleted file mode 100644 index 9c3cae57..00000000 --- a/src/Yavsc.Server/Migrations/2016/20160702195348_GCMinfos.Designer.cs +++ /dev/null @@ -1,658 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20160702195348_GCMinfos")] - partial class GCMinfos - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId"); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired(); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("ActorDenomination"); - - b.Property("Description"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ArticleId"); - - b.Property("BookQueryId"); - - b.Property("Comment"); - - b.Property("Count"); - - b.Property("RDVEstimateId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.RDVEstimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("CommandId"); - - b.Property("Description"); - - b.Property("Status"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId") - .IsRequired(); - - b.Property("bcontent"); - - b.Property("modified"); - - b.Property("photo"); - - b.Property("posted"); - - b.Property("rate"); - - b.Property("title"); - - b.Property("visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("CreationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("EventDate"); - - b.Property("Lag"); - - b.Property("LocationId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CircleId") - .IsRequired(); - - b.Property("MemberId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.BaseProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Billing"); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Pricing"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerfomerId"); - - b.Property("AcceptGeoLocalisation"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OfferId"); - - b.Property("OrganisationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("WebSite"); - - b.HasKey("PerfomerId"); - }); - - modelBuilder.Entity("GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Market.BaseProduct") - .WithMany() - .HasForeignKey("ArticleId"); - - b.HasOne("Yavsc.Models.Booking.BookQuery") - .WithMany() - .HasForeignKey("BookQueryId"); - - b.HasOne("Yavsc.Models.Billing.RDVEstimate") - .WithMany() - .HasForeignKey("RDVEstimateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.RDVEstimate", b => - { - b.HasOne("Yavsc.Models.Booking.BookQuery") - .WithMany() - .HasForeignKey("CommandId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.HasOne("Yavsc.Models.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.Market.Service") - .WithMany() - .HasForeignKey("OfferId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("OrganisationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerfomerId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20160702195348_GCMinfos.cs b/src/Yavsc.Server/Migrations/2016/20160702195348_GCMinfos.cs deleted file mode 100644 index fdcc40ce..00000000 --- a/src/Yavsc.Server/Migrations/2016/20160702195348_GCMinfos.cs +++ /dev/null @@ -1,322 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class GCMinfos : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_Blog_ApplicationUser_AuthorId", table: "Blog"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Contact_ApplicationUser_OwnerId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganisationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerfomerId", table: "PerformerProfile"); - migrationBuilder.DropPrimaryKey(name: "PK_GoogleCloudMobileDeclaration", table: "GoogleCloudMobileDeclaration"); - migrationBuilder.DropColumn(name: "RegistrationId", table: "GoogleCloudMobileDeclaration"); - migrationBuilder.DropColumn(name: "Name", table: "GoogleCloudMobileDeclaration"); - migrationBuilder.AddColumn( - name: "DeviceId", - table: "GoogleCloudMobileDeclaration", - nullable: false, - defaultValue: ""); - migrationBuilder.AddColumn( - name: "GCMRegistrationId", - table: "GoogleCloudMobileDeclaration", - nullable: true); - migrationBuilder.AddColumn( - name: "Model", - table: "GoogleCloudMobileDeclaration", - nullable: true); - migrationBuilder.AddColumn( - name: "Platform", - table: "GoogleCloudMobileDeclaration", - nullable: true); - migrationBuilder.AddColumn( - name: "Version", - table: "GoogleCloudMobileDeclaration", - nullable: true); - migrationBuilder.AddPrimaryKey( - name: "PK_GoogleCloudMobileDeclaration", - table: "GoogleCloudMobileDeclaration", - column: "DeviceId"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Blog_ApplicationUser_AuthorId", - table: "Blog", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerfomerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Contact_ApplicationUser_OwnerId", - table: "Contact", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganisationAddressId", - table: "PerformerProfile", - column: "OrganisationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerfomerId", - table: "PerformerProfile", - column: "PerfomerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_Blog_ApplicationUser_AuthorId", table: "Blog"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Contact_ApplicationUser_OwnerId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganisationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerfomerId", table: "PerformerProfile"); - migrationBuilder.DropPrimaryKey(name: "PK_GoogleCloudMobileDeclaration", table: "GoogleCloudMobileDeclaration"); - migrationBuilder.DropColumn(name: "DeviceId", table: "GoogleCloudMobileDeclaration"); - migrationBuilder.DropColumn(name: "GCMRegistrationId", table: "GoogleCloudMobileDeclaration"); - migrationBuilder.DropColumn(name: "Model", table: "GoogleCloudMobileDeclaration"); - migrationBuilder.DropColumn(name: "Platform", table: "GoogleCloudMobileDeclaration"); - migrationBuilder.DropColumn(name: "Version", table: "GoogleCloudMobileDeclaration"); - migrationBuilder.AddColumn( - name: "RegistrationId", - table: "GoogleCloudMobileDeclaration", - nullable: false, - defaultValue: ""); - migrationBuilder.Sql("delete from \"GoogleCloudMobileDeclaration\""); - migrationBuilder.AddColumn( - name: "Name", - table: "GoogleCloudMobileDeclaration", - nullable: true); - migrationBuilder.AddPrimaryKey( - name: "PK_GoogleCloudMobileDeclaration", - table: "GoogleCloudMobileDeclaration", - column: "RegistrationId"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Blog_ApplicationUser_AuthorId", - table: "Blog", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerfomerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Contact_ApplicationUser_OwnerId", - table: "Contact", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganisationAddressId", - table: "PerformerProfile", - column: "OrganisationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerfomerId", - table: "PerformerProfile", - column: "PerfomerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20160723164231_GCMRedDate.Designer.cs b/src/Yavsc.Server/Migrations/2016/20160723164231_GCMRedDate.Designer.cs deleted file mode 100644 index 52a5b8f8..00000000 --- a/src/Yavsc.Server/Migrations/2016/20160723164231_GCMRedDate.Designer.cs +++ /dev/null @@ -1,663 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20160723164231_GCMRedDate")] - partial class GCMRedDate - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired(); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("ActorDenomination"); - - b.Property("Description"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ArticleId"); - - b.Property("BookQueryId"); - - b.Property("Comment"); - - b.Property("Count"); - - b.Property("RDVEstimateId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.RDVEstimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("CommandId"); - - b.Property("Description"); - - b.Property("Status"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId") - .IsRequired(); - - b.Property("bcontent"); - - b.Property("modified"); - - b.Property("photo"); - - b.Property("posted"); - - b.Property("rate"); - - b.Property("title"); - - b.Property("visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("CreationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("EventDate"); - - b.Property("Lag"); - - b.Property("LocationId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CircleId") - .IsRequired(); - - b.Property("MemberId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.BaseProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Billing"); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Pricing"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerfomerId"); - - b.Property("AcceptGeoLocalisation"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OfferId"); - - b.Property("OrganisationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("WebSite"); - - b.HasKey("PerfomerId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Market.BaseProduct") - .WithMany() - .HasForeignKey("ArticleId"); - - b.HasOne("Yavsc.Models.Booking.BookQuery") - .WithMany() - .HasForeignKey("BookQueryId"); - - b.HasOne("Yavsc.Models.Billing.RDVEstimate") - .WithMany() - .HasForeignKey("RDVEstimateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.RDVEstimate", b => - { - b.HasOne("Yavsc.Models.Booking.BookQuery") - .WithMany() - .HasForeignKey("CommandId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.HasOne("Yavsc.Models.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.Market.Service") - .WithMany() - .HasForeignKey("OfferId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("OrganisationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerfomerId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20160723164231_GCMRedDate.cs b/src/Yavsc.Server/Migrations/2016/20160723164231_GCMRedDate.cs deleted file mode 100644 index e9d5bb8b..00000000 --- a/src/Yavsc.Server/Migrations/2016/20160723164231_GCMRedDate.cs +++ /dev/null @@ -1,288 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class GCMRedDate : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_Blog_ApplicationUser_AuthorId", table: "Blog"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Contact_ApplicationUser_OwnerId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganisationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerfomerId", table: "PerformerProfile"); - migrationBuilder.AlterColumn( - name: "GCMRegistrationId", - table: "GoogleCloudMobileDeclaration", - nullable: false); - migrationBuilder.AddColumn( - name: "DeclarationDate", - table: "GoogleCloudMobileDeclaration", - nullable: false, - defaultValueSql: "LOCALTIMESTAMP"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Blog_ApplicationUser_AuthorId", - table: "Blog", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerfomerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Contact_ApplicationUser_OwnerId", - table: "Contact", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganisationAddressId", - table: "PerformerProfile", - column: "OrganisationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerfomerId", - table: "PerformerProfile", - column: "PerfomerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_Blog_ApplicationUser_AuthorId", table: "Blog"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Contact_ApplicationUser_OwnerId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganisationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerfomerId", table: "PerformerProfile"); - migrationBuilder.DropColumn(name: "DeclarationDate", table: "GoogleCloudMobileDeclaration"); - migrationBuilder.AlterColumn( - name: "GCMRegistrationId", - table: "GoogleCloudMobileDeclaration", - nullable: true); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Blog_ApplicationUser_AuthorId", - table: "Blog", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerfomerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Contact_ApplicationUser_OwnerId", - table: "Contact", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganisationAddressId", - table: "PerformerProfile", - column: "OrganisationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerfomerId", - table: "PerformerProfile", - column: "PerfomerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20160725145306_estimates.Designer.cs b/src/Yavsc.Server/Migrations/2016/20160725145306_estimates.Designer.cs deleted file mode 100644 index 6037b7d9..00000000 --- a/src/Yavsc.Server/Migrations/2016/20160725145306_estimates.Designer.cs +++ /dev/null @@ -1,664 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20160725145306_estimates")] - partial class estimates - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired(); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("ActorDenomination"); - - b.Property("Description"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ArticleId"); - - b.Property("BookQueryId"); - - b.Property("Comment"); - - b.Property("Count"); - - b.Property("EstimateId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("CommandId"); - - b.Property("Description"); - - b.Property("Status"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("bcontent"); - - b.Property("modified"); - - b.Property("photo"); - - b.Property("posted") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("rate"); - - b.Property("title"); - - b.Property("visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("CreationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("EventDate"); - - b.Property("Lag"); - - b.Property("LocationId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CircleId") - .IsRequired(); - - b.Property("MemberId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.BaseProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Billing"); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Pricing"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerfomerId"); - - b.Property("AcceptGeoLocalisation"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OfferId"); - - b.Property("OrganisationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("WebSite"); - - b.HasKey("PerfomerId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Market.BaseProduct") - .WithMany() - .HasForeignKey("ArticleId"); - - b.HasOne("Yavsc.Models.Booking.BookQuery") - .WithMany() - .HasForeignKey("BookQueryId"); - - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.Booking.BookQuery") - .WithMany() - .HasForeignKey("CommandId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.HasOne("Yavsc.Models.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.Market.Service") - .WithMany() - .HasForeignKey("OfferId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("OrganisationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerfomerId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20160725145306_estimates.cs b/src/Yavsc.Server/Migrations/2016/20160725145306_estimates.cs deleted file mode 100644 index bd5e5ae3..00000000 --- a/src/Yavsc.Server/Migrations/2016/20160725145306_estimates.cs +++ /dev/null @@ -1,349 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class estimates : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_RDVEstimate_RDVEstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Contact_ApplicationUser_OwnerId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganisationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerfomerId", table: "PerformerProfile"); - migrationBuilder.DropColumn(name: "RDVEstimateId", table: "CommandLine"); - migrationBuilder.DropTable("RDVEstimate"); - migrationBuilder.CreateTable( - name: "Estimate", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("Npgsql:Serial", true), - AttachedFilesString = table.Column(nullable: true), - AttachedGraphicsString = table.Column(nullable: true), - CommandId = table.Column(nullable: true), - Description = table.Column(nullable: true), - Status = table.Column(nullable: true), - Title = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Estimate", x => x.Id); - table.ForeignKey( - name: "FK_Estimate_BookQuery_CommandId", - column: x => x.CommandId, - principalTable: "BookQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - }); - migrationBuilder.AlterColumn( - name: "posted", - table: "Blog", - nullable: false, - defaultValueSql: "LOCALTIMESTAMP"); - migrationBuilder.AlterColumn( - name: "AuthorId", - table: "Blog", - nullable: true); - migrationBuilder.AddColumn( - name: "EstimateId", - table: "CommandLine", - nullable: true); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerfomerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Contact_ApplicationUser_OwnerId", - table: "Contact", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganisationAddressId", - table: "PerformerProfile", - column: "OrganisationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerfomerId", - table: "PerformerProfile", - column: "PerfomerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Contact_ApplicationUser_OwnerId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganisationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerfomerId", table: "PerformerProfile"); - migrationBuilder.DropColumn(name: "EstimateId", table: "CommandLine"); - migrationBuilder.DropTable("Estimate"); - migrationBuilder.CreateTable( - name: "RDVEstimate", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("Npgsql:Serial", true), - AttachedFilesString = table.Column(nullable: true), - AttachedGraphicsString = table.Column(nullable: true), - CommandId = table.Column(nullable: true), - Description = table.Column(nullable: true), - Status = table.Column(nullable: true), - Title = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_RDVEstimate", x => x.Id); - table.ForeignKey( - name: "FK_RDVEstimate_BookQuery_CommandId", - column: x => x.CommandId, - principalTable: "BookQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - }); - migrationBuilder.AlterColumn( - name: "posted", - table: "Blog", - nullable: false); - migrationBuilder.AlterColumn( - name: "AuthorId", - table: "Blog", - nullable: false); - migrationBuilder.AddColumn( - name: "RDVEstimateId", - table: "CommandLine", - nullable: true); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_RDVEstimate_RDVEstimateId", - table: "CommandLine", - column: "RDVEstimateId", - principalTable: "RDVEstimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerfomerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Contact_ApplicationUser_OwnerId", - table: "Contact", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganisationAddressId", - table: "PerformerProfile", - column: "OrganisationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerfomerId", - table: "PerformerProfile", - column: "PerfomerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20160726131331_performerIdTypo.Designer.cs b/src/Yavsc.Server/Migrations/2016/20160726131331_performerIdTypo.Designer.cs deleted file mode 100644 index e53915e2..00000000 --- a/src/Yavsc.Server/Migrations/2016/20160726131331_performerIdTypo.Designer.cs +++ /dev/null @@ -1,664 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20160726131331_performerIdTypo")] - partial class performerIdTypo - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired(); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("ActorDenomination"); - - b.Property("Description"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ArticleId"); - - b.Property("BookQueryId"); - - b.Property("Comment"); - - b.Property("Count"); - - b.Property("EstimateId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("CommandId"); - - b.Property("Description"); - - b.Property("Status"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("bcontent"); - - b.Property("modified"); - - b.Property("photo"); - - b.Property("posted") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("rate"); - - b.Property("title"); - - b.Property("visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("CreationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("EventDate"); - - b.Property("Lag"); - - b.Property("LocationId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CircleId") - .IsRequired(); - - b.Property("MemberId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.BaseProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Billing"); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Pricing"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptGeoLocalisation"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OfferId"); - - b.Property("OrganisationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Market.BaseProduct") - .WithMany() - .HasForeignKey("ArticleId"); - - b.HasOne("Yavsc.Models.Booking.BookQuery") - .WithMany() - .HasForeignKey("BookQueryId"); - - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.Booking.BookQuery") - .WithMany() - .HasForeignKey("CommandId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.HasOne("Yavsc.Models.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.Market.Service") - .WithMany() - .HasForeignKey("OfferId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("OrganisationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20160726131331_performerIdTypo.cs b/src/Yavsc.Server/Migrations/2016/20160726131331_performerIdTypo.cs deleted file mode 100644 index 1b684984..00000000 --- a/src/Yavsc.Server/Migrations/2016/20160726131331_performerIdTypo.cs +++ /dev/null @@ -1,275 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class performerIdTypo : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Contact_ApplicationUser_OwnerId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganisationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerfomerId", table: "PerformerProfile"); - migrationBuilder.DropPrimaryKey(name: "PK_PerformerProfile", table: "PerformerProfile"); - migrationBuilder.RenameColumn(name: "PerfomerId", table: "PerformerProfile",newName: "PerformerId"); - migrationBuilder.AddPrimaryKey( - name: "PK_PerformerProfile", - table: "PerformerProfile", - column: "PerformerId"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Contact_ApplicationUser_OwnerId", - table: "Contact", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganisationAddressId", - table: "PerformerProfile", - column: "OrganisationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Contact_ApplicationUser_OwnerId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganisationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropPrimaryKey(name: "PK_PerformerProfile", table: "PerformerProfile"); - migrationBuilder.DropColumn(name: "PerformerId", table: "PerformerProfile"); - migrationBuilder.AddColumn( - name: "PerfomerId", - table: "PerformerProfile", - nullable: false, - defaultValue: ""); - migrationBuilder.AddPrimaryKey( - name: "PK_PerformerProfile", - table: "PerformerProfile", - column: "PerfomerId"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerfomerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Contact_ApplicationUser_OwnerId", - table: "Contact", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganisationAddressId", - table: "PerformerProfile", - column: "OrganisationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerfomerId", - table: "PerformerProfile", - column: "PerfomerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20160726133002_otherOrtho.Designer.cs b/src/Yavsc.Server/Migrations/2016/20160726133002_otherOrtho.Designer.cs deleted file mode 100644 index 6bd06cec..00000000 --- a/src/Yavsc.Server/Migrations/2016/20160726133002_otherOrtho.Designer.cs +++ /dev/null @@ -1,664 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20160726133002_otherOrtho")] - partial class otherOrtho - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired(); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("ActorDenomination"); - - b.Property("Description"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ArticleId"); - - b.Property("BookQueryId"); - - b.Property("Comment"); - - b.Property("Count"); - - b.Property("EstimateId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("CommandId"); - - b.Property("Description"); - - b.Property("Status"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("bcontent"); - - b.Property("modified"); - - b.Property("photo"); - - b.Property("posted") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("rate"); - - b.Property("title"); - - b.Property("visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("CreationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("EventDate"); - - b.Property("Lag"); - - b.Property("LocationId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CircleId") - .IsRequired(); - - b.Property("MemberId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.BaseProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Billing"); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Pricing"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptGeoLocalization"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OfferId"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Market.BaseProduct") - .WithMany() - .HasForeignKey("ArticleId"); - - b.HasOne("Yavsc.Models.Booking.BookQuery") - .WithMany() - .HasForeignKey("BookQueryId"); - - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.Booking.BookQuery") - .WithMany() - .HasForeignKey("CommandId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.HasOne("Yavsc.Models.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.Market.Service") - .WithMany() - .HasForeignKey("OfferId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20160726133002_otherOrtho.cs b/src/Yavsc.Server/Migrations/2016/20160726133002_otherOrtho.cs deleted file mode 100644 index 4d905c90..00000000 --- a/src/Yavsc.Server/Migrations/2016/20160726133002_otherOrtho.cs +++ /dev/null @@ -1,273 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -namespace Yavsc.Migrations -{ - public partial class otherOrtho : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Contact_ApplicationUser_OwnerId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganisationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - - migrationBuilder.RenameColumn(name:"AcceptGeoLocalisation",table:"PerformerProfile",newName:"AcceptGeoLocalization"); - migrationBuilder.RenameColumn(name:"OrganisationAddressId",table:"PerformerProfile",newName:"OrganizationAddressId"); - - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Contact_ApplicationUser_OwnerId", - table: "Contact", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Contact_ApplicationUser_OwnerId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropColumn(name: "AcceptGeoLocalization", table: "PerformerProfile"); - migrationBuilder.DropColumn(name: "OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.AddColumn( - name: "AcceptGeoLocalisation", - table: "PerformerProfile", - nullable: false, - defaultValue: false); - migrationBuilder.AddColumn( - name: "OrganisationAddressId", - table: "PerformerProfile", - nullable: false, - defaultValue: 0L); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Contact_ApplicationUser_OwnerId", - table: "Contact", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganisationAddressId", - table: "PerformerProfile", - column: "OrganisationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20160726161530_ExceptionsSIREN.Designer.cs b/src/Yavsc.Server/Migrations/2016/20160726161530_ExceptionsSIREN.Designer.cs deleted file mode 100644 index 254804a6..00000000 --- a/src/Yavsc.Server/Migrations/2016/20160726161530_ExceptionsSIREN.Designer.cs +++ /dev/null @@ -1,671 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20160726161530_ExceptionsSIREN")] - partial class ExceptionsSIREN - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired(); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("ActorDenomination"); - - b.Property("Description"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ArticleId"); - - b.Property("BookQueryId"); - - b.Property("Comment"); - - b.Property("Count"); - - b.Property("EstimateId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("CommandId"); - - b.Property("Description"); - - b.Property("Status"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("bcontent"); - - b.Property("modified"); - - b.Property("photo"); - - b.Property("posted") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("rate"); - - b.Property("title"); - - b.Property("visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("CreationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("EventDate"); - - b.Property("Lag"); - - b.Property("LocationId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CircleId") - .IsRequired(); - - b.Property("MemberId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.BaseProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Billing"); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Pricing"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptGeoLocalization"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OfferId"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Market.BaseProduct") - .WithMany() - .HasForeignKey("ArticleId"); - - b.HasOne("Yavsc.Models.Booking.BookQuery") - .WithMany() - .HasForeignKey("BookQueryId"); - - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.Booking.BookQuery") - .WithMany() - .HasForeignKey("CommandId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.HasOne("Yavsc.Models.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.Market.Service") - .WithMany() - .HasForeignKey("OfferId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20160726161530_ExceptionsSIREN.cs b/src/Yavsc.Server/Migrations/2016/20160726161530_ExceptionsSIREN.cs deleted file mode 100644 index 0583e557..00000000 --- a/src/Yavsc.Server/Migrations/2016/20160726161530_ExceptionsSIREN.cs +++ /dev/null @@ -1,268 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -namespace Yavsc.Migrations -{ - public partial class ExceptionsSIREN : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Contact_ApplicationUser_OwnerId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.CreateTable( - name: "ExceptionSIREN", - columns: table => new - { - SIREN = table.Column(nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_ExceptionSIREN", x => x.SIREN); - }); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Contact_ApplicationUser_OwnerId", - table: "Contact", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Contact_ApplicationUser_OwnerId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropTable("ExceptionSIREN"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Contact_ApplicationUser_OwnerId", - table: "Contact", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20160802143258_bcontentornot.Designer.cs b/src/Yavsc.Server/Migrations/2016/20160802143258_bcontentornot.Designer.cs deleted file mode 100644 index c796f99c..00000000 --- a/src/Yavsc.Server/Migrations/2016/20160802143258_bcontentornot.Designer.cs +++ /dev/null @@ -1,671 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20160802143258_bcontentornot")] - partial class bcontentornot - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired(); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("ActorDenomination"); - - b.Property("Description"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ArticleId"); - - b.Property("BookQueryId"); - - b.Property("Comment"); - - b.Property("Count"); - - b.Property("EstimateId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("CommandId"); - - b.Property("Description"); - - b.Property("Status"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content"); - - b.Property("modified"); - - b.Property("photo"); - - b.Property("posted") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("rate"); - - b.Property("title"); - - b.Property("visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("CreationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("EventDate"); - - b.Property("Lag"); - - b.Property("LocationId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CircleId") - .IsRequired(); - - b.Property("MemberId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.BaseProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Billing"); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Pricing"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptGeoLocalization"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OfferId"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Market.BaseProduct") - .WithMany() - .HasForeignKey("ArticleId"); - - b.HasOne("Yavsc.Models.Booking.BookQuery") - .WithMany() - .HasForeignKey("BookQueryId"); - - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.Booking.BookQuery") - .WithMany() - .HasForeignKey("CommandId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.HasOne("Yavsc.Models.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.Market.Service") - .WithMany() - .HasForeignKey("OfferId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20160802143258_bcontentornot.cs b/src/Yavsc.Server/Migrations/2016/20160802143258_bcontentornot.cs deleted file mode 100644 index 738e530a..00000000 --- a/src/Yavsc.Server/Migrations/2016/20160802143258_bcontentornot.cs +++ /dev/null @@ -1,19 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -namespace Yavsc.Migrations -{ - public partial class bcontentornot : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.RenameColumn(name: "bcontent", table: "Blog", newName:"Content"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.RenameColumn(name: "Content", table: "Blog", newName:"bcontent"); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20160802145351_camelCaseBlog.Designer.cs b/src/Yavsc.Server/Migrations/2016/20160802145351_camelCaseBlog.Designer.cs deleted file mode 100644 index 67094ee2..00000000 --- a/src/Yavsc.Server/Migrations/2016/20160802145351_camelCaseBlog.Designer.cs +++ /dev/null @@ -1,671 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20160802145351_camelCaseBlog")] - partial class camelCaseBlog - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired(); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("ActorDenomination"); - - b.Property("Description"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ArticleId"); - - b.Property("BookQueryId"); - - b.Property("Comment"); - - b.Property("Count"); - - b.Property("EstimateId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("CommandId"); - - b.Property("Description"); - - b.Property("Status"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content"); - - b.Property("Modified"); - - b.Property("Photo"); - - b.Property("Posted") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("Rate"); - - b.Property("Title"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("CreationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("EventDate"); - - b.Property("Lag"); - - b.Property("LocationId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CircleId") - .IsRequired(); - - b.Property("MemberId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.BaseProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Billing"); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Pricing"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptGeoLocalization"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OfferId"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Market.BaseProduct") - .WithMany() - .HasForeignKey("ArticleId"); - - b.HasOne("Yavsc.Models.Booking.BookQuery") - .WithMany() - .HasForeignKey("BookQueryId"); - - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.Booking.BookQuery") - .WithMany() - .HasForeignKey("CommandId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.HasOne("Yavsc.Models.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.Market.Service") - .WithMany() - .HasForeignKey("OfferId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20160802145351_camelCaseBlog.cs b/src/Yavsc.Server/Migrations/2016/20160802145351_camelCaseBlog.cs deleted file mode 100644 index eeaaec81..00000000 --- a/src/Yavsc.Server/Migrations/2016/20160802145351_camelCaseBlog.cs +++ /dev/null @@ -1,305 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -namespace Yavsc.Migrations -{ - public partial class camelCaseBlog : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Contact_ApplicationUser_OwnerId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Contact_ApplicationUser_OwnerId", - table: "Contact", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.RenameColumn( - name: "visible", - table: "Blog", - newName: "Visible"); - migrationBuilder.RenameColumn( - name: "title", - table: "Blog", - newName: "Title"); - migrationBuilder.RenameColumn( - name: "rate", - table: "Blog", - newName: "Rate"); - migrationBuilder.RenameColumn( - name: "posted", - table: "Blog", - newName: "Posted"); - migrationBuilder.RenameColumn( - name: "photo", - table: "Blog", - newName: "Photo"); - migrationBuilder.RenameColumn( - name: "modified", - table: "Blog", - newName: "Modified"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Contact_ApplicationUser_OwnerId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Contact_ApplicationUser_OwnerId", - table: "Contact", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.RenameColumn( - name: "Visible", - table: "Blog", - newName: "visible"); - migrationBuilder.RenameColumn( - name: "Title", - table: "Blog", - newName: "title"); - migrationBuilder.RenameColumn( - name: "Rate", - table: "Blog", - newName: "rate"); - migrationBuilder.RenameColumn( - name: "Posted", - table: "Blog", - newName: "posted"); - migrationBuilder.RenameColumn( - name: "Photo", - table: "Blog", - newName: "photo"); - migrationBuilder.RenameColumn( - name: "Modified", - table: "Blog", - newName: "modified"); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20160901145646_products.Designer.cs b/src/Yavsc.Server/Migrations/2016/20160901145646_products.Designer.cs deleted file mode 100644 index 3ec0ed83..00000000 --- a/src/Yavsc.Server/Migrations/2016/20160901145646_products.Designer.cs +++ /dev/null @@ -1,697 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20160901145646_products")] - partial class products - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired(); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("ActorDenomination"); - - b.Property("Description"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ArticleId"); - - b.Property("BookQueryId"); - - b.Property("Comment"); - - b.Property("Count"); - - b.Property("EstimateId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("CommandId"); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Status"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content"); - - b.Property("Modified"); - - b.Property("Photo"); - - b.Property("Posted") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("Rate"); - - b.Property("Title"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("CreationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("EventDate"); - - b.Property("Lag"); - - b.Property("LocationId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CircleId") - .IsRequired(); - - b.Property("MemberId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.BaseProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("Discriminator") - .IsRequired(); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:DiscriminatorProperty", "Discriminator"); - - b.HasAnnotation("Relational:DiscriminatorValue", "BaseProduct"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptGeoLocalization"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OfferId"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.HasBaseType("Yavsc.Models.Market.BaseProduct"); - - b.Property("Depth"); - - b.Property("Height"); - - b.Property("Price"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasAnnotation("Relational:DiscriminatorValue", "Product"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Market.BaseProduct") - .WithMany() - .HasForeignKey("ArticleId"); - - b.HasOne("Yavsc.Models.Booking.BookQuery") - .WithMany() - .HasForeignKey("BookQueryId"); - - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.Booking.BookQuery") - .WithMany() - .HasForeignKey("CommandId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.HasOne("Yavsc.Models.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.Market.Service") - .WithMany() - .HasForeignKey("OfferId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20160901145646_products.cs b/src/Yavsc.Server/Migrations/2016/20160901145646_products.cs deleted file mode 100644 index 4f66b9cd..00000000 --- a/src/Yavsc.Server/Migrations/2016/20160901145646_products.cs +++ /dev/null @@ -1,310 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -namespace Yavsc.Migrations -{ - public partial class products : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Contact_ApplicationUser_OwnerId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropColumn(name: "Billing", table: "Service"); - migrationBuilder.DropColumn(name: "Pricing", table: "Service"); - migrationBuilder.AddColumn( - name: "Discriminator", - table: "BaseProduct", - nullable: false, - defaultValue: ""); - migrationBuilder.AddColumn( - name: "Depth", - table: "BaseProduct", - nullable: true); - migrationBuilder.AddColumn( - name: "Height", - table: "BaseProduct", - nullable: true); - migrationBuilder.AddColumn( - name: "Price", - table: "BaseProduct", - nullable: true); - migrationBuilder.AddColumn( - name: "Weight", - table: "BaseProduct", - nullable: true); - migrationBuilder.AddColumn( - name: "Width", - table: "BaseProduct", - nullable: true); - migrationBuilder.AddColumn( - name: "ClientId", - table: "Estimate", - nullable: false, - defaultValue: ""); - migrationBuilder.AddColumn( - name: "OwnerId", - table: "Estimate", - nullable: false, - defaultValue: ""); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Contact_ApplicationUser_OwnerId", - table: "Contact", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Contact_ApplicationUser_OwnerId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropColumn(name: "Discriminator", table: "BaseProduct"); - migrationBuilder.DropColumn(name: "Depth", table: "BaseProduct"); - migrationBuilder.DropColumn(name: "Height", table: "BaseProduct"); - migrationBuilder.DropColumn(name: "Price", table: "BaseProduct"); - migrationBuilder.DropColumn(name: "Weight", table: "BaseProduct"); - migrationBuilder.DropColumn(name: "Width", table: "BaseProduct"); - migrationBuilder.DropColumn(name: "ClientId", table: "Estimate"); - migrationBuilder.DropColumn(name: "OwnerId", table: "Estimate"); - migrationBuilder.AddColumn( - name: "Billing", - table: "Service", - nullable: true); - migrationBuilder.AddColumn( - name: "Pricing", - table: "Service", - nullable: true); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Contact_ApplicationUser_OwnerId", - table: "Contact", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20160905095708_tags.Designer.cs b/src/Yavsc.Server/Migrations/2016/20160905095708_tags.Designer.cs deleted file mode 100644 index cf698817..00000000 --- a/src/Yavsc.Server/Migrations/2016/20160905095708_tags.Designer.cs +++ /dev/null @@ -1,725 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20160905095708_tags")] - partial class tags - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired(); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("ActorDenomination"); - - b.Property("Description"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ArticleId"); - - b.Property("BookQueryId"); - - b.Property("Comment"); - - b.Property("Count"); - - b.Property("EstimateId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("CommandId"); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Status"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content"); - - b.Property("Modified"); - - b.Property("Photo"); - - b.Property("Posted") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("Rate"); - - b.Property("Title"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("CreationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("EventDate"); - - b.Property("Lag"); - - b.Property("LocationId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CircleId"); - - b.Property("MemberId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.BaseProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("Discriminator") - .IsRequired(); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:DiscriminatorProperty", "Discriminator"); - - b.HasAnnotation("Relational:DiscriminatorValue", "BaseProduct"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.PostTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptGeoLocalization"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OfferId"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.HasBaseType("Yavsc.Models.Market.BaseProduct"); - - b.Property("Depth"); - - b.Property("Height"); - - b.Property("Price"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasAnnotation("Relational:DiscriminatorValue", "Product"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Market.BaseProduct") - .WithMany() - .HasForeignKey("ArticleId"); - - b.HasOne("Yavsc.Models.Booking.BookQuery") - .WithMany() - .HasForeignKey("BookQueryId"); - - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.Booking.BookQuery") - .WithMany() - .HasForeignKey("CommandId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.HasOne("Yavsc.Models.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.PostTag", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.Market.Service") - .WithMany() - .HasForeignKey("OfferId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20160905095708_tags.cs b/src/Yavsc.Server/Migrations/2016/20160905095708_tags.cs deleted file mode 100644 index 14e3882b..00000000 --- a/src/Yavsc.Server/Migrations/2016/20160905095708_tags.cs +++ /dev/null @@ -1,310 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class tags : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_Circle_ApplicationUser_OwnerId", table: "Circle"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Contact_ApplicationUser_OwnerId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.CreateTable( - name: "PostTag", - columns: table => new - { - PostId = table.Column(nullable: false), - TagId = table.Column(nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_PostTag", x => new { x.PostId, x.TagId }); - table.ForeignKey( - name: "FK_PostTag_Blog_PostId", - column: x => x.PostId, - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - migrationBuilder.CreateTable( - name: "Tag", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("Npgsql:Serial", true), - Name = table.Column(nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Tag", x => x.Id); - }); - migrationBuilder.AddColumn( - name: "ApplicationUserId", - table: "Circle", - nullable: true); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Circle_ApplicationUser_ApplicationUserId", - table: "Circle", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Contact_ApplicationUser_OwnerId", - table: "Contact", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_Circle_ApplicationUser_ApplicationUserId", table: "Circle"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Contact_ApplicationUser_OwnerId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropColumn(name: "ApplicationUserId", table: "Circle"); - migrationBuilder.DropTable("PostTag"); - migrationBuilder.DropTable("Tag"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Circle_ApplicationUser_OwnerId", - table: "Circle", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Contact_ApplicationUser_OwnerId", - table: "Contact", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20160916075415_estimateFreeFromCatalog.Designer.cs b/src/Yavsc.Server/Migrations/2016/20160916075415_estimateFreeFromCatalog.Designer.cs deleted file mode 100644 index 50e03afa..00000000 --- a/src/Yavsc.Server/Migrations/2016/20160916075415_estimateFreeFromCatalog.Designer.cs +++ /dev/null @@ -1,747 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20160916075415_estimateFreeFromCatalog")] - partial class estimateFreeFromCatalog - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired(); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("ActorDenomination"); - - b.Property("Description"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ArticleId"); - - b.Property("Count"); - - b.Property("Description") - .IsRequired(); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("CommandId"); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Status"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content"); - - b.Property("Modified"); - - b.Property("Photo"); - - b.Property("Posted") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("Rate"); - - b.Property("Title"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("CreationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("EventDate"); - - b.Property("Lag"); - - b.Property("LocationId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CircleId"); - - b.Property("MemberId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.BaseProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("Discriminator") - .IsRequired(); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:DiscriminatorProperty", "Discriminator"); - - b.HasAnnotation("Relational:DiscriminatorValue", "BaseProduct"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BookQueryId"); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.PostTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptGeoLocalization"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OfferId"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.HasBaseType("Yavsc.Models.Market.BaseProduct"); - - b.Property("Depth"); - - b.Property("Height"); - - b.Property("Price"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasAnnotation("Relational:DiscriminatorValue", "Product"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Market.BaseProduct") - .WithMany() - .HasForeignKey("ArticleId"); - - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.Booking.BookQuery") - .WithMany() - .HasForeignKey("CommandId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.HasOne("Yavsc.Models.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Booking.BookQuery") - .WithMany() - .HasForeignKey("BookQueryId"); - - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.PostTag", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.Market.Service") - .WithMany() - .HasForeignKey("OfferId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20160916075415_estimateFreeFromCatalog.cs b/src/Yavsc.Server/Migrations/2016/20160916075415_estimateFreeFromCatalog.cs deleted file mode 100644 index 8e7191c6..00000000 --- a/src/Yavsc.Server/Migrations/2016/20160916075415_estimateFreeFromCatalog.cs +++ /dev/null @@ -1,339 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class estimateFreeFromCatalog : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_BookQuery_BookQueryId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Contact_ApplicationUser_OwnerId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropColumn(name: "BookQueryId", table: "CommandLine"); - migrationBuilder.DropColumn(name: "Comment", table: "CommandLine"); - migrationBuilder.CreateTable( - name: "EstimateTemplate", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("Npgsql:Serial", true), - Description = table.Column(nullable: true), - OwnerId = table.Column(nullable: false), - Title = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_EstimateTemplate", x => x.Id); - }); - migrationBuilder.AddColumn( - name: "BookQueryId", - table: "Service", - nullable: true); - migrationBuilder.AddColumn( - name: "Description", - table: "CommandLine", - nullable: false, - defaultValue: ""); - migrationBuilder.AddColumn( - name: "EstimateTemplateId", - table: "CommandLine", - nullable: true); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_EstimateTemplate_EstimateTemplateId", - table: "CommandLine", - column: "EstimateTemplateId", - principalTable: "EstimateTemplate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Contact_ApplicationUser_OwnerId", - table: "Contact", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Service_BookQuery_BookQueryId", - table: "Service", - column: "BookQueryId", - principalTable: "BookQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_EstimateTemplate_EstimateTemplateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Contact_ApplicationUser_OwnerId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_Service_BookQuery_BookQueryId", table: "Service"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropColumn(name: "BookQueryId", table: "Service"); - migrationBuilder.DropColumn(name: "Description", table: "CommandLine"); - migrationBuilder.DropColumn(name: "EstimateTemplateId", table: "CommandLine"); - migrationBuilder.DropTable("EstimateTemplate"); - migrationBuilder.AddColumn( - name: "BookQueryId", - table: "CommandLine", - nullable: true); - migrationBuilder.AddColumn( - name: "Comment", - table: "CommandLine", - nullable: true); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_BookQuery_BookQueryId", - table: "CommandLine", - column: "BookQueryId", - principalTable: "BookQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Contact_ApplicationUser_OwnerId", - table: "Contact", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20160917010249_yaev.Designer.cs b/src/Yavsc.Server/Migrations/2016/20160917010249_yaev.Designer.cs deleted file mode 100644 index d3696b2e..00000000 --- a/src/Yavsc.Server/Migrations/2016/20160917010249_yaev.Designer.cs +++ /dev/null @@ -1,739 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20160917010249_yaev")] - partial class yaev - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired(); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("ActorDenomination"); - - b.Property("Description"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ArticleId"); - - b.Property("Count"); - - b.Property("Description") - .IsRequired(); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("CommandId"); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Status"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content"); - - b.Property("Modified"); - - b.Property("Photo"); - - b.Property("Posted") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("Rate"); - - b.Property("Title"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("CreationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CircleId"); - - b.Property("MemberId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.BaseProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("Discriminator") - .IsRequired(); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:DiscriminatorProperty", "Discriminator"); - - b.HasAnnotation("Relational:DiscriminatorValue", "BaseProduct"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.PostTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptGeoLocalization"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OfferId"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.HasBaseType("Yavsc.Models.Market.BaseProduct"); - - b.Property("Depth"); - - b.Property("Height"); - - b.Property("Price"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasAnnotation("Relational:DiscriminatorValue", "Product"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Market.BaseProduct") - .WithMany() - .HasForeignKey("ArticleId"); - - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.Booking.BookQuery") - .WithMany() - .HasForeignKey("CommandId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.HasOne("Yavsc.Models.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.PostTag", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.Market.Service") - .WithMany() - .HasForeignKey("OfferId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20160917010249_yaev.cs b/src/Yavsc.Server/Migrations/2016/20160917010249_yaev.cs deleted file mode 100644 index 99e0d0d3..00000000 --- a/src/Yavsc.Server/Migrations/2016/20160917010249_yaev.cs +++ /dev/null @@ -1,292 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -namespace Yavsc.Migrations -{ - public partial class yaev : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Contact_ApplicationUser_OwnerId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_Service_BookQuery_BookQueryId", table: "Service"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropColumn(name: "BookQueryId", table: "Service"); - migrationBuilder.DropColumn(name: "Lag", table: "BookQuery"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Contact_ApplicationUser_OwnerId", - table: "Contact", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Contact_ApplicationUser_OwnerId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.AddColumn( - name: "BookQueryId", - table: "Service", - nullable: true); - migrationBuilder.AddColumn( - name: "Lag", - table: "BookQuery", - nullable: false, - defaultValue: 0); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Contact_ApplicationUser_OwnerId", - table: "Contact", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Service_BookQuery_BookQueryId", - table: "Service", - column: "BookQueryId", - principalTable: "BookQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20160920215459_avatar.Designer.cs b/src/Yavsc.Server/Migrations/2016/20160920215459_avatar.Designer.cs deleted file mode 100644 index ca21bc76..00000000 --- a/src/Yavsc.Server/Migrations/2016/20160920215459_avatar.Designer.cs +++ /dev/null @@ -1,741 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20160920215459_avatar")] - partial class avatar - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired(); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("ActorDenomination"); - - b.Property("Description"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("Avatar"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ArticleId"); - - b.Property("Count"); - - b.Property("Description") - .IsRequired(); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("CommandId"); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Status"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content"); - - b.Property("Modified"); - - b.Property("Photo"); - - b.Property("Posted") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("Rate"); - - b.Property("Title"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("CreationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CircleId"); - - b.Property("MemberId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.BaseProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("Discriminator") - .IsRequired(); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:DiscriminatorProperty", "Discriminator"); - - b.HasAnnotation("Relational:DiscriminatorValue", "BaseProduct"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.PostTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptGeoLocalization"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OfferId"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.HasBaseType("Yavsc.Models.Market.BaseProduct"); - - b.Property("Depth"); - - b.Property("Height"); - - b.Property("Price"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasAnnotation("Relational:DiscriminatorValue", "Product"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Market.BaseProduct") - .WithMany() - .HasForeignKey("ArticleId"); - - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.Booking.BookQuery") - .WithMany() - .HasForeignKey("CommandId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.HasOne("Yavsc.Models.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.PostTag", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.Market.Service") - .WithMany() - .HasForeignKey("OfferId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20160920215459_avatar.cs b/src/Yavsc.Server/Migrations/2016/20160920215459_avatar.cs deleted file mode 100644 index 54216a73..00000000 --- a/src/Yavsc.Server/Migrations/2016/20160920215459_avatar.cs +++ /dev/null @@ -1,278 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -namespace Yavsc.Migrations -{ - public partial class avatar : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Contact_ApplicationUser_OwnerId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.AddColumn( - name: "Avatar", - table: "AspNetUsers", - nullable: true); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Contact_ApplicationUser_OwnerId", - table: "Contact", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Contact_ApplicationUser_OwnerId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropColumn(name: "Avatar", table: "AspNetUsers"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Contact_ApplicationUser_OwnerId", - table: "Contact", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20161010102616_recontact.Designer.cs b/src/Yavsc.Server/Migrations/2016/20161010102616_recontact.Designer.cs deleted file mode 100644 index 5ab8893d..00000000 --- a/src/Yavsc.Server/Migrations/2016/20161010102616_recontact.Designer.cs +++ /dev/null @@ -1,745 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20161010102616_recontact")] - partial class recontact - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired(); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("ActorDenomination"); - - b.Property("Description"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("Avatar"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ArticleId"); - - b.Property("Count"); - - b.Property("Description") - .IsRequired(); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("CommandId"); - - b.Property("CommandType"); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Status"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content"); - - b.Property("Modified"); - - b.Property("Photo"); - - b.Property("Posted") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("Rate"); - - b.Property("Title"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("CreationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CircleId"); - - b.Property("MemberId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.BaseProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("Discriminator") - .IsRequired(); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:DiscriminatorProperty", "Discriminator"); - - b.HasAnnotation("Relational:DiscriminatorValue", "BaseProduct"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.PostTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptGeoLocalization"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OfferId"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.HasBaseType("Yavsc.Models.Market.BaseProduct"); - - b.Property("Depth"); - - b.Property("Height"); - - b.Property("Price"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasAnnotation("Relational:DiscriminatorValue", "Product"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Market.BaseProduct") - .WithMany() - .HasForeignKey("ArticleId"); - - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.Booking.BookQuery") - .WithMany() - .HasForeignKey("CommandId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.HasOne("Yavsc.Models.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.PostTag", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.Market.Service") - .WithMany() - .HasForeignKey("OfferId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20161010102616_recontact.cs b/src/Yavsc.Server/Migrations/2016/20161010102616_recontact.cs deleted file mode 100644 index 7de0b144..00000000 --- a/src/Yavsc.Server/Migrations/2016/20161010102616_recontact.cs +++ /dev/null @@ -1,283 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -namespace Yavsc.Migrations -{ - public partial class recontact : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Contact_ApplicationUser_OwnerId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.AddColumn( - name: "ApplicationUserId", - table: "Contact", - nullable: true); - migrationBuilder.AddColumn( - name: "CommandType", - table: "Estimate", - nullable: true); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Contact_ApplicationUser_ApplicationUserId", - table: "Contact", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Contact_ApplicationUser_ApplicationUserId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropColumn(name: "ApplicationUserId", table: "Contact"); - migrationBuilder.DropColumn(name: "CommandType", table: "Estimate"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Contact_ApplicationUser_OwnerId", - table: "Contact", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20161020143022_estimateClientApprouval.Designer.cs b/src/Yavsc.Server/Migrations/2016/20161020143022_estimateClientApprouval.Designer.cs deleted file mode 100644 index 9f933215..00000000 --- a/src/Yavsc.Server/Migrations/2016/20161020143022_estimateClientApprouval.Designer.cs +++ /dev/null @@ -1,749 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20161020143022_estimateClientApprouval")] - partial class estimateClientApprouval - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired(); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("ActorDenomination"); - - b.Property("Description"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("Avatar"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ArticleId"); - - b.Property("Count"); - - b.Property("Description") - .IsRequired(); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientApprouvalDate"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("CommandId"); - - b.Property("CommandType"); - - b.Property("Description"); - - b.Property("LatestValidationDate"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Status"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content"); - - b.Property("Modified"); - - b.Property("Photo"); - - b.Property("Posted") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("Rate"); - - b.Property("Title"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("CreationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CircleId"); - - b.Property("MemberId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.BaseProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("Discriminator") - .IsRequired(); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:DiscriminatorProperty", "Discriminator"); - - b.HasAnnotation("Relational:DiscriminatorValue", "BaseProduct"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.PostTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptGeoLocalization"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OfferId"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.HasBaseType("Yavsc.Models.Market.BaseProduct"); - - b.Property("Depth"); - - b.Property("Height"); - - b.Property("Price"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasAnnotation("Relational:DiscriminatorValue", "Product"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Market.BaseProduct") - .WithMany() - .HasForeignKey("ArticleId"); - - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.Booking.BookQuery") - .WithMany() - .HasForeignKey("CommandId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.HasOne("Yavsc.Models.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.PostTag", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.Market.Service") - .WithMany() - .HasForeignKey("OfferId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20161020143022_estimateClientApprouval.cs b/src/Yavsc.Server/Migrations/2016/20161020143022_estimateClientApprouval.cs deleted file mode 100644 index 834b3998..00000000 --- a/src/Yavsc.Server/Migrations/2016/20161020143022_estimateClientApprouval.cs +++ /dev/null @@ -1,270 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class estimateClientApprouval : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.AddColumn( - name: "ClientApprouvalDate", - table: "Estimate", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - migrationBuilder.AddColumn( - name: "LatestValidationDate", - table: "Estimate", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropColumn(name: "ClientApprouvalDate", table: "Estimate"); - migrationBuilder.DropColumn(name: "LatestValidationDate", table: "Estimate"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20161020212947_userAddress.Designer.cs b/src/Yavsc.Server/Migrations/2016/20161020212947_userAddress.Designer.cs deleted file mode 100644 index 6288e0dc..00000000 --- a/src/Yavsc.Server/Migrations/2016/20161020212947_userAddress.Designer.cs +++ /dev/null @@ -1,754 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20161020212947_userAddress")] - partial class userAddress - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("ActorDenomination"); - - b.Property("Description"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ArticleId"); - - b.Property("Count"); - - b.Property("Description") - .IsRequired(); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientApprouvalDate"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("CommandId"); - - b.Property("CommandType"); - - b.Property("Description"); - - b.Property("LatestValidationDate"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Status"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content"); - - b.Property("Modified"); - - b.Property("Photo"); - - b.Property("Posted") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("Rate"); - - b.Property("Title"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("CreationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CircleId"); - - b.Property("MemberId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.BaseProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("Discriminator") - .IsRequired(); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:DiscriminatorProperty", "Discriminator"); - - b.HasAnnotation("Relational:DiscriminatorValue", "BaseProduct"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.PostTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptGeoLocalization"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OfferId"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.HasBaseType("Yavsc.Models.Market.BaseProduct"); - - b.Property("Depth"); - - b.Property("Height"); - - b.Property("Price"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasAnnotation("Relational:DiscriminatorValue", "Product"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Market.BaseProduct") - .WithMany() - .HasForeignKey("ArticleId"); - - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.Booking.BookQuery") - .WithMany() - .HasForeignKey("CommandId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.HasOne("Yavsc.Models.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.PostTag", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.Market.Service") - .WithMany() - .HasForeignKey("OfferId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20161020212947_userAddress.cs b/src/Yavsc.Server/Migrations/2016/20161020212947_userAddress.cs deleted file mode 100644 index dd52dfb1..00000000 --- a/src/Yavsc.Server/Migrations/2016/20161020212947_userAddress.cs +++ /dev/null @@ -1,262 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -namespace Yavsc.Migrations -{ - public partial class userAddress : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.AddColumn( - name: "FullName", - table: "AspNetUsers", - nullable: true); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropColumn(name: "FullName", table: "AspNetUsers"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20161021153306_estimateLines.Designer.cs b/src/Yavsc.Server/Migrations/2016/20161021153306_estimateLines.Designer.cs deleted file mode 100644 index 1d888725..00000000 --- a/src/Yavsc.Server/Migrations/2016/20161021153306_estimateLines.Designer.cs +++ /dev/null @@ -1,754 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20161021153306_estimateLines")] - partial class estimateLines - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("ActorDenomination"); - - b.Property("Description"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ArticleId"); - - b.Property("Count"); - - b.Property("Description") - .IsRequired(); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientApprouvalDate"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("CommandId"); - - b.Property("CommandType"); - - b.Property("Description"); - - b.Property("LatestValidationDate"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Status"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content"); - - b.Property("Modified"); - - b.Property("Photo"); - - b.Property("Posted") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("Rate"); - - b.Property("Title"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("CreationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CircleId"); - - b.Property("MemberId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.BaseProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("Discriminator") - .IsRequired(); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:DiscriminatorProperty", "Discriminator"); - - b.HasAnnotation("Relational:DiscriminatorValue", "BaseProduct"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.PostTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptGeoLocalization"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OfferId"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.HasBaseType("Yavsc.Models.Market.BaseProduct"); - - b.Property("Depth"); - - b.Property("Height"); - - b.Property("Price"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasAnnotation("Relational:DiscriminatorValue", "Product"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Market.BaseProduct") - .WithMany() - .HasForeignKey("ArticleId"); - - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.Booking.BookQuery") - .WithMany() - .HasForeignKey("CommandId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.HasOne("Yavsc.Models.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.PostTag", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.Market.Service") - .WithMany() - .HasForeignKey("OfferId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20161021153306_estimateLines.cs b/src/Yavsc.Server/Migrations/2016/20161021153306_estimateLines.cs deleted file mode 100644 index 9c20a25d..00000000 --- a/src/Yavsc.Server/Migrations/2016/20161021153306_estimateLines.cs +++ /dev/null @@ -1,282 +0,0 @@ - - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -namespace Yavsc.Migrations -{ - public partial class estimateLines : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.AlterColumn( - name: "EstimateId", - table: "CommandLine", - nullable: false); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.AlterColumn( - name: "EstimateId", - table: "CommandLine", - nullable: true); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20161101234703_chatConnection.Designer.cs b/src/Yavsc.Server/Migrations/2016/20161101234703_chatConnection.Designer.cs deleted file mode 100644 index 05475d47..00000000 --- a/src/Yavsc.Server/Migrations/2016/20161101234703_chatConnection.Designer.cs +++ /dev/null @@ -1,803 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20161101234703_chatConnection")] - partial class chatConnection - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Model.Chat.Connection", b => - { - b.Property("ConnectionID"); - - b.Property("ApplicationUserId"); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionID"); - }); - - modelBuilder.Entity("Yavsc.Model.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("ChatHubConnectionId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("Rate"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("ActorDenomination"); - - b.Property("Description"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ArticleId"); - - b.Property("Count"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientApprouvalDate"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("CommandId"); - - b.Property("CommandType"); - - b.Property("Description"); - - b.Property("LatestValidationDate"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Status"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content"); - - b.Property("Modified"); - - b.Property("Photo"); - - b.Property("Posted") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("Rate"); - - b.Property("Title"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("CreationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CircleId"); - - b.Property("MemberId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.BaseProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("Discriminator") - .IsRequired(); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:DiscriminatorProperty", "Discriminator"); - - b.HasAnnotation("Relational:DiscriminatorValue", "BaseProduct"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.PostTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptGeoLocalization"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OfferId"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.HasBaseType("Yavsc.Models.Market.BaseProduct"); - - b.Property("Depth"); - - b.Property("Height"); - - b.Property("Price"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasAnnotation("Relational:DiscriminatorValue", "Product"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Model.Chat.Connection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Model.ClientProviderInfo", b => - { - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("BillingAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Market.BaseProduct") - .WithMany() - .HasForeignKey("ArticleId"); - - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.Booking.BookQuery") - .WithMany() - .HasForeignKey("CommandId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.HasOne("Yavsc.Models.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.PostTag", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.Market.Service") - .WithMany() - .HasForeignKey("OfferId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20161101234703_chatConnection.cs b/src/Yavsc.Server/Migrations/2016/20161101234703_chatConnection.cs deleted file mode 100644 index ab50e752..00000000 --- a/src/Yavsc.Server/Migrations/2016/20161101234703_chatConnection.cs +++ /dev/null @@ -1,318 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class chatConnection : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.CreateTable( - name: "Connection", - columns: table => new - { - ConnectionID = table.Column(nullable: false), - ApplicationUserId = table.Column(nullable: true), - Connected = table.Column(nullable: false), - UserAgent = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Connection", x => x.ConnectionID); - table.ForeignKey( - name: "FK_Connection_ApplicationUser_ApplicationUserId", - column: x => x.ApplicationUserId, - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - }); - migrationBuilder.CreateTable( - name: "ClientProviderInfo", - columns: table => new - { - UserId = table.Column(nullable: false), - Avatar = table.Column(nullable: true), - BillingAddressId = table.Column(nullable: true), - ChatHubConnectionId = table.Column(nullable: true), - EMail = table.Column(nullable: true), - Phone = table.Column(nullable: true), - Rate = table.Column(nullable: false), - UserName = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_ClientProviderInfo", x => x.UserId); - table.ForeignKey( - name: "FK_ClientProviderInfo_Location_BillingAddressId", - column: x => x.BillingAddressId, - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - }); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropTable("Connection"); - migrationBuilder.DropTable("ClientProviderInfo"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20161102132129_fixCxOwner.Designer.cs b/src/Yavsc.Server/Migrations/2016/20161102132129_fixCxOwner.Designer.cs deleted file mode 100644 index 088b1dc7..00000000 --- a/src/Yavsc.Server/Migrations/2016/20161102132129_fixCxOwner.Designer.cs +++ /dev/null @@ -1,803 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20161102132129_fixCxOwner")] - partial class fixCxOwner - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Model.Chat.Connection", b => - { - b.Property("ConnectionID"); - - b.Property("ApplicationUserId"); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionID"); - }); - - modelBuilder.Entity("Yavsc.Model.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("ChatHubConnectionId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("Rate"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("ActorDenomination"); - - b.Property("Description"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ArticleId"); - - b.Property("Count"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientApprouvalDate"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("CommandId"); - - b.Property("CommandType"); - - b.Property("Description"); - - b.Property("LatestValidationDate"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Status"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content"); - - b.Property("Modified"); - - b.Property("Photo"); - - b.Property("Posted") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("Rate"); - - b.Property("Title"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("CreationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CircleId"); - - b.Property("MemberId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.BaseProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("Discriminator") - .IsRequired(); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:DiscriminatorProperty", "Discriminator"); - - b.HasAnnotation("Relational:DiscriminatorValue", "BaseProduct"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.PostTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptGeoLocalization"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OfferId"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.HasBaseType("Yavsc.Models.Market.BaseProduct"); - - b.Property("Depth"); - - b.Property("Height"); - - b.Property("Price"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasAnnotation("Relational:DiscriminatorValue", "Product"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Model.Chat.Connection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Model.ClientProviderInfo", b => - { - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("BillingAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Market.BaseProduct") - .WithMany() - .HasForeignKey("ArticleId"); - - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.Booking.BookQuery") - .WithMany() - .HasForeignKey("CommandId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.HasOne("Yavsc.Models.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.PostTag", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.Market.Service") - .WithMany() - .HasForeignKey("OfferId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20161102132129_fixCxOwner.cs b/src/Yavsc.Server/Migrations/2016/20161102132129_fixCxOwner.cs deleted file mode 100644 index c31b7fc9..00000000 --- a/src/Yavsc.Server/Migrations/2016/20161102132129_fixCxOwner.cs +++ /dev/null @@ -1,274 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class fixCxOwner : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20161102133253_fix2CxOwner.Designer.cs b/src/Yavsc.Server/Migrations/2016/20161102133253_fix2CxOwner.Designer.cs deleted file mode 100644 index 48db06c8..00000000 --- a/src/Yavsc.Server/Migrations/2016/20161102133253_fix2CxOwner.Designer.cs +++ /dev/null @@ -1,803 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20161102133253_fix2CxOwner")] - partial class fix2CxOwner - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Model.Chat.Connection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId"); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Model.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("ChatHubConnectionId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("Rate"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("ActorDenomination"); - - b.Property("Description"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ArticleId"); - - b.Property("Count"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientApprouvalDate"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("CommandId"); - - b.Property("CommandType"); - - b.Property("Description"); - - b.Property("LatestValidationDate"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Status"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content"); - - b.Property("Modified"); - - b.Property("Photo"); - - b.Property("Posted") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("Rate"); - - b.Property("Title"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("CreationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CircleId"); - - b.Property("MemberId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.BaseProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("Discriminator") - .IsRequired(); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:DiscriminatorProperty", "Discriminator"); - - b.HasAnnotation("Relational:DiscriminatorValue", "BaseProduct"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.PostTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptGeoLocalization"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OfferId"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.HasBaseType("Yavsc.Models.Market.BaseProduct"); - - b.Property("Depth"); - - b.Property("Height"); - - b.Property("Price"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasAnnotation("Relational:DiscriminatorValue", "Product"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Model.Chat.Connection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Model.ClientProviderInfo", b => - { - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("BillingAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Market.BaseProduct") - .WithMany() - .HasForeignKey("ArticleId"); - - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.Booking.BookQuery") - .WithMany() - .HasForeignKey("CommandId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.HasOne("Yavsc.Models.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.PostTag", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.Market.Service") - .WithMany() - .HasForeignKey("OfferId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20161102133253_fix2CxOwner.cs b/src/Yavsc.Server/Migrations/2016/20161102133253_fix2CxOwner.cs deleted file mode 100644 index ac1465e5..00000000 --- a/src/Yavsc.Server/Migrations/2016/20161102133253_fix2CxOwner.cs +++ /dev/null @@ -1,282 +0,0 @@ - - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -namespace Yavsc.Migrations -{ - public partial class fix2CxOwner : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.RenameColumn( - name: "ConnectionID", - table: "Connection", - newName: "ConnectionId"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.RenameColumn( - name: "ConnectionId", - table: "Connection", - newName: "ConnectionID"); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20161104090806_bankUserProfile.Designer.cs b/src/Yavsc.Server/Migrations/2016/20161104090806_bankUserProfile.Designer.cs deleted file mode 100644 index c3345a4d..00000000 --- a/src/Yavsc.Server/Migrations/2016/20161104090806_bankUserProfile.Designer.cs +++ /dev/null @@ -1,834 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20161104090806_bankUserProfile")] - partial class bankUserProfile - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Model.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Model.Chat.Connection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId"); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Model.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("ChatHubConnectionId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("Rate"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("ActorDenomination"); - - b.Property("Description"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ArticleId"); - - b.Property("Count"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientApprouvalDate"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("CommandId"); - - b.Property("CommandType"); - - b.Property("Description"); - - b.Property("LatestValidationDate"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Status"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content"); - - b.Property("Modified"); - - b.Property("Photo"); - - b.Property("Posted") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("Rate"); - - b.Property("Title"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("CreationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CircleId"); - - b.Property("MemberId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.BaseProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("Discriminator") - .IsRequired(); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:DiscriminatorProperty", "Discriminator"); - - b.HasAnnotation("Relational:DiscriminatorValue", "BaseProduct"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.PostTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptGeoLocalization"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OfferId"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.HasBaseType("Yavsc.Models.Market.BaseProduct"); - - b.Property("Depth"); - - b.Property("Height"); - - b.Property("Price"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasAnnotation("Relational:DiscriminatorValue", "Product"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Model.Chat.Connection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Model.ClientProviderInfo", b => - { - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("BillingAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Model.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Market.BaseProduct") - .WithMany() - .HasForeignKey("ArticleId"); - - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.Booking.BookQuery") - .WithMany() - .HasForeignKey("CommandId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.HasOne("Yavsc.Models.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.PostTag", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.Market.Service") - .WithMany() - .HasForeignKey("OfferId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20161104090806_bankUserProfile.cs b/src/Yavsc.Server/Migrations/2016/20161104090806_bankUserProfile.cs deleted file mode 100644 index f447a29a..00000000 --- a/src/Yavsc.Server/Migrations/2016/20161104090806_bankUserProfile.cs +++ /dev/null @@ -1,305 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class bankUserProfile : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.CreateTable( - name: "BankIdentity", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("Npgsql:Serial", true), - AccountNumber = table.Column(nullable: true), - BIC = table.Column(nullable: true), - BankCode = table.Column(nullable: true), - BankedKey = table.Column(nullable: false), - IBAN = table.Column(nullable: true), - WicketCode = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_BankIdentity", x => x.Id); - }); - migrationBuilder.AddColumn( - name: "BankInfoId", - table: "AspNetUsers", - nullable: true); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_ApplicationUser_BankIdentity_BankInfoId", - table: "AspNetUsers", - column: "BankInfoId", - principalTable: "BankIdentity", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_ApplicationUser_BankIdentity_BankInfoId", table: "AspNetUsers"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropColumn(name: "BankInfoId", table: "AspNetUsers"); - migrationBuilder.DropTable("BankIdentity"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20161104164949_dropEstimateStatus.Designer.cs b/src/Yavsc.Server/Migrations/2016/20161104164949_dropEstimateStatus.Designer.cs deleted file mode 100644 index 58df4c0f..00000000 --- a/src/Yavsc.Server/Migrations/2016/20161104164949_dropEstimateStatus.Designer.cs +++ /dev/null @@ -1,832 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20161104164949_dropEstimateStatus")] - partial class dropEstimateStatus - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Model.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Model.Chat.Connection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId"); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Model.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("ChatHubConnectionId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("Rate"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("ActorDenomination"); - - b.Property("Description"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ArticleId"); - - b.Property("Count"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientApprouvalDate"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("CommandId"); - - b.Property("CommandType"); - - b.Property("Description"); - - b.Property("LatestValidationDate"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content"); - - b.Property("Modified"); - - b.Property("Photo"); - - b.Property("Posted") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("Rate"); - - b.Property("Title"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("CreationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CircleId"); - - b.Property("MemberId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.BaseProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("Discriminator") - .IsRequired(); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:DiscriminatorProperty", "Discriminator"); - - b.HasAnnotation("Relational:DiscriminatorValue", "BaseProduct"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.PostTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptGeoLocalization"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OfferId"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.HasBaseType("Yavsc.Models.Market.BaseProduct"); - - b.Property("Depth"); - - b.Property("Height"); - - b.Property("Price"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasAnnotation("Relational:DiscriminatorValue", "Product"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Model.Chat.Connection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Model.ClientProviderInfo", b => - { - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("BillingAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Model.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Market.BaseProduct") - .WithMany() - .HasForeignKey("ArticleId"); - - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.Booking.BookQuery") - .WithMany() - .HasForeignKey("CommandId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.HasOne("Yavsc.Models.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.PostTag", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.Market.Service") - .WithMany() - .HasForeignKey("OfferId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20161104164949_dropEstimateStatus.cs b/src/Yavsc.Server/Migrations/2016/20161104164949_dropEstimateStatus.cs deleted file mode 100644 index b7b139d9..00000000 --- a/src/Yavsc.Server/Migrations/2016/20161104164949_dropEstimateStatus.cs +++ /dev/null @@ -1,279 +0,0 @@ - - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -namespace Yavsc.Migrations -{ - public partial class dropEstimateStatus : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropColumn(name: "Status", table: "Estimate"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.AddColumn( - name: "Status", - table: "Estimate", - nullable: true); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20161123235323_estimatesignatures.Designer.cs b/src/Yavsc.Server/Migrations/2016/20161123235323_estimatesignatures.Designer.cs deleted file mode 100644 index d237c3fb..00000000 --- a/src/Yavsc.Server/Migrations/2016/20161123235323_estimatesignatures.Designer.cs +++ /dev/null @@ -1,836 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20161123235323_estimatesignatures")] - partial class estimatesignatures - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Model.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Model.Chat.Connection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId"); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Model.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("ChatHubConnectionId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("Rate"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("ActorDenomination"); - - b.Property("Description"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ArticleId"); - - b.Property("Count"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientSignature"); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType"); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("ProviderSignature"); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content"); - - b.Property("Modified"); - - b.Property("Photo"); - - b.Property("Posted") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("Rate"); - - b.Property("Title"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("CreationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CircleId"); - - b.Property("MemberId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.BaseProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("Discriminator") - .IsRequired(); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:DiscriminatorProperty", "Discriminator"); - - b.HasAnnotation("Relational:DiscriminatorValue", "BaseProduct"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.PostTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptGeoLocalization"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OfferId"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.HasBaseType("Yavsc.Models.Market.BaseProduct"); - - b.Property("Depth"); - - b.Property("Height"); - - b.Property("Price"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasAnnotation("Relational:DiscriminatorValue", "Product"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Model.Chat.Connection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Model.ClientProviderInfo", b => - { - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("BillingAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Model.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Market.BaseProduct") - .WithMany() - .HasForeignKey("ArticleId"); - - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.Booking.BookQuery") - .WithMany() - .HasForeignKey("CommandId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.HasOne("Yavsc.Models.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.PostTag", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.Market.Service") - .WithMany() - .HasForeignKey("OfferId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20161123235323_estimatesignatures.cs b/src/Yavsc.Server/Migrations/2016/20161123235323_estimatesignatures.cs deleted file mode 100644 index 1e22c60b..00000000 --- a/src/Yavsc.Server/Migrations/2016/20161123235323_estimatesignatures.cs +++ /dev/null @@ -1,307 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -namespace Yavsc.Migrations -{ - public partial class estimatesignatures : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropColumn(name: "ClientApprouvalDate", table: "Estimate"); - migrationBuilder.DropColumn(name: "LatestValidationDate", table: "Estimate"); - migrationBuilder.AddColumn( - name: "ClientSignature", - table: "Estimate", - nullable: true); - migrationBuilder.AddColumn( - name: "ClientValidationDate", - table: "Estimate", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - migrationBuilder.AddColumn( - name: "ProviderSignature", - table: "Estimate", - nullable: true); - migrationBuilder.AddColumn( - name: "ProviderValidationDate", - table: "Estimate", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropColumn(name: "ClientSignature", table: "Estimate"); - migrationBuilder.DropColumn(name: "ClientValidationDate", table: "Estimate"); - migrationBuilder.DropColumn(name: "ProviderSignature", table: "Estimate"); - migrationBuilder.DropColumn(name: "ProviderValidationDate", table: "Estimate"); - migrationBuilder.AddColumn( - name: "ClientApprouvalDate", - table: "Estimate", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - migrationBuilder.AddColumn( - name: "LatestValidationDate", - table: "Estimate", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20161130084909_diskQuota.Designer.cs b/src/Yavsc.Server/Migrations/2016/20161130084909_diskQuota.Designer.cs deleted file mode 100644 index 97647985..00000000 --- a/src/Yavsc.Server/Migrations/2016/20161130084909_diskQuota.Designer.cs +++ /dev/null @@ -1,836 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20161130084909_diskQuota")] - partial class diskQuota - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Model.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Model.Chat.Connection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId"); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Model.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("ChatHubConnectionId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("Rate"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("ActorDenomination"); - - b.Property("Description"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("DiskQuota"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ArticleId"); - - b.Property("Count"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType"); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content"); - - b.Property("Modified"); - - b.Property("Photo"); - - b.Property("Posted") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("Rate"); - - b.Property("Title"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("CreationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CircleId"); - - b.Property("MemberId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.BaseProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("Discriminator") - .IsRequired(); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:DiscriminatorProperty", "Discriminator"); - - b.HasAnnotation("Relational:DiscriminatorValue", "BaseProduct"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.PostTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptGeoLocalization"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OfferId"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.HasBaseType("Yavsc.Models.Market.BaseProduct"); - - b.Property("Depth"); - - b.Property("Height"); - - b.Property("Price"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasAnnotation("Relational:DiscriminatorValue", "Product"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Model.Chat.Connection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Model.ClientProviderInfo", b => - { - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("BillingAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Model.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Market.BaseProduct") - .WithMany() - .HasForeignKey("ArticleId"); - - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.Booking.BookQuery") - .WithMany() - .HasForeignKey("CommandId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.HasOne("Yavsc.Models.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.PostTag", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.Market.Service") - .WithMany() - .HasForeignKey("OfferId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20161130084909_diskQuota.cs b/src/Yavsc.Server/Migrations/2016/20161130084909_diskQuota.cs deleted file mode 100644 index d76e0e7a..00000000 --- a/src/Yavsc.Server/Migrations/2016/20161130084909_diskQuota.cs +++ /dev/null @@ -1,295 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -namespace Yavsc.Migrations -{ - public partial class diskQuota : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropColumn(name: "ClientSignature", table: "Estimate"); - migrationBuilder.DropColumn(name: "ProviderSignature", table: "Estimate"); - migrationBuilder.AddColumn( - name: "DiskQuota", - table: "AspNetUsers", - nullable: false, - defaultValue: 0L); - migrationBuilder.AddColumn( - name: "DiskUsage", - table: "AspNetUsers", - nullable: false, - defaultValue: 0L); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropColumn(name: "DiskQuota", table: "AspNetUsers"); - migrationBuilder.DropColumn(name: "DiskUsage", table: "AspNetUsers"); - migrationBuilder.AddColumn( - name: "ClientSignature", - table: "Estimate", - nullable: true); - migrationBuilder.AddColumn( - name: "ProviderSignature", - table: "Estimate", - nullable: true); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20161209121035_bookQueryReason.Designer.cs b/src/Yavsc.Server/Migrations/2016/20161209121035_bookQueryReason.Designer.cs deleted file mode 100644 index 01ab96ed..00000000 --- a/src/Yavsc.Server/Migrations/2016/20161209121035_bookQueryReason.Designer.cs +++ /dev/null @@ -1,838 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20161209121035_bookQueryReason")] - partial class bookQueryReason - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Model.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Model.Chat.Connection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId"); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Model.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("ChatHubConnectionId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("Rate"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("ActorDenomination"); - - b.Property("Description"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("DiskQuota"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ArticleId"); - - b.Property("Count"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType"); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content"); - - b.Property("Modified"); - - b.Property("Photo"); - - b.Property("Posted") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("Rate"); - - b.Property("Title"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("CreationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CircleId"); - - b.Property("MemberId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.BaseProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("Discriminator") - .IsRequired(); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:DiscriminatorProperty", "Discriminator"); - - b.HasAnnotation("Relational:DiscriminatorValue", "BaseProduct"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.PostTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptGeoLocalization"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OfferId"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.HasBaseType("Yavsc.Models.Market.BaseProduct"); - - b.Property("Depth"); - - b.Property("Height"); - - b.Property("Price"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasAnnotation("Relational:DiscriminatorValue", "Product"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Model.Chat.Connection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Model.ClientProviderInfo", b => - { - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("BillingAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Model.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Market.BaseProduct") - .WithMany() - .HasForeignKey("ArticleId"); - - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.Booking.BookQuery") - .WithMany() - .HasForeignKey("CommandId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.HasOne("Yavsc.Models.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.PostTag", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.Market.Service") - .WithMany() - .HasForeignKey("OfferId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20161209121035_bookQueryReason.cs b/src/Yavsc.Server/Migrations/2016/20161209121035_bookQueryReason.cs deleted file mode 100644 index 74d3bcac..00000000 --- a/src/Yavsc.Server/Migrations/2016/20161209121035_bookQueryReason.cs +++ /dev/null @@ -1,278 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -namespace Yavsc.Migrations -{ - public partial class bookQueryReason : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.AddColumn( - name: "Reason", - table: "BookQuery", - nullable: true); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropColumn(name: "Reason", table: "BookQuery"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20161231163016_musicalPreferences.Designer.cs b/src/Yavsc.Server/Migrations/2016/20161231163016_musicalPreferences.Designer.cs deleted file mode 100644 index 0163fbc1..00000000 --- a/src/Yavsc.Server/Migrations/2016/20161231163016_musicalPreferences.Designer.cs +++ /dev/null @@ -1,869 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20161231163016_musicalPreferences")] - partial class musicalPreferences - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Model.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId"); - - b.Property("UserId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("ActorDenomination"); - - b.Property("Description"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("DiskQuota"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ArticleId"); - - b.Property("Count"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType"); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content"); - - b.Property("Modified"); - - b.Property("Photo"); - - b.Property("Posted") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("Rate"); - - b.Property("Title"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("CreationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.MusicalPreference", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.Property("OwnerId"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId"); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CircleId"); - - b.Property("MemberId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.BaseProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("Discriminator") - .IsRequired(); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:DiscriminatorProperty", "Discriminator"); - - b.HasAnnotation("Relational:DiscriminatorValue", "BaseProduct"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.PostTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptGeoLocalization"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OfferId"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.HasBaseType("Yavsc.Models.Market.BaseProduct"); - - b.Property("Depth"); - - b.Property("Height"); - - b.Property("Price"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasAnnotation("Relational:DiscriminatorValue", "Product"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Model.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Market.BaseProduct") - .WithMany() - .HasForeignKey("ArticleId"); - - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.Booking.BookQuery") - .WithMany() - .HasForeignKey("CommandId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.HasOne("Yavsc.Models.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("BillingAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.PostTag", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.Market.Service") - .WithMany() - .HasForeignKey("OfferId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2016/20161231163016_musicalPreferences.cs b/src/Yavsc.Server/Migrations/2016/20161231163016_musicalPreferences.cs deleted file mode 100644 index 332c8153..00000000 --- a/src/Yavsc.Server/Migrations/2016/20161231163016_musicalPreferences.cs +++ /dev/null @@ -1,319 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -namespace Yavsc.Migrations -{ - public partial class musicalPreferences : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropColumn(name: "ChatHubConnectionId", table: "ClientProviderInfo"); - migrationBuilder.DropColumn(name: "Rate", table: "ClientProviderInfo"); - migrationBuilder.CreateTable( - name: "BlackListed", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("Npgsql:Serial", true), - OwnerId = table.Column(nullable: true), - UserId = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_BlackListed", x => x.Id); - table.ForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - column: x => x.OwnerId, - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - }); - migrationBuilder.CreateTable( - name: "MusicalPreference", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("Npgsql:Serial", true), - Name = table.Column(nullable: false), - OwnerId = table.Column(nullable: false), - Rate = table.Column(nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_MusicalPreference", x => x.Id); - }); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropTable("BlackListed"); - migrationBuilder.DropTable("MusicalPreference"); - migrationBuilder.AddColumn( - name: "ChatHubConnectionId", - table: "ClientProviderInfo", - nullable: true); - migrationBuilder.AddColumn( - name: "Rate", - table: "ClientProviderInfo", - nullable: false, - defaultValue: 0); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170102140332_musicalTendencies.Designer.cs b/src/Yavsc.Server/Migrations/2017/20170102140332_musicalTendencies.Designer.cs deleted file mode 100644 index 2878f1b4..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170102140332_musicalTendencies.Designer.cs +++ /dev/null @@ -1,881 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20170102140332_musicalTendencies")] - partial class musicalTendencies - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Model.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId"); - - b.Property("UserId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("ActorDenomination"); - - b.Property("Description"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("DiskQuota"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ArticleId"); - - b.Property("Count"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType"); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content"); - - b.Property("Modified"); - - b.Property("Photo"); - - b.Property("Posted") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("Rate"); - - b.Property("Title"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("CreationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.MusicalPreference", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.Property("OwnerId"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId"); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CircleId"); - - b.Property("MemberId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.BaseProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("Discriminator") - .IsRequired(); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:DiscriminatorProperty", "Discriminator"); - - b.HasAnnotation("Relational:DiscriminatorValue", "BaseProduct"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.PostTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptGeoLocalization"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OfferId"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.HasBaseType("Yavsc.Models.Market.BaseProduct"); - - b.Property("Depth"); - - b.Property("Height"); - - b.Property("Price"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasAnnotation("Relational:DiscriminatorValue", "Product"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Model.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Market.BaseProduct") - .WithMany() - .HasForeignKey("ArticleId"); - - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.Booking.BookQuery") - .WithMany() - .HasForeignKey("CommandId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.HasOne("Yavsc.Models.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("BillingAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.PostTag", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.Market.Service") - .WithMany() - .HasForeignKey("OfferId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170102140332_musicalTendencies.cs b/src/Yavsc.Server/Migrations/2017/20170102140332_musicalTendencies.cs deleted file mode 100644 index 21dc25c4..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170102140332_musicalTendencies.cs +++ /dev/null @@ -1,287 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class musicalTendencies : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.CreateTable( - name: "MusicalTendency", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("Npgsql:Serial", true), - Name = table.Column(nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_MusicalTendency", x => x.Id); - }); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropTable("MusicalTendency"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170102152745_locationTypes.Designer.cs b/src/Yavsc.Server/Migrations/2017/20170102152745_locationTypes.Designer.cs deleted file mode 100644 index 6c0eccd0..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170102152745_locationTypes.Designer.cs +++ /dev/null @@ -1,897 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20170102152745_locationTypes")] - partial class locationTypes - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Model.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId"); - - b.Property("UserId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("ActorDenomination"); - - b.Property("Description"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("DiskQuota"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ArticleId"); - - b.Property("Count"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType"); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content"); - - b.Property("Modified"); - - b.Property("Photo"); - - b.Property("Posted") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("Rate"); - - b.Property("Title"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("CreationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationTypeId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.MusicalPreference", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.Property("OwnerId"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId"); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CircleId"); - - b.Property("MemberId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.BaseProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("Discriminator") - .IsRequired(); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:DiscriminatorProperty", "Discriminator"); - - b.HasAnnotation("Relational:DiscriminatorValue", "BaseProduct"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.PostTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.LocationType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptGeoLocalization"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OfferId"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.HasBaseType("Yavsc.Models.Market.BaseProduct"); - - b.Property("Depth"); - - b.Property("Height"); - - b.Property("Price"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasAnnotation("Relational:DiscriminatorValue", "Product"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Model.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Market.BaseProduct") - .WithMany() - .HasForeignKey("ArticleId"); - - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.Booking.BookQuery") - .WithMany() - .HasForeignKey("CommandId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Relationship.LocationType") - .WithMany() - .HasForeignKey("LocationTypeId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.HasOne("Yavsc.Models.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("BillingAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.PostTag", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.Market.Service") - .WithMany() - .HasForeignKey("OfferId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170102152745_locationTypes.cs b/src/Yavsc.Server/Migrations/2017/20170102152745_locationTypes.cs deleted file mode 100644 index ec9b234b..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170102152745_locationTypes.cs +++ /dev/null @@ -1,300 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class locationTypes : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.CreateTable( - name: "LocationType", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("Npgsql:Serial", true), - Name = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_LocationType", x => x.Id); - }); - migrationBuilder.AddColumn( - name: "LocationTypeId", - table: "BookQuery", - nullable: true); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_LocationType_LocationTypeId", - table: "BookQuery", - column: "LocationTypeId", - principalTable: "LocationType", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_LocationType_LocationTypeId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropColumn(name: "LocationTypeId", table: "BookQuery"); - migrationBuilder.DropTable("LocationType"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170106092028_WFActivityParentAndProfiles.Designer.cs b/src/Yavsc.Server/Migrations/2017/20170106092028_WFActivityParentAndProfiles.Designer.cs deleted file mode 100644 index f351a455..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170106092028_WFActivityParentAndProfiles.Designer.cs +++ /dev/null @@ -1,907 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20170106092028_WFActivityParentAndProfiles")] - partial class WFActivityParentAndProfiles - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Model.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId"); - - b.Property("UserId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("ActorDenomination"); - - b.Property("Description"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("DiskQuota"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ArticleId"); - - b.Property("Count"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType"); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content"); - - b.Property("Modified"); - - b.Property("Photo"); - - b.Property("Posted") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("Rate"); - - b.Property("Title"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("CreationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationTypeId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.MusicalPreference", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.Property("OwnerId"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId"); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CircleId"); - - b.Property("MemberId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.BaseProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("Discriminator") - .IsRequired(); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:DiscriminatorProperty", "Discriminator"); - - b.HasAnnotation("Relational:DiscriminatorValue", "BaseProduct"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.PostTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.LocationType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptGeoLocalization"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OfferId"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.HasBaseType("Yavsc.Models.Market.BaseProduct"); - - b.Property("Depth"); - - b.Property("Height"); - - b.Property("Price"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasAnnotation("Relational:DiscriminatorValue", "Product"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Activity", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Model.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Market.BaseProduct") - .WithMany() - .HasForeignKey("ArticleId"); - - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.Booking.BookQuery") - .WithMany() - .HasForeignKey("CommandId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Relationship.LocationType") - .WithMany() - .HasForeignKey("LocationTypeId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.HasOne("Yavsc.Models.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("BillingAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.PostTag", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.Market.Service") - .WithMany() - .HasForeignKey("OfferId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170106092028_WFActivityParentAndProfiles.cs b/src/Yavsc.Server/Migrations/2017/20170106092028_WFActivityParentAndProfiles.cs deleted file mode 100644 index 0e43dcd4..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170106092028_WFActivityParentAndProfiles.cs +++ /dev/null @@ -1,288 +0,0 @@ - - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class WFActivityParentAndProfiles : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.AddColumn( - name: "ParentCode", - table: "Activity", - nullable: true); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Activity_Activity_ParentCode", - table: "Activity", - column: "ParentCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_Activity_Activity_ParentCode", table: "Activity"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropColumn(name: "ParentCode", table: "Activity"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170106113614_ownerProfile.Designer.cs b/src/Yavsc.Server/Migrations/2017/20170106113614_ownerProfile.Designer.cs deleted file mode 100644 index 7c85bd90..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170106113614_ownerProfile.Designer.cs +++ /dev/null @@ -1,914 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20170106113614_ownerProfile")] - partial class ownerProfile - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Model.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId"); - - b.Property("UserId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("ActorDenomination"); - - b.Property("Description"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("DiskQuota"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ArticleId"); - - b.Property("Count"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType"); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content"); - - b.Property("Modified"); - - b.Property("Photo"); - - b.Property("Posted") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("Rate"); - - b.Property("Title"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("CreationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationTypeId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.MusicalPreference", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.Property("OwnerProfileId"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId"); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CircleId"); - - b.Property("MemberId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.BaseProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("Discriminator") - .IsRequired(); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:DiscriminatorProperty", "Discriminator"); - - b.HasAnnotation("Relational:DiscriminatorValue", "BaseProduct"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.PostTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.LocationType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptGeoLocalization"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OfferId"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.HasBaseType("Yavsc.Models.Market.BaseProduct"); - - b.Property("Depth"); - - b.Property("Height"); - - b.Property("Price"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasAnnotation("Relational:DiscriminatorValue", "Product"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Activity", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Model.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Market.BaseProduct") - .WithMany() - .HasForeignKey("ArticleId"); - - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.Booking.BookQuery") - .WithMany() - .HasForeignKey("CommandId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Relationship.LocationType") - .WithMany() - .HasForeignKey("LocationTypeId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.HasOne("Yavsc.Models.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("BillingAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.PostTag", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.Market.Service") - .WithMany() - .HasForeignKey("OfferId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170106113614_ownerProfile.cs b/src/Yavsc.Server/Migrations/2017/20170106113614_ownerProfile.cs deleted file mode 100644 index a6f1804b..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170106113614_ownerProfile.cs +++ /dev/null @@ -1,294 +0,0 @@ - - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class ownerProfile : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropColumn(name: "OwnerId", table: "MusicalPreference"); - migrationBuilder.AddColumn( - name: "OwnerProfileId", - table: "MusicalPreference", - nullable: true); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_MusicalPreference_PerformerProfile_OwnerProfileId", - table: "MusicalPreference", - column: "OwnerProfileId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_MusicalPreference_PerformerProfile_OwnerProfileId", table: "MusicalPreference"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropColumn(name: "OwnerProfileId", table: "MusicalPreference"); - migrationBuilder.AddColumn( - name: "OwnerId", - table: "MusicalPreference", - nullable: false, - defaultValue: 0L); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170106122307_Instruments.Designer.cs b/src/Yavsc.Server/Migrations/2017/20170106122307_Instruments.Designer.cs deleted file mode 100644 index d5767017..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170106122307_Instruments.Designer.cs +++ /dev/null @@ -1,926 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20170106122307_Instruments")] - partial class Instruments - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Model.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId"); - - b.Property("UserId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("ActorDenomination"); - - b.Property("Description"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("DiskQuota"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ArticleId"); - - b.Property("Count"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType"); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content"); - - b.Property("Modified"); - - b.Property("Photo"); - - b.Property("Posted") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("Rate"); - - b.Property("Title"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("CreationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationTypeId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.MusicalPreference", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.Property("OwnerProfileId"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId"); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CircleId"); - - b.Property("MemberId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.BaseProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("Discriminator") - .IsRequired(); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:DiscriminatorProperty", "Discriminator"); - - b.HasAnnotation("Relational:DiscriminatorValue", "BaseProduct"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.PostTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.LocationType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptGeoLocalization"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OfferId"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.HasBaseType("Yavsc.Models.Market.BaseProduct"); - - b.Property("Depth"); - - b.Property("Height"); - - b.Property("Price"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasAnnotation("Relational:DiscriminatorValue", "Product"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Activity", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Model.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Market.BaseProduct") - .WithMany() - .HasForeignKey("ArticleId"); - - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.Booking.BookQuery") - .WithMany() - .HasForeignKey("CommandId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Relationship.LocationType") - .WithMany() - .HasForeignKey("LocationTypeId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.HasOne("Yavsc.Models.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("BillingAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.PostTag", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.Market.Service") - .WithMany() - .HasForeignKey("OfferId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170106122307_Instruments.cs b/src/Yavsc.Server/Migrations/2017/20170106122307_Instruments.cs deleted file mode 100644 index 62595bbd..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170106122307_Instruments.cs +++ /dev/null @@ -1,287 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class Instruments : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.CreateTable( - name: "Instrument", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("Npgsql:Serial", true), - Name = table.Column(nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Instrument", x => x.Id); - }); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropTable("Instrument"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170106124548_instrumentation.Designer.cs b/src/Yavsc.Server/Migrations/2017/20170106124548_instrumentation.Designer.cs deleted file mode 100644 index f80659d3..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170106124548_instrumentation.Designer.cs +++ /dev/null @@ -1,926 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20170106124548_instrumentation")] - partial class instrumentation - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Model.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId"); - - b.Property("UserId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("ActorDenomination"); - - b.Property("Description"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("DiskQuota"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ArticleId"); - - b.Property("Count"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType"); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content"); - - b.Property("Modified"); - - b.Property("Photo"); - - b.Property("Posted") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("Rate"); - - b.Property("Title"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("CreationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationTypeId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.MusicalPreference", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.Property("OwnerProfileId"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId"); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CircleId"); - - b.Property("MemberId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.BaseProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("Discriminator") - .IsRequired(); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:DiscriminatorProperty", "Discriminator"); - - b.HasAnnotation("Relational:DiscriminatorValue", "BaseProduct"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.PostTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.LocationType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptGeoLocalization"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OfferId"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.HasBaseType("Yavsc.Models.Market.BaseProduct"); - - b.Property("Depth"); - - b.Property("Height"); - - b.Property("Price"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasAnnotation("Relational:DiscriminatorValue", "Product"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Activity", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Model.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Market.BaseProduct") - .WithMany() - .HasForeignKey("ArticleId"); - - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.Booking.BookQuery") - .WithMany() - .HasForeignKey("CommandId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Relationship.LocationType") - .WithMany() - .HasForeignKey("LocationTypeId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.HasOne("Yavsc.Models.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("BillingAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.PostTag", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.Market.Service") - .WithMany() - .HasForeignKey("OfferId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170106124548_instrumentation.cs b/src/Yavsc.Server/Migrations/2017/20170106124548_instrumentation.cs deleted file mode 100644 index b151dd29..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170106124548_instrumentation.cs +++ /dev/null @@ -1,274 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class instrumentation : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170106144035_activityRate.Designer.cs b/src/Yavsc.Server/Migrations/2017/20170106144035_activityRate.Designer.cs deleted file mode 100644 index 0dbabaee..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170106144035_activityRate.Designer.cs +++ /dev/null @@ -1,944 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20170106144035_activityRate")] - partial class activityRate - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Model.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId"); - - b.Property("UserId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("ActorDenomination"); - - b.Property("Description"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.Property("Rate"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("DiskQuota"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ArticleId"); - - b.Property("Count"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType"); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content"); - - b.Property("Modified"); - - b.Property("Photo"); - - b.Property("Posted") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("Rate"); - - b.Property("Title"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("CreationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationTypeId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.MusicalPreference", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.Property("OwnerProfileId"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId"); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CircleId"); - - b.Property("MemberId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.BaseProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("Discriminator") - .IsRequired(); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:DiscriminatorProperty", "Discriminator"); - - b.HasAnnotation("Relational:DiscriminatorValue", "BaseProduct"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.PostTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.LocationType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptGeoLocalization"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OfferId"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DoesCode"); - - b.Property("UserId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.HasBaseType("Yavsc.Models.Market.BaseProduct"); - - b.Property("Depth"); - - b.Property("Height"); - - b.Property("Price"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasAnnotation("Relational:DiscriminatorValue", "Product"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Activity", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Model.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Market.BaseProduct") - .WithMany() - .HasForeignKey("ArticleId"); - - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.Booking.BookQuery") - .WithMany() - .HasForeignKey("CommandId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Relationship.LocationType") - .WithMany() - .HasForeignKey("LocationTypeId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.HasOne("Yavsc.Models.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("BillingAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.PostTag", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Market.Service") - .WithMany() - .HasForeignKey("OfferId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170106144035_activityRate.cs b/src/Yavsc.Server/Migrations/2017/20170106144035_activityRate.cs deleted file mode 100644 index f078e139..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170106144035_activityRate.cs +++ /dev/null @@ -1,304 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class activityRate : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Activity_ActivityCode", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropColumn(name: "ActivityCode", table: "PerformerProfile"); - migrationBuilder.CreateTable( - name: "UserActivity", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("Npgsql:Serial", true), - DoesCode = table.Column(nullable: true), - UserId = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_UserActivity", x => x.Id); - table.ForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - column: x => x.DoesCode, - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - table.ForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - column: x => x.UserId, - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - }); - migrationBuilder.AddColumn( - name: "Rate", - table: "Activity", - nullable: false, - defaultValue: 0); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropColumn(name: "Rate", table: "Activity"); - migrationBuilder.DropTable("UserActivity"); - migrationBuilder.AddColumn( - name: "ActivityCode", - table: "PerformerProfile", - nullable: false, - defaultValue: ""); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Activity_ActivityCode", - table: "PerformerProfile", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170106235954_weight.Designer.cs b/src/Yavsc.Server/Migrations/2017/20170106235954_weight.Designer.cs deleted file mode 100644 index d3bda592..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170106235954_weight.Designer.cs +++ /dev/null @@ -1,946 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20170106235954_weight")] - partial class weight - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Model.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId"); - - b.Property("UserId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("ActorDenomination"); - - b.Property("Description"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.Property("Rate"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("DiskQuota"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ArticleId"); - - b.Property("Count"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType"); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content"); - - b.Property("Modified"); - - b.Property("Photo"); - - b.Property("Posted") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("Rate"); - - b.Property("Title"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("CreationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationTypeId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.MusicalPreference", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.Property("OwnerProfileId"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId"); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CircleId"); - - b.Property("MemberId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.BaseProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("Discriminator") - .IsRequired(); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:DiscriminatorProperty", "Discriminator"); - - b.HasAnnotation("Relational:DiscriminatorValue", "BaseProduct"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.PostTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.LocationType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptGeoLocalization"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OfferId"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.HasBaseType("Yavsc.Models.Market.BaseProduct"); - - b.Property("Depth"); - - b.Property("Height"); - - b.Property("Price"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasAnnotation("Relational:DiscriminatorValue", "Product"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Activity", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Model.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Market.BaseProduct") - .WithMany() - .HasForeignKey("ArticleId"); - - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.Booking.BookQuery") - .WithMany() - .HasForeignKey("CommandId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Relationship.LocationType") - .WithMany() - .HasForeignKey("LocationTypeId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.HasOne("Yavsc.Models.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("BillingAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.PostTag", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Market.Service") - .WithMany() - .HasForeignKey("OfferId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170106235954_weight.cs b/src/Yavsc.Server/Migrations/2017/20170106235954_weight.cs deleted file mode 100644 index 9f509d0b..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170106235954_weight.cs +++ /dev/null @@ -1,264 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class weight : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.AddColumn( - name: "Weight", - table: "UserActivity", - nullable: false, - defaultValue: 0); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropColumn(name: "Weight", table: "UserActivity"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170107004233_userActivitiesValidity.Designer.cs b/src/Yavsc.Server/Migrations/2017/20170107004233_userActivitiesValidity.Designer.cs deleted file mode 100644 index e31a730e..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170107004233_userActivitiesValidity.Designer.cs +++ /dev/null @@ -1,948 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20170107004233_userActivitiesValidity")] - partial class userActivitiesValidity - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Model.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId"); - - b.Property("UserId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("ActorDenomination"); - - b.Property("Description"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.Property("Rate"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("DiskQuota"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ArticleId"); - - b.Property("Count"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType"); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content"); - - b.Property("Modified"); - - b.Property("Photo"); - - b.Property("Posted") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("Rate"); - - b.Property("Title"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("CreationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationTypeId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.MusicalPreference", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.Property("OwnerProfileId"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId"); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CircleId"); - - b.Property("MemberId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.BaseProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("Discriminator") - .IsRequired(); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:DiscriminatorProperty", "Discriminator"); - - b.HasAnnotation("Relational:DiscriminatorValue", "BaseProduct"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.PostTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.LocationType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptGeoLocalization"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OfferId"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DoesCode") - .IsRequired(); - - b.Property("UserId") - .IsRequired(); - - b.Property("Weight"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.HasBaseType("Yavsc.Models.Market.BaseProduct"); - - b.Property("Depth"); - - b.Property("Height"); - - b.Property("Price"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasAnnotation("Relational:DiscriminatorValue", "Product"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Activity", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Model.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Market.BaseProduct") - .WithMany() - .HasForeignKey("ArticleId"); - - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.Booking.BookQuery") - .WithMany() - .HasForeignKey("CommandId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Relationship.LocationType") - .WithMany() - .HasForeignKey("LocationTypeId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.HasOne("Yavsc.Models.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("BillingAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.PostTag", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Market.Service") - .WithMany() - .HasForeignKey("OfferId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170107004233_userActivitiesValidity.cs b/src/Yavsc.Server/Migrations/2017/20170107004233_userActivitiesValidity.cs deleted file mode 100644 index 307cb955..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170107004233_userActivitiesValidity.cs +++ /dev/null @@ -1,306 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class userActivitiesValidity : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.AlterColumn( - name: "UserId", - table: "UserActivity", - nullable: false); - migrationBuilder.AlterColumn( - name: "DoesCode", - table: "UserActivity", - nullable: false); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.AlterColumn( - name: "UserId", - table: "UserActivity", - nullable: true); - migrationBuilder.AlterColumn( - name: "DoesCode", - table: "UserActivity", - nullable: true); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170113022807_SettingsClassName.Designer.cs b/src/Yavsc.Server/Migrations/2017/20170113022807_SettingsClassName.Designer.cs deleted file mode 100644 index 87faddee..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170113022807_SettingsClassName.Designer.cs +++ /dev/null @@ -1,1009 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20170113022807_SettingsClassName")] - partial class SettingsClassName - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Model.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId"); - - b.Property("UserId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("ActorDenomination"); - - b.Property("Description"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("SettingsClassName"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("DiskQuota"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ArticleId"); - - b.Property("Count"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType"); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content"); - - b.Property("Modified"); - - b.Property("Photo"); - - b.Property("Posted") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("Rate"); - - b.Property("Title"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("CreationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationTypeId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.MusicalPreference", b => - { - b.Property("OwnerProfileId"); - - b.Property("DjSettingsUserId"); - - b.Property("GeneralSettingsUserId"); - - b.Property("Rate"); - - b.Property("TendencyId"); - - b.HasKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.MusicianSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Profiles.DjSettings", b => - { - b.Property("UserId"); - - b.Property("SoundCloudId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Profiles.FormationSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Profiles.GeneralSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId"); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CircleId"); - - b.Property("MemberId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.BaseProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("Discriminator") - .IsRequired(); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:DiscriminatorProperty", "Discriminator"); - - b.HasAnnotation("Relational:DiscriminatorValue", "BaseProduct"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.PostTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.LocationType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FormationSettingsUserId"); - - b.Property("PerformerId"); - - b.Property("WorkingForId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptGeoLocalization"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("DoesCode", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.HasBaseType("Yavsc.Models.Market.BaseProduct"); - - b.Property("Depth"); - - b.Property("Height"); - - b.Property("Price"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasAnnotation("Relational:DiscriminatorValue", "Product"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Activity", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Model.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Market.BaseProduct") - .WithMany() - .HasForeignKey("ArticleId"); - - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Booking.BookQuery") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Relationship.LocationType") - .WithMany() - .HasForeignKey("LocationTypeId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Booking.Profiles.DjSettings") - .WithMany() - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Booking.Profiles.GeneralSettings") - .WithMany() - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.HasOne("Yavsc.Models.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("BillingAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.PostTag", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Booking.Profiles.FormationSettings") - .WithMany() - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("WorkingForId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170113022807_SettingsClassName.cs b/src/Yavsc.Server/Migrations/2017/20170113022807_SettingsClassName.cs deleted file mode 100644 index 154695bd..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170113022807_SettingsClassName.cs +++ /dev/null @@ -1,489 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -namespace Yavsc.Migrations -{ - public partial class SettingsClassName : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_MusicalPreference_PerformerProfile_OwnerProfileId", table: "MusicalPreference"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Service_OfferId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropPrimaryKey(name: "PK_UserActivity", table: "UserActivity"); - migrationBuilder.DropPrimaryKey(name: "PK_MusicalPreference", table: "MusicalPreference"); - migrationBuilder.DropColumn(name: "Id", table: "UserActivity"); - migrationBuilder.DropColumn(name: "OfferId", table: "PerformerProfile"); - migrationBuilder.DropColumn(name: "Id", table: "MusicalPreference"); - migrationBuilder.DropColumn(name: "Name", table: "MusicalPreference"); - migrationBuilder.CreateTable( - name: "MusicianSettings", - columns: table => new - { - UserId = table.Column(nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_MusicianSettings", x => x.UserId); - }); - migrationBuilder.CreateTable( - name: "DjSettings", - columns: table => new - { - UserId = table.Column(nullable: false), - SoundCloudId = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_DjSettings", x => x.UserId); - }); - migrationBuilder.CreateTable( - name: "FormationSettings", - columns: table => new - { - UserId = table.Column(nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_FormationSettings", x => x.UserId); - }); - migrationBuilder.CreateTable( - name: "GeneralSettings", - columns: table => new - { - UserId = table.Column(nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_GeneralSettings", x => x.UserId); - }); - migrationBuilder.CreateTable( - name: "CoWorking", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("Npgsql:Serial", true), - FormationSettingsUserId = table.Column(nullable: true), - PerformerId = table.Column(nullable: true), - WorkingForId = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_CoWorking", x => x.Id); - table.ForeignKey( - name: "FK_CoWorking_FormationSettings_FormationSettingsUserId", - column: x => x.FormationSettingsUserId, - principalTable: "FormationSettings", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - table.ForeignKey( - name: "FK_CoWorking_PerformerProfile_PerformerId", - column: x => x.PerformerId, - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - table.ForeignKey( - name: "FK_CoWorking_ApplicationUser_WorkingForId", - column: x => x.WorkingForId, - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - }); - migrationBuilder.AddPrimaryKey( - name: "PK_UserActivity", - table: "UserActivity", - columns: new[] { "DoesCode", "UserId" }); - migrationBuilder.AlterColumn( - name: "OwnerProfileId", - table: "MusicalPreference", - nullable: false); - migrationBuilder.AddColumn( - name: "DjSettingsUserId", - table: "MusicalPreference", - nullable: true); - migrationBuilder.AddColumn( - name: "GeneralSettingsUserId", - table: "MusicalPreference", - nullable: true); - migrationBuilder.AddColumn( - name: "TendencyId", - table: "MusicalPreference", - nullable: false, - defaultValue: 0L); - migrationBuilder.AddPrimaryKey( - name: "PK_MusicalPreference", - table: "MusicalPreference", - column: "OwnerProfileId"); - migrationBuilder.AddColumn( - name: "SettingsClassName", - table: "Activity", - nullable: true); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_MusicalPreference_DjSettings_DjSettingsUserId", - table: "MusicalPreference", - column: "DjSettingsUserId", - principalTable: "DjSettings", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_MusicalPreference_GeneralSettings_GeneralSettingsUserId", - table: "MusicalPreference", - column: "GeneralSettingsUserId", - principalTable: "GeneralSettings", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_MusicalPreference_DjSettings_DjSettingsUserId", table: "MusicalPreference"); - migrationBuilder.DropForeignKey(name: "FK_MusicalPreference_GeneralSettings_GeneralSettingsUserId", table: "MusicalPreference"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropPrimaryKey(name: "PK_UserActivity", table: "UserActivity"); - migrationBuilder.DropPrimaryKey(name: "PK_MusicalPreference", table: "MusicalPreference"); - migrationBuilder.DropColumn(name: "DjSettingsUserId", table: "MusicalPreference"); - migrationBuilder.DropColumn(name: "GeneralSettingsUserId", table: "MusicalPreference"); - migrationBuilder.DropColumn(name: "TendencyId", table: "MusicalPreference"); - migrationBuilder.DropColumn(name: "SettingsClassName", table: "Activity"); - migrationBuilder.DropTable("MusicianSettings"); - migrationBuilder.DropTable("DjSettings"); - migrationBuilder.DropTable("GeneralSettings"); - migrationBuilder.DropTable("CoWorking"); - migrationBuilder.DropTable("FormationSettings"); - migrationBuilder.AddColumn( - name: "Id", - table: "UserActivity", - nullable: false, - defaultValue: 0L) - .Annotation("Npgsql:Serial", true); - migrationBuilder.AddPrimaryKey( - name: "PK_UserActivity", - table: "UserActivity", - column: "Id"); - migrationBuilder.AddColumn( - name: "OfferId", - table: "PerformerProfile", - nullable: true); - migrationBuilder.AlterColumn( - name: "OwnerProfileId", - table: "MusicalPreference", - nullable: true); - migrationBuilder.AddColumn( - name: "Id", - table: "MusicalPreference", - nullable: false, - defaultValue: 0L) - .Annotation("Npgsql:Serial", true); - migrationBuilder.AddColumn( - name: "Name", - table: "MusicalPreference", - nullable: false, - defaultValue: ""); - migrationBuilder.AddPrimaryKey( - name: "PK_MusicalPreference", - table: "MusicalPreference", - column: "Id"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_MusicalPreference_PerformerProfile_OwnerProfileId", - table: "MusicalPreference", - column: "OwnerProfileId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Service_OfferId", - table: "PerformerProfile", - column: "OfferId", - principalTable: "Service", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170113150714_instrumentationReloaded.Designer.cs b/src/Yavsc.Server/Migrations/2017/20170113150714_instrumentationReloaded.Designer.cs deleted file mode 100644 index 6ee3a311..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170113150714_instrumentationReloaded.Designer.cs +++ /dev/null @@ -1,1022 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20170113150714_instrumentationReloaded")] - partial class instrumentationReloaded - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Model.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId"); - - b.Property("UserId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("ActorDenomination"); - - b.Property("Description"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("SettingsClassName"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("DiskQuota"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ArticleId"); - - b.Property("Count"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType"); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content"); - - b.Property("Modified"); - - b.Property("Photo"); - - b.Property("Posted") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("Rate"); - - b.Property("Title"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("CreationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationTypeId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.MusicalPreference", b => - { - b.Property("OwnerProfileId"); - - b.Property("DjSettingsUserId"); - - b.Property("GeneralSettingsUserId"); - - b.Property("Rate"); - - b.Property("TendencyId"); - - b.HasKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Profiles.DjSettings", b => - { - b.Property("UserId"); - - b.Property("SoundCloudId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Profiles.FormationSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Profiles.GeneralSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Profiles.Instrumentation", b => - { - b.Property("InstrumentId"); - - b.Property("UserId"); - - b.HasKey("InstrumentId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId"); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CircleId"); - - b.Property("MemberId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.BaseProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("Discriminator") - .IsRequired(); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:DiscriminatorProperty", "Discriminator"); - - b.HasAnnotation("Relational:DiscriminatorValue", "BaseProduct"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.PostTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.LocationType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FormationSettingsUserId"); - - b.Property("PerformerId"); - - b.Property("WorkingForId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptGeoLocalization"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("DoesCode", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.HasBaseType("Yavsc.Models.Market.BaseProduct"); - - b.Property("Depth"); - - b.Property("Height"); - - b.Property("Price"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasAnnotation("Relational:DiscriminatorValue", "Product"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Activity", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Model.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Market.BaseProduct") - .WithMany() - .HasForeignKey("ArticleId"); - - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Booking.BookQuery") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Relationship.LocationType") - .WithMany() - .HasForeignKey("LocationTypeId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Booking.Profiles.DjSettings") - .WithMany() - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Booking.Profiles.GeneralSettings") - .WithMany() - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Booking.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.HasOne("Yavsc.Models.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("BillingAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.PostTag", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Booking.Profiles.FormationSettings") - .WithMany() - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("WorkingForId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170113150714_instrumentationReloaded.cs b/src/Yavsc.Server/Migrations/2017/20170113150714_instrumentationReloaded.cs deleted file mode 100644 index 5b41324d..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170113150714_instrumentationReloaded.cs +++ /dev/null @@ -1,357 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class instrumentationReloaded : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropTable("MusicianSettings"); - migrationBuilder.CreateTable( - name: "Instrumentation", - columns: table => new - { - InstrumentId = table.Column(nullable: false), - UserId = table.Column(nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Instrumentation", x => new { x.InstrumentId, x.UserId }); - table.ForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - column: x => x.InstrumentId, - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - table.ForeignKey( - name: "FK_Instrumentation_PerformerProfile_UserId", - column: x => x.UserId, - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - }); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropTable("Instrumentation"); - migrationBuilder.CreateTable( - name: "MusicianSettings", - columns: table => new - { - UserId = table.Column(nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_MusicianSettings", x => x.UserId); - }); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170116002541_bookQueryActivityCode.Designer.cs b/src/Yavsc.Server/Migrations/2017/20170116002541_bookQueryActivityCode.Designer.cs deleted file mode 100644 index 03eebcf4..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170116002541_bookQueryActivityCode.Designer.cs +++ /dev/null @@ -1,1029 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20170116002541_bookQueryActivityCode")] - partial class bookQueryActivityCode - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId"); - - b.Property("UserId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("ActorDenomination"); - - b.Property("Description"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("SettingsClassName"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("DiskQuota"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ArticleId"); - - b.Property("Count"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType"); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content"); - - b.Property("Modified"); - - b.Property("Photo"); - - b.Property("Posted") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("Rate"); - - b.Property("Title"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("CreationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationTypeId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.MusicalPreference", b => - { - b.Property("OwnerProfileId"); - - b.Property("DjSettingsUserId"); - - b.Property("GeneralSettingsUserId"); - - b.Property("Rate"); - - b.Property("TendencyId"); - - b.HasKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Profiles.DjSettings", b => - { - b.Property("UserId"); - - b.Property("SoundCloudId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Profiles.FormationSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Profiles.GeneralSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Profiles.Instrumentation", b => - { - b.Property("InstrumentId"); - - b.Property("UserId"); - - b.HasKey("InstrumentId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId"); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CircleId"); - - b.Property("MemberId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.BaseProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("Discriminator") - .IsRequired(); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:DiscriminatorProperty", "Discriminator"); - - b.HasAnnotation("Relational:DiscriminatorValue", "BaseProduct"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.PostTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.LocationType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FormationSettingsUserId"); - - b.Property("PerformerId"); - - b.Property("WorkingForId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptGeoLocalization"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("DoesCode", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.HasBaseType("Yavsc.Models.Market.BaseProduct"); - - b.Property("Depth"); - - b.Property("Height"); - - b.Property("Price"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasAnnotation("Relational:DiscriminatorValue", "Product"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Activity", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Market.BaseProduct") - .WithMany() - .HasForeignKey("ArticleId"); - - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Booking.BookQuery") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Relationship.LocationType") - .WithMany() - .HasForeignKey("LocationTypeId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Booking.Profiles.DjSettings") - .WithMany() - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Booking.Profiles.GeneralSettings") - .WithMany() - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Booking.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.HasOne("Yavsc.Models.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("BillingAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.PostTag", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Booking.Profiles.FormationSettings") - .WithMany() - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("WorkingForId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170116002541_bookQueryActivityCode.cs b/src/Yavsc.Server/Migrations/2017/20170116002541_bookQueryActivityCode.cs deleted file mode 100644 index 24137989..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170116002541_bookQueryActivityCode.cs +++ /dev/null @@ -1,354 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - // Note: deletes all existing book query - public partial class bookQueryActivityCode : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.Sql("delete from \"BookQuery\""); - migrationBuilder.AddColumn( - name: "ActivityCode", - table: "BookQuery", - nullable: false, - defaultValue: ""); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_Activity_ActivityCode", - table: "BookQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_Activity_ActivityCode", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropColumn(name: "ActivityCode", table: "BookQuery"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170116154735_refactPrproAllowGeo.Designer.cs b/src/Yavsc.Server/Migrations/2017/20170116154735_refactPrproAllowGeo.Designer.cs deleted file mode 100644 index 5d1c46d0..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170116154735_refactPrproAllowGeo.Designer.cs +++ /dev/null @@ -1,1029 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20170116154735_refactPrproAllowGeo")] - partial class refactPrproAllowGeo - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId"); - - b.Property("UserId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("ActorDenomination"); - - b.Property("Description"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("SettingsClassName"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("DiskQuota"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ArticleId"); - - b.Property("Count"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType"); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content"); - - b.Property("Modified"); - - b.Property("Photo"); - - b.Property("Posted") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("Rate"); - - b.Property("Title"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("CreationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationTypeId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.MusicalPreference", b => - { - b.Property("OwnerProfileId"); - - b.Property("DjSettingsUserId"); - - b.Property("GeneralSettingsUserId"); - - b.Property("Rate"); - - b.Property("TendencyId"); - - b.HasKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Profiles.DjSettings", b => - { - b.Property("UserId"); - - b.Property("SoundCloudId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Profiles.FormationSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Profiles.GeneralSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Profiles.Instrumentation", b => - { - b.Property("InstrumentId"); - - b.Property("UserId"); - - b.HasKey("InstrumentId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId"); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CircleId"); - - b.Property("MemberId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.BaseProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("Discriminator") - .IsRequired(); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:DiscriminatorProperty", "Discriminator"); - - b.HasAnnotation("Relational:DiscriminatorValue", "BaseProduct"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.PostTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.LocationType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FormationSettingsUserId"); - - b.Property("PerformerId"); - - b.Property("WorkingForId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients"); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("DoesCode", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.HasBaseType("Yavsc.Models.Market.BaseProduct"); - - b.Property("Depth"); - - b.Property("Height"); - - b.Property("Price"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasAnnotation("Relational:DiscriminatorValue", "Product"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Activity", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Market.BaseProduct") - .WithMany() - .HasForeignKey("ArticleId"); - - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Booking.BookQuery") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Relationship.LocationType") - .WithMany() - .HasForeignKey("LocationTypeId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Booking.Profiles.DjSettings") - .WithMany() - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Booking.Profiles.GeneralSettings") - .WithMany() - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Booking.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.HasOne("Yavsc.Models.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("BillingAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.PostTag", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Booking.Profiles.FormationSettings") - .WithMany() - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("WorkingForId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170116154735_refactPrproAllowGeo.cs b/src/Yavsc.Server/Migrations/2017/20170116154735_refactPrproAllowGeo.cs deleted file mode 100644 index beef9575..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170116154735_refactPrproAllowGeo.cs +++ /dev/null @@ -1,366 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class refactPrproAllowGeo : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_Activity_ActivityCode", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropColumn(name: "AcceptGeoLocalization", table: "PerformerProfile"); - migrationBuilder.AddColumn( - name: "UseGeoLocalizationToReduceDistanceWithClients", - table: "PerformerProfile", - nullable: false, - defaultValue: false); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_Activity_ActivityCode", - table: "BookQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_Activity_ActivityCode", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropColumn(name: "UseGeoLocalizationToReduceDistanceWithClients", table: "PerformerProfile"); - migrationBuilder.AddColumn( - name: "AcceptGeoLocalization", - table: "PerformerProfile", - nullable: false, - defaultValue: false); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_Activity_ActivityCode", - table: "BookQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170117134339_entityTracking.Designer.cs b/src/Yavsc.Server/Migrations/2017/20170117134339_entityTracking.Designer.cs deleted file mode 100644 index 2bca8612..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170117134339_entityTracking.Designer.cs +++ /dev/null @@ -1,1031 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20170117134339_entityTracking")] - partial class entityTracking - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId"); - - b.Property("UserId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("ActorDenomination"); - - b.Property("Description"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("SettingsClassName"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("DiskQuota"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ArticleId"); - - b.Property("Count"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType"); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("Title"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("CreationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationTypeId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.MusicalPreference", b => - { - b.Property("OwnerProfileId"); - - b.Property("DjSettingsUserId"); - - b.Property("GeneralSettingsUserId"); - - b.Property("Rate"); - - b.Property("TendencyId"); - - b.HasKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Profiles.DjSettings", b => - { - b.Property("UserId"); - - b.Property("SoundCloudId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Profiles.FormationSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Profiles.GeneralSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Profiles.Instrumentation", b => - { - b.Property("InstrumentId"); - - b.Property("UserId"); - - b.HasKey("InstrumentId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId"); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CircleId"); - - b.Property("MemberId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.BaseProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("Discriminator") - .IsRequired(); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:DiscriminatorProperty", "Discriminator"); - - b.HasAnnotation("Relational:DiscriminatorValue", "BaseProduct"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.PostTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.LocationType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FormationSettingsUserId"); - - b.Property("PerformerId"); - - b.Property("WorkingForId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients"); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("DoesCode", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.HasBaseType("Yavsc.Models.Market.BaseProduct"); - - b.Property("Depth"); - - b.Property("Height"); - - b.Property("Price"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasAnnotation("Relational:DiscriminatorValue", "Product"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Activity", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Market.BaseProduct") - .WithMany() - .HasForeignKey("ArticleId"); - - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Booking.BookQuery") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Relationship.LocationType") - .WithMany() - .HasForeignKey("LocationTypeId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Booking.Profiles.DjSettings") - .WithMany() - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Booking.Profiles.GeneralSettings") - .WithMany() - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Booking.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.CircleMember", b => - { - b.HasOne("Yavsc.Models.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("BillingAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.PostTag", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Booking.Profiles.FormationSettings") - .WithMany() - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("WorkingForId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170117134339_entityTracking.cs b/src/Yavsc.Server/Migrations/2017/20170117134339_entityTracking.cs deleted file mode 100644 index 4cd132aa..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170117134339_entityTracking.cs +++ /dev/null @@ -1,381 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -namespace Yavsc.Migrations -{ - public partial class entityTracking : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_Activity_ActivityCode", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - - - - migrationBuilder.RenameColumn(name: "Modified", table: "Blog", newName: "DateModified"); - migrationBuilder.RenameColumn(name: "Posted", table: "Blog", newName: "DateCreated"); - - migrationBuilder.AddColumn( - name: "UserCreated", - table: "Blog", - nullable: true); - migrationBuilder.AddColumn( - name: "UserModified", - table: "Blog", - nullable: true); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_Activity_ActivityCode", - table: "BookQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_Activity_ActivityCode", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropColumn(name: "DateCreated", table: "Blog"); - migrationBuilder.DropColumn(name: "DateModified", table: "Blog"); - migrationBuilder.DropColumn(name: "UserCreated", table: "Blog"); - migrationBuilder.DropColumn(name: "UserModified", table: "Blog"); - migrationBuilder.AddColumn( - name: "Modified", - table: "Blog", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - migrationBuilder.AddColumn( - name: "Posted", - table: "Blog", - nullable: false, - defaultValueSql: "LOCALTIMESTAMP"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_Activity_ActivityCode", - table: "BookQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170120095258_blogAcl.Designer.cs b/src/Yavsc.Server/Migrations/2017/20170120095258_blogAcl.Designer.cs deleted file mode 100644 index 643429f9..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170120095258_blogAcl.Designer.cs +++ /dev/null @@ -1,1052 +0,0 @@ -using System; - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20170120095258_blogAcl")] - partial class blogAcl - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId"); - - b.Property("UserId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId"); - - b.Property("BlogPostId"); - - b.HasKey("CircleId", "BlogPostId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("ActorDenomination"); - - b.Property("Description"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("SettingsClassName"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("DiskQuota"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ArticleId"); - - b.Property("Count"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType"); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("Title"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("CreationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationTypeId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.MusicalPreference", b => - { - b.Property("OwnerProfileId"); - - b.Property("DjSettingsUserId"); - - b.Property("GeneralSettingsUserId"); - - b.Property("Rate"); - - b.Property("TendencyId"); - - b.HasKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Profiles.DjSettings", b => - { - b.Property("UserId"); - - b.Property("SoundCloudId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Profiles.FormationSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Profiles.GeneralSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Profiles.Instrumentation", b => - { - b.Property("InstrumentId"); - - b.Property("UserId"); - - b.HasKey("InstrumentId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId"); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.BaseProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("Discriminator") - .IsRequired(); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:DiscriminatorProperty", "Discriminator"); - - b.HasAnnotation("Relational:DiscriminatorValue", "BaseProduct"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CircleId"); - - b.Property("MemberId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.LocationType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FormationSettingsUserId"); - - b.Property("PerformerId"); - - b.Property("WorkingForId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients"); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("DoesCode", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.HasBaseType("Yavsc.Models.Market.BaseProduct"); - - b.Property("Depth"); - - b.Property("Height"); - - b.Property("Price"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasAnnotation("Relational:DiscriminatorValue", "Product"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("BlogPostId"); - - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Activity", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Market.BaseProduct") - .WithMany() - .HasForeignKey("ArticleId"); - - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Booking.BookQuery") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Relationship.LocationType") - .WithMany() - .HasForeignKey("LocationTypeId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Booking.Profiles.DjSettings") - .WithMany() - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Booking.Profiles.GeneralSettings") - .WithMany() - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Booking.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("BillingAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostTag", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Booking.Profiles.FormationSettings") - .WithMany() - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("WorkingForId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170120095258_blogAcl.cs b/src/Yavsc.Server/Migrations/2017/20170120095258_blogAcl.cs deleted file mode 100644 index e9e34a03..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170120095258_blogAcl.cs +++ /dev/null @@ -1,378 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class blogAcl : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_Activity_ActivityCode", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.CreateTable( - name: "CircleAuthorizationToBlogPost", - columns: table => new - { - CircleId = table.Column(nullable: false), - BlogPostId = table.Column(nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_CircleAuthorizationToBlogPost", x => new { x.CircleId, x.BlogPostId }); - table.ForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", - column: x => x.BlogPostId, - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - table.ForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - column: x => x.CircleId, - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_Activity_ActivityCode", - table: "BookQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_Activity_ActivityCode", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropTable("CircleAuthorizationToBlogPost"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_Activity_ActivityCode", - table: "BookQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170120122324_queryTraking.Designer.cs b/src/Yavsc.Server/Migrations/2017/20170120122324_queryTraking.Designer.cs deleted file mode 100644 index ba1ac869..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170120122324_queryTraking.Designer.cs +++ /dev/null @@ -1,1056 +0,0 @@ -using System; - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20170120122324_queryTraking")] - partial class queryTraking - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId"); - - b.Property("UserId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId"); - - b.Property("BlogPostId"); - - b.HasKey("CircleId", "BlogPostId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("ActorDenomination"); - - b.Property("Description"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("SettingsClassName"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("DiskQuota"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ArticleId"); - - b.Property("Count"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType"); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("Title"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationTypeId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.MusicalPreference", b => - { - b.Property("OwnerProfileId"); - - b.Property("DjSettingsUserId"); - - b.Property("GeneralSettingsUserId"); - - b.Property("Rate"); - - b.Property("TendencyId"); - - b.HasKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Profiles.DjSettings", b => - { - b.Property("UserId"); - - b.Property("SoundCloudId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Profiles.FormationSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Profiles.GeneralSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Profiles.Instrumentation", b => - { - b.Property("InstrumentId"); - - b.Property("UserId"); - - b.HasKey("InstrumentId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId"); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.BaseProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("Discriminator") - .IsRequired(); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:DiscriminatorProperty", "Discriminator"); - - b.HasAnnotation("Relational:DiscriminatorValue", "BaseProduct"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("CircleId"); - - b.Property("MemberId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.LocationType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FormationSettingsUserId"); - - b.Property("PerformerId"); - - b.Property("WorkingForId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients"); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("DoesCode", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.HasBaseType("Yavsc.Models.Market.BaseProduct"); - - b.Property("Depth"); - - b.Property("Height"); - - b.Property("Price"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasAnnotation("Relational:DiscriminatorValue", "Product"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("BlogPostId"); - - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Activity", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Market.BaseProduct") - .WithMany() - .HasForeignKey("ArticleId"); - - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Booking.BookQuery") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Relationship.LocationType") - .WithMany() - .HasForeignKey("LocationTypeId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Booking.Profiles.DjSettings") - .WithMany() - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Booking.Profiles.GeneralSettings") - .WithMany() - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Booking.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("BillingAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostTag", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Booking.Profiles.FormationSettings") - .WithMany() - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("WorkingForId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170120122324_queryTraking.cs b/src/Yavsc.Server/Migrations/2017/20170120122324_queryTraking.cs deleted file mode 100644 index d24faf9c..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170120122324_queryTraking.cs +++ /dev/null @@ -1,415 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class queryTraking : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_Activity_ActivityCode", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.AddColumn( - name: "DateCreated", - table: "BookQuery", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - migrationBuilder.Sql ("update \"BookQuery\" set \"DateCreated\" = \"CreationDate\""); - migrationBuilder.DropColumn(name: "CreationDate", table: "BookQuery"); - migrationBuilder.AddColumn( - name: "DateModified", - table: "BookQuery", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - migrationBuilder.AddColumn( - name: "UserCreated", - table: "BookQuery", - nullable: true); - migrationBuilder.AddColumn( - name: "UserModified", - table: "BookQuery", - nullable: true); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_Activity_ActivityCode", - table: "BookQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_Activity_ActivityCode", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropColumn(name: "DateCreated", table: "BookQuery"); - migrationBuilder.DropColumn(name: "DateModified", table: "BookQuery"); - migrationBuilder.DropColumn(name: "UserCreated", table: "BookQuery"); - migrationBuilder.DropColumn(name: "UserModified", table: "BookQuery"); - migrationBuilder.AddColumn( - name: "CreationDate", - table: "BookQuery", - nullable: false, - defaultValueSql: "LOCALTIMESTAMP"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_Activity_ActivityCode", - table: "BookQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170122160343_circlesMemberRefact.Designer.cs b/src/Yavsc.Server/Migrations/2017/20170122160343_circlesMemberRefact.Designer.cs deleted file mode 100644 index ce94dfc7..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170122160343_circlesMemberRefact.Designer.cs +++ /dev/null @@ -1,1051 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20170122160343_circlesMemberRefact")] - partial class circlesMemberRefact - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId"); - - b.Property("UserId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId"); - - b.Property("BlogPostId"); - - b.HasKey("CircleId", "BlogPostId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("ActorDenomination"); - - b.Property("Description"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("SettingsClassName"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("DiskQuota"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ArticleId"); - - b.Property("Count"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType"); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("Title"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationTypeId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.MusicalPreference", b => - { - b.Property("OwnerProfileId"); - - b.Property("DjSettingsUserId"); - - b.Property("GeneralSettingsUserId"); - - b.Property("Rate"); - - b.Property("TendencyId"); - - b.HasKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Profiles.DjSettings", b => - { - b.Property("UserId"); - - b.Property("SoundCloudId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Profiles.FormationSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Profiles.GeneralSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Profiles.Instrumentation", b => - { - b.Property("InstrumentId"); - - b.Property("UserId"); - - b.HasKey("InstrumentId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId"); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.BaseProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("Discriminator") - .IsRequired(); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:DiscriminatorProperty", "Discriminator"); - - b.HasAnnotation("Relational:DiscriminatorValue", "BaseProduct"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId"); - - b.Property("CircleId"); - - b.HasKey("MemberId", "CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.LocationType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FormationSettingsUserId"); - - b.Property("PerformerId"); - - b.Property("WorkingForId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients"); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("DoesCode", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.HasBaseType("Yavsc.Models.Market.BaseProduct"); - - b.Property("Depth"); - - b.Property("Height"); - - b.Property("Price"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasAnnotation("Relational:DiscriminatorValue", "Product"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("BlogPostId"); - - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Activity", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Market.BaseProduct") - .WithMany() - .HasForeignKey("ArticleId"); - - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Booking.BookQuery") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Relationship.LocationType") - .WithMany() - .HasForeignKey("LocationTypeId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Booking.Profiles.DjSettings") - .WithMany() - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Booking.Profiles.GeneralSettings") - .WithMany() - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Booking.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("BillingAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostTag", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Booking.Profiles.FormationSettings") - .WithMany() - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("WorkingForId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170122160343_circlesMemberRefact.cs b/src/Yavsc.Server/Migrations/2017/20170122160343_circlesMemberRefact.cs deleted file mode 100644 index b85d4c8a..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170122160343_circlesMemberRefact.cs +++ /dev/null @@ -1,403 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class circlesMemberRefact : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_Activity_ActivityCode", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropPrimaryKey(name: "PK_CircleMember", table: "CircleMember"); - migrationBuilder.DropColumn(name: "Id", table: "CircleMember"); - migrationBuilder.AddPrimaryKey( - name: "PK_CircleMember", - table: "CircleMember", - columns: new[] { "MemberId", "CircleId" }); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_Activity_ActivityCode", - table: "BookQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_Activity_ActivityCode", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropPrimaryKey(name: "PK_CircleMember", table: "CircleMember"); - migrationBuilder.AddColumn( - name: "Id", - table: "CircleMember", - nullable: false, - defaultValue: 0L) - .Annotation("Npgsql:Serial", true); - migrationBuilder.AddPrimaryKey( - name: "PK_CircleMember", - table: "CircleMember", - column: "Id"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_Activity_ActivityCode", - table: "BookQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170124090324_commandForms.Designer.cs b/src/Yavsc.Server/Migrations/2017/20170124090324_commandForms.Designer.cs deleted file mode 100644 index ef529627..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170124090324_commandForms.Designer.cs +++ /dev/null @@ -1,1082 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20170124090324_commandForms")] - partial class commandForms - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId"); - - b.Property("UserId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId"); - - b.Property("BlogPostId"); - - b.HasKey("CircleId", "BlogPostId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("ActorDenomination"); - - b.Property("Description"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("SettingsClassName"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("DiskQuota"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ArticleId"); - - b.Property("Count"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType"); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("Title"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationTypeId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.MusicalPreference", b => - { - b.Property("OwnerProfileId"); - - b.Property("DjSettingsUserId"); - - b.Property("GeneralSettingsUserId"); - - b.Property("Rate"); - - b.Property("TendencyId"); - - b.HasKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Profiles.DjSettings", b => - { - b.Property("UserId"); - - b.Property("SoundCloudId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Profiles.FormationSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Profiles.GeneralSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Profiles.Instrumentation", b => - { - b.Property("InstrumentId"); - - b.Property("UserId"); - - b.HasKey("InstrumentId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId"); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id"); - - b.Property("Summary"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.BaseProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("Discriminator") - .IsRequired(); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:DiscriminatorProperty", "Discriminator"); - - b.HasAnnotation("Relational:DiscriminatorValue", "BaseProduct"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId"); - - b.Property("CircleId"); - - b.HasKey("MemberId", "CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.LocationType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("Title"); - - b.Property("ViewName"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FormationSettingsUserId"); - - b.Property("PerformerId"); - - b.Property("WorkingForId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients"); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("DoesCode", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.HasBaseType("Yavsc.Models.Market.BaseProduct"); - - b.Property("Depth"); - - b.Property("Height"); - - b.Property("Price"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasAnnotation("Relational:DiscriminatorValue", "Product"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("BlogPostId"); - - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Activity", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Market.BaseProduct") - .WithMany() - .HasForeignKey("ArticleId"); - - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Booking.BookQuery") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Relationship.LocationType") - .WithMany() - .HasForeignKey("LocationTypeId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Booking.Profiles.DjSettings") - .WithMany() - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Booking.Profiles.GeneralSettings") - .WithMany() - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Booking.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("BillingAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostTag", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Booking.Profiles.FormationSettings") - .WithMany() - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("WorkingForId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170124090324_commandForms.cs b/src/Yavsc.Server/Migrations/2017/20170124090324_commandForms.cs deleted file mode 100644 index b9dd1856..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170124090324_commandForms.cs +++ /dev/null @@ -1,418 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -namespace Yavsc.Migrations -{ - public partial class commandForms : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_Activity_ActivityCode", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.CreateTable( - name: "Form", - columns: table => new - { - Id = table.Column(nullable: false), - Summary = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Form", x => x.Id); - }); - migrationBuilder.CreateTable( - name: "CommandForm", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("Npgsql:Serial", true), - ActivityCode = table.Column(nullable: false), - Title = table.Column(nullable: true), - ViewName = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_CommandForm", x => x.Id); - table.ForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - column: x => x.ActivityCode, - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - }); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_Activity_ActivityCode", - table: "BookQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_Activity_ActivityCode", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropTable("Form"); - migrationBuilder.DropTable("CommandForm"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_Activity_ActivityCode", - table: "BookQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170126152454_trackActivity.Designer.cs b/src/Yavsc.Server/Migrations/2017/20170126152454_trackActivity.Designer.cs deleted file mode 100644 index 308fdc8b..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170126152454_trackActivity.Designer.cs +++ /dev/null @@ -1,1090 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20170126152454_trackActivity")] - partial class trackActivity - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId"); - - b.Property("UserId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId"); - - b.Property("BlogPostId"); - - b.HasKey("CircleId", "BlogPostId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("DiskQuota"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ArticleId"); - - b.Property("Count"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType"); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("Title"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationTypeId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.MusicalPreference", b => - { - b.Property("OwnerProfileId"); - - b.Property("DjSettingsUserId"); - - b.Property("GeneralSettingsUserId"); - - b.Property("Rate"); - - b.Property("TendencyId"); - - b.HasKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Profiles.DjSettings", b => - { - b.Property("UserId"); - - b.Property("SoundCloudId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Profiles.FormationSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Profiles.GeneralSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Profiles.Instrumentation", b => - { - b.Property("InstrumentId"); - - b.Property("UserId"); - - b.HasKey("InstrumentId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId"); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id"); - - b.Property("Summary"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.BaseProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("Discriminator") - .IsRequired(); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:DiscriminatorProperty", "Discriminator"); - - b.HasAnnotation("Relational:DiscriminatorValue", "BaseProduct"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId"); - - b.Property("CircleId"); - - b.HasKey("MemberId", "CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.LocationType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("ActorDenomination"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("SettingsClassName"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("Title"); - - b.Property("ViewName"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FormationSettingsUserId"); - - b.Property("PerformerId"); - - b.Property("WorkingForId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients"); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("DoesCode", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.HasBaseType("Yavsc.Models.Market.BaseProduct"); - - b.Property("Depth"); - - b.Property("Height"); - - b.Property("Price"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasAnnotation("Relational:DiscriminatorValue", "Product"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("BlogPostId"); - - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Market.BaseProduct") - .WithMany() - .HasForeignKey("ArticleId"); - - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Booking.BookQuery") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Relationship.LocationType") - .WithMany() - .HasForeignKey("LocationTypeId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Booking.Profiles.DjSettings") - .WithMany() - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Booking.Profiles.GeneralSettings") - .WithMany() - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Booking.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("BillingAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostTag", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Booking.Profiles.FormationSettings") - .WithMany() - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("WorkingForId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170126152454_trackActivity.cs b/src/Yavsc.Server/Migrations/2017/20170126152454_trackActivity.cs deleted file mode 100644 index df04335a..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170126152454_trackActivity.cs +++ /dev/null @@ -1,424 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class trackActivity : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_Activity_ActivityCode", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.AddColumn( - name: "DateCreated", - table: "Activity", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - migrationBuilder.AddColumn( - name: "DateModified", - table: "Activity", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - migrationBuilder.AddColumn( - name: "UserCreated", - table: "Activity", - nullable: true); - migrationBuilder.AddColumn( - name: "UserModified", - table: "Activity", - nullable: true); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_Activity_ActivityCode", - table: "BookQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_Activity_ActivityCode", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropColumn(name: "DateCreated", table: "Activity"); - migrationBuilder.DropColumn(name: "DateModified", table: "Activity"); - migrationBuilder.DropColumn(name: "UserCreated", table: "Activity"); - migrationBuilder.DropColumn(name: "UserModified", table: "Activity"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_Activity_ActivityCode", - table: "BookQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170126152651_renameActViewNameToAction.Designer.cs b/src/Yavsc.Server/Migrations/2017/20170126152651_renameActViewNameToAction.Designer.cs deleted file mode 100644 index e2927963..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170126152651_renameActViewNameToAction.Designer.cs +++ /dev/null @@ -1,1090 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20170126152651_renameActViewNameToAction")] - partial class renameActViewNameToAction - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId"); - - b.Property("UserId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId"); - - b.Property("BlogPostId"); - - b.HasKey("CircleId", "BlogPostId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("DiskQuota"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ArticleId"); - - b.Property("Count"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType"); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("Title"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationTypeId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.MusicalPreference", b => - { - b.Property("OwnerProfileId"); - - b.Property("DjSettingsUserId"); - - b.Property("GeneralSettingsUserId"); - - b.Property("Rate"); - - b.Property("TendencyId"); - - b.HasKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Profiles.DjSettings", b => - { - b.Property("UserId"); - - b.Property("SoundCloudId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Profiles.FormationSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Profiles.GeneralSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Profiles.Instrumentation", b => - { - b.Property("InstrumentId"); - - b.Property("UserId"); - - b.HasKey("InstrumentId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId"); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id"); - - b.Property("Summary"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.BaseProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("Discriminator") - .IsRequired(); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:DiscriminatorProperty", "Discriminator"); - - b.HasAnnotation("Relational:DiscriminatorValue", "BaseProduct"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId"); - - b.Property("CircleId"); - - b.HasKey("MemberId", "CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.LocationType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("ActorDenomination"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("SettingsClassName"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("Title"); - - b.Property("ViewName"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FormationSettingsUserId"); - - b.Property("PerformerId"); - - b.Property("WorkingForId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients"); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("DoesCode", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.HasBaseType("Yavsc.Models.Market.BaseProduct"); - - b.Property("Depth"); - - b.Property("Height"); - - b.Property("Price"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasAnnotation("Relational:DiscriminatorValue", "Product"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("BlogPostId"); - - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Market.BaseProduct") - .WithMany() - .HasForeignKey("ArticleId"); - - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Booking.BookQuery") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Relationship.LocationType") - .WithMany() - .HasForeignKey("LocationTypeId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Booking.Profiles.DjSettings") - .WithMany() - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Booking.Profiles.GeneralSettings") - .WithMany() - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Booking.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("BillingAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostTag", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Booking.Profiles.FormationSettings") - .WithMany() - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("WorkingForId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170126152651_renameActViewNameToAction.cs b/src/Yavsc.Server/Migrations/2017/20170126152651_renameActViewNameToAction.cs deleted file mode 100644 index b11a3380..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170126152651_renameActViewNameToAction.cs +++ /dev/null @@ -1,406 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class renameActViewNameToAction : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_Activity_ActivityCode", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - - migrationBuilder.RenameColumn(name:"ViewName",table:"CommandForm",newName:"Action"); - - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_Activity_ActivityCode", - table: "BookQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_Activity_ActivityCode", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.RenameColumn(name:"Action",table:"CommandForm",newName:"ViewName"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_Activity_ActivityCode", - table: "BookQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170201002133_blacklisted.Designer.cs b/src/Yavsc.Server/Migrations/2017/20170201002133_blacklisted.Designer.cs deleted file mode 100644 index 8f69d34f..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170201002133_blacklisted.Designer.cs +++ /dev/null @@ -1,1108 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20170201002133_blacklisted")] - partial class blacklisted - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId"); - - b.Property("BlogPostId"); - - b.HasKey("CircleId", "BlogPostId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("DiskQuota"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ArticleId"); - - b.Property("Count"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType"); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("Title"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationTypeId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.MusicalPreference", b => - { - b.Property("OwnerProfileId"); - - b.Property("DjSettingsUserId"); - - b.Property("GeneralSettingsUserId"); - - b.Property("Rate"); - - b.Property("TendencyId"); - - b.HasKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Profiles.DjSettings", b => - { - b.Property("UserId"); - - b.Property("SoundCloudId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Profiles.FormationSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Profiles.GeneralSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Profiles.Instrumentation", b => - { - b.Property("InstrumentId"); - - b.Property("UserId"); - - b.HasKey("InstrumentId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId"); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id"); - - b.Property("Summary"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.BaseProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("Discriminator") - .IsRequired(); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:DiscriminatorProperty", "Discriminator"); - - b.HasAnnotation("Relational:DiscriminatorValue", "BaseProduct"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId"); - - b.Property("CircleId"); - - b.HasKey("MemberId", "CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.LocationType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("ActorDenomination"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("SettingsClassName"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Action"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FormationSettingsUserId"); - - b.Property("PerformerId"); - - b.Property("WorkingForId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients"); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("DoesCode", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.HasBaseType("Yavsc.Models.Market.BaseProduct"); - - b.Property("Depth"); - - b.Property("Height"); - - b.Property("Price"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasAnnotation("Relational:DiscriminatorValue", "Product"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("BlogPostId"); - - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Market.BaseProduct") - .WithMany() - .HasForeignKey("ArticleId"); - - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Booking.BookQuery") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Relationship.LocationType") - .WithMany() - .HasForeignKey("LocationTypeId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Booking.Profiles.DjSettings") - .WithMany() - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Booking.Profiles.GeneralSettings") - .WithMany() - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Booking.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("BillingAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostTag", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Booking.Profiles.FormationSettings") - .WithMany() - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("WorkingForId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170201002133_blacklisted.cs b/src/Yavsc.Server/Migrations/2017/20170201002133_blacklisted.cs deleted file mode 100644 index 245d86f0..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170201002133_blacklisted.cs +++ /dev/null @@ -1,451 +0,0 @@ -using System; - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class blacklisted : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_Activity_ActivityCode", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.CreateTable( - name: "Ban", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("Npgsql:Serial", true), - DateCreated = table.Column(nullable: false), - DateModified = table.Column(nullable: false), - UserCreated = table.Column(nullable: true), - UserModified = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Ban", x => x.Id); - }); - migrationBuilder.AlterColumn( - name: "UserId", - table: "BlackListed", - nullable: false); - migrationBuilder.AlterColumn( - name: "OwnerId", - table: "BlackListed", - nullable: false); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_Activity_ActivityCode", - table: "BookQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_Activity_ActivityCode", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropTable("Ban"); - migrationBuilder.AlterColumn( - name: "UserId", - table: "BlackListed", - nullable: true); - migrationBuilder.AlterColumn( - name: "OwnerId", - table: "BlackListed", - nullable: true); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_Activity_ActivityCode", - table: "BookQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170201162847_defaultAvatar.Designer.cs b/src/Yavsc.Server/Migrations/2017/20170201162847_defaultAvatar.Designer.cs deleted file mode 100644 index 564accd0..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170201162847_defaultAvatar.Designer.cs +++ /dev/null @@ -1,1111 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20170201162847_defaultAvatar")] - partial class defaultAvatar - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId"); - - b.Property("BlogPostId"); - - b.HasKey("CircleId", "BlogPostId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("Avatar") - .IsRequired() - .HasAnnotation("MaxLength", 512) - .HasAnnotation("Relational:DefaultValue", "/images/Users/icon_user.png") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("DiskQuota"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ArticleId"); - - b.Property("Count"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType"); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("Title"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationTypeId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.MusicalPreference", b => - { - b.Property("OwnerProfileId"); - - b.Property("DjSettingsUserId"); - - b.Property("GeneralSettingsUserId"); - - b.Property("Rate"); - - b.Property("TendencyId"); - - b.HasKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Profiles.DjSettings", b => - { - b.Property("UserId"); - - b.Property("SoundCloudId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Profiles.FormationSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Profiles.GeneralSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Profiles.Instrumentation", b => - { - b.Property("InstrumentId"); - - b.Property("UserId"); - - b.HasKey("InstrumentId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId"); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id"); - - b.Property("Summary"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.BaseProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("Discriminator") - .IsRequired(); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:DiscriminatorProperty", "Discriminator"); - - b.HasAnnotation("Relational:DiscriminatorValue", "BaseProduct"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId"); - - b.Property("CircleId"); - - b.HasKey("MemberId", "CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.LocationType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("ActorDenomination"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("SettingsClassName"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Action"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FormationSettingsUserId"); - - b.Property("PerformerId"); - - b.Property("WorkingForId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients"); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("DoesCode", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.HasBaseType("Yavsc.Models.Market.BaseProduct"); - - b.Property("Depth"); - - b.Property("Height"); - - b.Property("Price"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasAnnotation("Relational:DiscriminatorValue", "Product"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("BlogPostId"); - - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Market.BaseProduct") - .WithMany() - .HasForeignKey("ArticleId"); - - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Booking.BookQuery") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Relationship.LocationType") - .WithMany() - .HasForeignKey("LocationTypeId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Booking.Profiles.DjSettings") - .WithMany() - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Booking.Profiles.GeneralSettings") - .WithMany() - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Booking.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("BillingAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostTag", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Booking.Profiles.FormationSettings") - .WithMany() - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("WorkingForId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170201162847_defaultAvatar.cs b/src/Yavsc.Server/Migrations/2017/20170201162847_defaultAvatar.cs deleted file mode 100644 index ceabbaa6..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170201162847_defaultAvatar.cs +++ /dev/null @@ -1,429 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class defaultAvatar : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_Activity_ActivityCode", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - - migrationBuilder.Sql("UPDATE \"AspNetUsers\" SET \"Avatar\"='/images/Users/icon_user.png' WHERE \"Avatar\" IS NULL"); - migrationBuilder.AlterColumn( - name: "Avatar", - table: "AspNetUsers", - nullable: false, - defaultValue: "/images/Users/icon_user.png"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_Activity_ActivityCode", - table: "BookQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_Activity_ActivityCode", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.AlterColumn( - name: "Avatar", - table: "AspNetUsers", - nullable: true); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_Activity_ActivityCode", - table: "BookQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170202102936_defaultDiskQuota.Designer.cs b/src/Yavsc.Server/Migrations/2017/20170202102936_defaultDiskQuota.Designer.cs deleted file mode 100644 index e4332b91..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170202102936_defaultDiskQuota.Designer.cs +++ /dev/null @@ -1,1113 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20170202102936_defaultDiskQuota")] - partial class defaultDiskQuota - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId"); - - b.Property("BlogPostId"); - - b.HasKey("CircleId", "BlogPostId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("Avatar") - .IsRequired() - .HasAnnotation("MaxLength", 512) - .HasAnnotation("Relational:DefaultValue", "/images/Users/icon_user.png") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("DiskQuota") - .HasAnnotation("Relational:DefaultValue", "524288000") - .HasAnnotation("Relational:DefaultValueType", "System.Int64"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ArticleId"); - - b.Property("Count"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType"); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("Title"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationTypeId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.MusicalPreference", b => - { - b.Property("OwnerProfileId"); - - b.Property("DjSettingsUserId"); - - b.Property("GeneralSettingsUserId"); - - b.Property("Rate"); - - b.Property("TendencyId"); - - b.HasKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Profiles.DjSettings", b => - { - b.Property("UserId"); - - b.Property("SoundCloudId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Profiles.FormationSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Profiles.GeneralSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Profiles.Instrumentation", b => - { - b.Property("InstrumentId"); - - b.Property("UserId"); - - b.HasKey("InstrumentId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId"); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id"); - - b.Property("Summary"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.BaseProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("Discriminator") - .IsRequired(); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:DiscriminatorProperty", "Discriminator"); - - b.HasAnnotation("Relational:DiscriminatorValue", "BaseProduct"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId"); - - b.Property("CircleId"); - - b.HasKey("MemberId", "CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.LocationType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("ActorDenomination"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("SettingsClassName"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Action"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FormationSettingsUserId"); - - b.Property("PerformerId"); - - b.Property("WorkingForId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients"); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("DoesCode", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.HasBaseType("Yavsc.Models.Market.BaseProduct"); - - b.Property("Depth"); - - b.Property("Height"); - - b.Property("Price"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasAnnotation("Relational:DiscriminatorValue", "Product"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("BlogPostId"); - - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Market.BaseProduct") - .WithMany() - .HasForeignKey("ArticleId"); - - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Booking.BookQuery") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.BookQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Relationship.LocationType") - .WithMany() - .HasForeignKey("LocationTypeId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Booking.Profiles.DjSettings") - .WithMany() - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Booking.Profiles.GeneralSettings") - .WithMany() - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Booking.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("BillingAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostTag", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Booking.Profiles.FormationSettings") - .WithMany() - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("WorkingForId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170202102936_defaultDiskQuota.cs b/src/Yavsc.Server/Migrations/2017/20170202102936_defaultDiskQuota.cs deleted file mode 100644 index b6ea1a86..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170202102936_defaultDiskQuota.cs +++ /dev/null @@ -1,427 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -namespace Yavsc.Migrations -{ - public partial class defaultDiskQuota : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_Activity_ActivityCode", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.Sql("UPDATE \"AspNetUsers\" SET \"DiskQuota\" = 524288000 WHERE \"DiskQuota\" = 0"); - migrationBuilder.AlterColumn( - name: "DiskQuota", - table: "AspNetUsers", - nullable: false, - defaultValue: 524288000L); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_Activity_ActivityCode", - table: "BookQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_Activity_ActivityCode", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.AlterColumn( - name: "DiskQuota", - table: "AspNetUsers", - nullable: false); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_Activity_ActivityCode", - table: "BookQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170212005346_haircut.Designer.cs b/src/Yavsc.Server/Migrations/2017/20170212005346_haircut.Designer.cs deleted file mode 100644 index 16c1cfd0..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170212005346_haircut.Designer.cs +++ /dev/null @@ -1,1149 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20170212005346_haircut")] - partial class haircut - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId"); - - b.Property("BlogPostId"); - - b.HasKey("CircleId", "BlogPostId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("Avatar") - .IsRequired() - .HasAnnotation("MaxLength", 512) - .HasAnnotation("Relational:DefaultValue", "/images/Users/icon_user.png") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("DiskQuota") - .HasAnnotation("Relational:DefaultValue", "524288000") - .HasAnnotation("Relational:DefaultValueType", "System.Int64"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ArticleId"); - - b.Property("Count"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType"); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("Title"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.MusicalPreference", b => - { - b.Property("OwnerProfileId"); - - b.Property("DjSettingsUserId"); - - b.Property("GeneralSettingsUserId"); - - b.Property("Rate"); - - b.Property("TendencyId"); - - b.HasKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Profiles.DjSettings", b => - { - b.Property("UserId"); - - b.Property("SoundCloudId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Profiles.GeneralSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Profiles.Instrumentation", b => - { - b.Property("InstrumentId"); - - b.Property("UserId"); - - b.HasKey("InstrumentId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId"); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Blue"); - - b.Property("Green"); - - b.Property("Name"); - - b.Property("Red"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id"); - - b.Property("Summary"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Brand"); - - b.Property("ColorId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.BaseProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("Discriminator") - .IsRequired(); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:DiscriminatorProperty", "Discriminator"); - - b.HasAnnotation("Relational:DiscriminatorValue", "BaseProduct"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId"); - - b.Property("CircleId"); - - b.HasKey("MemberId", "CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.LocationType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("ActorDenomination"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("SettingsClassName"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.BookQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationTypeId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Action"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FormationSettingsUserId"); - - b.Property("PerformerId"); - - b.Property("WorkingForId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients"); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("DoesCode", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.HasBaseType("Yavsc.Models.Market.BaseProduct"); - - b.Property("Depth"); - - b.Property("Height"); - - b.Property("Price"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasAnnotation("Relational:DiscriminatorValue", "Product"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("BlogPostId"); - - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Market.BaseProduct") - .WithMany() - .HasForeignKey("ArticleId"); - - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Workflow.BookQuery") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Booking.Profiles.DjSettings") - .WithMany() - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Booking.Profiles.GeneralSettings") - .WithMany() - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Booking.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Booking.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color") - .WithMany() - .HasForeignKey("ColorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("BillingAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostTag", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.BookQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Relationship.LocationType") - .WithMany() - .HasForeignKey("LocationTypeId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings") - .WithMany() - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("WorkingForId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170212005346_haircut.cs b/src/Yavsc.Server/Migrations/2017/20170212005346_haircut.cs deleted file mode 100644 index 3a1008e0..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170212005346_haircut.cs +++ /dev/null @@ -1,454 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class haircut : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_Activity_ActivityCode", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.CreateTable( - name: "Color", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("Npgsql:Serial", true), - Blue = table.Column(nullable: false), - Green = table.Column(nullable: false), - Name = table.Column(nullable: true), - Red = table.Column(nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Color", x => x.Id); - }); - migrationBuilder.CreateTable( - name: "HairTaint", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("Npgsql:Serial", true), - Brand = table.Column(nullable: true), - ColorId = table.Column(nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_HairTaint", x => x.Id); - table.ForeignKey( - name: "FK_HairTaint_Color_ColorId", - column: x => x.ColorId, - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_Activity_ActivityCode", - table: "BookQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_Activity_ActivityCode", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropTable("HairTaint"); - migrationBuilder.DropTable("Color"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_Activity_ActivityCode", - table: "BookQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170217221646_bookQueryStatus.Designer.cs b/src/Yavsc.Server/Migrations/2017/20170217221646_bookQueryStatus.Designer.cs deleted file mode 100644 index de1f82b5..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170217221646_bookQueryStatus.Designer.cs +++ /dev/null @@ -1,1150 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20170217221646_bookQueryStatus")] - partial class bookQueryStatus - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId"); - - b.Property("BlogPostId"); - - b.HasKey("CircleId", "BlogPostId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("Avatar") - .IsRequired() - .HasAnnotation("MaxLength", 512) - .HasAnnotation("Relational:DefaultValue", "/images/Users/icon_user.png") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("DiskQuota") - .HasAnnotation("Relational:DefaultValue", "524288000") - .HasAnnotation("Relational:DefaultValueType", "System.Int64"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ArticleId"); - - b.Property("Count"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType"); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("Title"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId"); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Blue"); - - b.Property("Green"); - - b.Property("Name"); - - b.Property("Red"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id"); - - b.Property("Summary"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Brand"); - - b.Property("ColorId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.BaseProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("Discriminator") - .IsRequired(); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:DiscriminatorProperty", "Discriminator"); - - b.HasAnnotation("Relational:DiscriminatorValue", "BaseProduct"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId"); - - b.Property("DjSettingsUserId"); - - b.Property("GeneralSettingsUserId"); - - b.Property("Rate"); - - b.Property("TendencyId"); - - b.HasKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId"); - - b.Property("SoundCloudId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId"); - - b.Property("UserId"); - - b.HasKey("InstrumentId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId"); - - b.Property("CircleId"); - - b.HasKey("MemberId", "CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.LocationType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("ActorDenomination"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("SettingsClassName"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.BookQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationTypeId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Action"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FormationSettingsUserId"); - - b.Property("PerformerId"); - - b.Property("WorkingForId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients"); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("DoesCode", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.HasBaseType("Yavsc.Models.Market.BaseProduct"); - - b.Property("Depth"); - - b.Property("Height"); - - b.Property("Price"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasAnnotation("Relational:DiscriminatorValue", "Product"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("BlogPostId"); - - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Market.BaseProduct") - .WithMany() - .HasForeignKey("ArticleId"); - - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Workflow.BookQuery") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color") - .WithMany() - .HasForeignKey("ColorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("BillingAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings") - .WithMany() - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings") - .WithMany() - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostTag", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.BookQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Relationship.LocationType") - .WithMany() - .HasForeignKey("LocationTypeId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings") - .WithMany() - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("WorkingForId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170217221646_bookQueryStatus.cs b/src/Yavsc.Server/Migrations/2017/20170217221646_bookQueryStatus.cs deleted file mode 100644 index 17cf467e..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170217221646_bookQueryStatus.cs +++ /dev/null @@ -1,441 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - using Yavsc; - public partial class bookQueryStatus : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_Activity_ActivityCode", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.AddColumn( - name: "Status", - table: "BookQuery", - nullable: false, - defaultValue: QueryStatus.Inserted); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_Activity_ActivityCode", - table: "BookQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_Activity_ActivityCode", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropColumn(name: "Status", table: "BookQuery"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_Activity_ActivityCode", - table: "BookQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170220102125_notifications.Designer.cs b/src/Yavsc.Server/Migrations/2017/20170220102125_notifications.Designer.cs deleted file mode 100644 index fcf7c588..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170220102125_notifications.Designer.cs +++ /dev/null @@ -1,1176 +0,0 @@ -using System; - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20170220102125_notifications")] - partial class notifications - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId"); - - b.Property("BlogPostId"); - - b.HasKey("CircleId", "BlogPostId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("Avatar") - .IsRequired() - .HasAnnotation("MaxLength", 512) - .HasAnnotation("Relational:DefaultValue", "/images/Users/icon_user.png") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("DiskQuota") - .HasAnnotation("Relational:DefaultValue", "524288000") - .HasAnnotation("Relational:DefaultValueType", "System.Int64"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ArticleId"); - - b.Property("Count"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType"); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("Title"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId"); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Blue"); - - b.Property("Green"); - - b.Property("Name"); - - b.Property("Red"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id"); - - b.Property("Summary"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Brand"); - - b.Property("ColorId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.BaseProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("Discriminator") - .IsRequired(); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:DiscriminatorProperty", "Discriminator"); - - b.HasAnnotation("Relational:DiscriminatorValue", "BaseProduct"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("body") - .IsRequired(); - - b.Property("click_action") - .IsRequired(); - - b.Property("color"); - - b.Property("icon"); - - b.Property("sound"); - - b.Property("tag"); - - b.Property("title") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId"); - - b.Property("DjSettingsUserId"); - - b.Property("GeneralSettingsUserId"); - - b.Property("Rate"); - - b.Property("TendencyId"); - - b.HasKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId"); - - b.Property("SoundCloudId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId"); - - b.Property("UserId"); - - b.HasKey("InstrumentId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId"); - - b.Property("CircleId"); - - b.HasKey("MemberId", "CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.LocationType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("ActorDenomination"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("SettingsClassName"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.BookQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationTypeId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Action"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FormationSettingsUserId"); - - b.Property("PerformerId"); - - b.Property("WorkingForId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients"); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("DoesCode", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.HasBaseType("Yavsc.Models.Market.BaseProduct"); - - b.Property("Depth"); - - b.Property("Height"); - - b.Property("Price"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasAnnotation("Relational:DiscriminatorValue", "Product"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("BlogPostId"); - - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Market.BaseProduct") - .WithMany() - .HasForeignKey("ArticleId"); - - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Workflow.BookQuery") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color") - .WithMany() - .HasForeignKey("ColorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("BillingAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings") - .WithMany() - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings") - .WithMany() - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostTag", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.BookQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Relationship.LocationType") - .WithMany() - .HasForeignKey("LocationTypeId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings") - .WithMany() - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("WorkingForId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170220102125_notifications.cs b/src/Yavsc.Server/Migrations/2017/20170220102125_notifications.cs deleted file mode 100644 index 78c0166a..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170220102125_notifications.cs +++ /dev/null @@ -1,453 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class notifications : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_Activity_ActivityCode", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.CreateTable( - name: "Notification", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("Npgsql:Serial", true), - body = table.Column(nullable: false), - click_action = table.Column(nullable: false), - color = table.Column(nullable: true), - icon = table.Column(nullable: true), - sound = table.Column(nullable: true), - tag = table.Column(nullable: true), - title = table.Column(nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Notification", x => x.Id); - }); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_Activity_ActivityCode", - table: "BookQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_Activity_ActivityCode", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropTable("Notification"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_Activity_ActivityCode", - table: "BookQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170220125518_dimissclick.Designer.cs b/src/Yavsc.Server/Migrations/2017/20170220125518_dimissclick.Designer.cs deleted file mode 100644 index 04fccaa5..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170220125518_dimissclick.Designer.cs +++ /dev/null @@ -1,1196 +0,0 @@ -using System; - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20170220125518_dimissclick")] - partial class dimissclick - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId"); - - b.Property("BlogPostId"); - - b.HasKey("CircleId", "BlogPostId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("Avatar") - .IsRequired() - .HasAnnotation("MaxLength", 512) - .HasAnnotation("Relational:DefaultValue", "/images/Users/icon_user.png") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("DiskQuota") - .HasAnnotation("Relational:DefaultValue", "524288000") - .HasAnnotation("Relational:DefaultValueType", "System.Int64"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ArticleId"); - - b.Property("Count"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType"); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("Title"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId"); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Blue"); - - b.Property("Green"); - - b.Property("Name"); - - b.Property("Red"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id"); - - b.Property("Summary"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Brand"); - - b.Property("ColorId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.BaseProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("Discriminator") - .IsRequired(); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:DiscriminatorProperty", "Discriminator"); - - b.HasAnnotation("Relational:DiscriminatorValue", "BaseProduct"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.Property("UserId"); - - b.Property("NotificationId"); - - b.HasKey("UserId", "NotificationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("body") - .IsRequired(); - - b.Property("click_action") - .IsRequired(); - - b.Property("color"); - - b.Property("icon"); - - b.Property("sound"); - - b.Property("tag"); - - b.Property("title") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId"); - - b.Property("DjSettingsUserId"); - - b.Property("GeneralSettingsUserId"); - - b.Property("Rate"); - - b.Property("TendencyId"); - - b.HasKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId"); - - b.Property("SoundCloudId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId"); - - b.Property("UserId"); - - b.HasKey("InstrumentId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId"); - - b.Property("CircleId"); - - b.HasKey("MemberId", "CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.LocationType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("ActorDenomination"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("SettingsClassName"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.BookQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationTypeId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Action"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FormationSettingsUserId"); - - b.Property("PerformerId"); - - b.Property("WorkingForId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients"); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("DoesCode", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.HasBaseType("Yavsc.Models.Market.BaseProduct"); - - b.Property("Depth"); - - b.Property("Height"); - - b.Property("Price"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasAnnotation("Relational:DiscriminatorValue", "Product"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("BlogPostId"); - - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Market.BaseProduct") - .WithMany() - .HasForeignKey("ArticleId"); - - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Workflow.BookQuery") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color") - .WithMany() - .HasForeignKey("ColorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("BillingAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.HasOne("Yavsc.Models.Messaging.Notification") - .WithMany() - .HasForeignKey("NotificationId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings") - .WithMany() - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings") - .WithMany() - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostTag", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.BookQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Relationship.LocationType") - .WithMany() - .HasForeignKey("LocationTypeId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings") - .WithMany() - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("WorkingForId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170220125518_dimissclick.cs b/src/Yavsc.Server/Migrations/2017/20170220125518_dimissclick.cs deleted file mode 100644 index 6b47b45b..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170220125518_dimissclick.cs +++ /dev/null @@ -1,458 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class dimissclick : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_Activity_ActivityCode", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.CreateTable( - name: "DimissClicked", - columns: table => new - { - UserId = table.Column(nullable: false), - NotificationId = table.Column(nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_DimissClicked", x => new { x.UserId, x.NotificationId }); - table.ForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - column: x => x.NotificationId, - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - table.ForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - column: x => x.UserId, - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_Activity_ActivityCode", - table: "BookQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_Activity_ActivityCode", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropTable("DimissClicked"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_Activity_ActivityCode", - table: "BookQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170220144141_hiddenActivity.Designer.cs b/src/Yavsc.Server/Migrations/2017/20170220144141_hiddenActivity.Designer.cs deleted file mode 100644 index 28d4656b..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170220144141_hiddenActivity.Designer.cs +++ /dev/null @@ -1,1197 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20170220144141_hiddenActivity")] - partial class hiddenActivity - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId"); - - b.Property("BlogPostId"); - - b.HasKey("CircleId", "BlogPostId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("Avatar") - .IsRequired() - .HasAnnotation("MaxLength", 512) - .HasAnnotation("Relational:DefaultValue", "/images/Users/icon_user.png") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("DiskQuota") - .HasAnnotation("Relational:DefaultValue", "524288000") - .HasAnnotation("Relational:DefaultValueType", "System.Int64"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ArticleId"); - - b.Property("Count"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType"); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("Title"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId"); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Blue"); - - b.Property("Green"); - - b.Property("Name"); - - b.Property("Red"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id"); - - b.Property("Summary"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Brand"); - - b.Property("ColorId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.BaseProduct", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("Discriminator") - .IsRequired(); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:DiscriminatorProperty", "Discriminator"); - - b.HasAnnotation("Relational:DiscriminatorValue", "BaseProduct"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.Property("UserId"); - - b.Property("NotificationId"); - - b.HasKey("UserId", "NotificationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("body") - .IsRequired(); - - b.Property("click_action") - .IsRequired(); - - b.Property("color"); - - b.Property("icon"); - - b.Property("sound"); - - b.Property("tag"); - - b.Property("title") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId"); - - b.Property("DjSettingsUserId"); - - b.Property("GeneralSettingsUserId"); - - b.Property("Rate"); - - b.Property("TendencyId"); - - b.HasKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId"); - - b.Property("SoundCloudId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId"); - - b.Property("UserId"); - - b.HasKey("InstrumentId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId"); - - b.Property("CircleId"); - - b.HasKey("MemberId", "CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.LocationType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("ActorDenomination"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("Hidden"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("SettingsClassName"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.BookQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationTypeId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Action"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FormationSettingsUserId"); - - b.Property("PerformerId"); - - b.Property("WorkingForId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients"); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("DoesCode", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.HasBaseType("Yavsc.Models.Market.BaseProduct"); - - b.Property("Depth"); - - b.Property("Height"); - - b.Property("Price"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasAnnotation("Relational:DiscriminatorValue", "Product"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("BlogPostId"); - - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Market.BaseProduct") - .WithMany() - .HasForeignKey("ArticleId"); - - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Workflow.BookQuery") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color") - .WithMany() - .HasForeignKey("ColorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("BillingAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.HasOne("Yavsc.Models.Messaging.Notification") - .WithMany() - .HasForeignKey("NotificationId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings") - .WithMany() - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings") - .WithMany() - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostTag", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.BookQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Relationship.LocationType") - .WithMany() - .HasForeignKey("LocationTypeId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings") - .WithMany() - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("WorkingForId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170220144141_hiddenActivity.cs b/src/Yavsc.Server/Migrations/2017/20170220144141_hiddenActivity.cs deleted file mode 100644 index 007e9abf..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170220144141_hiddenActivity.cs +++ /dev/null @@ -1,472 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class hiddenActivity : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_Activity_ActivityCode", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.AddColumn( - name: "Hidden", - table: "Activity", - nullable: false, - defaultValue: false); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_Activity_ActivityCode", - table: "BookQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_Activity_ActivityCode", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_ApplicationUser_ClientId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_BookQuery_PerformerProfile_PerformerId", table: "BookQuery"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropColumn(name: "Hidden", table: "Activity"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_Activity_ActivityCode", - table: "BookQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - table: "BookQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - table: "BookQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170227151759_hairPrestations.Designer.cs b/src/Yavsc.Server/Migrations/2017/20170227151759_hairPrestations.Designer.cs deleted file mode 100644 index ea51e259..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170227151759_hairPrestations.Designer.cs +++ /dev/null @@ -1,1328 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20170227151759_hairPrestations")] - partial class hairPrestations - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId"); - - b.Property("BlogPostId"); - - b.HasKey("CircleId", "BlogPostId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("Avatar") - .IsRequired() - .HasAnnotation("MaxLength", 512) - .HasAnnotation("Relational:DefaultValue", "/images/Users/icon_user.png") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("DiskQuota") - .HasAnnotation("Relational:DefaultValue", "524288000") - .HasAnnotation("Relational:DefaultValueType", "System.Int64"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Count"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType"); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("Title"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId"); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Blue"); - - b.Property("Green"); - - b.Property("Name"); - - b.Property("Red"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id"); - - b.Property("Summary"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("PrestationId"); - - b.Property("Previsional"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Cares"); - - b.Property("Cut"); - - b.Property("Dressing"); - - b.Property("Gender"); - - b.Property("HairMultiCutQueryId"); - - b.Property("Length"); - - b.Property("Shampoo"); - - b.Property("Tech"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Brand"); - - b.Property("ColorId"); - - b.Property("HairPrestationId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Depth"); - - b.Property("Description"); - - b.Property("Height"); - - b.Property("Name"); - - b.Property("Price"); - - b.Property("Public"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.Property("UserId"); - - b.Property("NotificationId"); - - b.HasKey("UserId", "NotificationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("body") - .IsRequired(); - - b.Property("click_action") - .IsRequired(); - - b.Property("color"); - - b.Property("icon"); - - b.Property("sound"); - - b.Property("tag"); - - b.Property("title") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId"); - - b.Property("DjSettingsUserId"); - - b.Property("GeneralSettingsUserId"); - - b.Property("Rate"); - - b.Property("TendencyId"); - - b.HasKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId"); - - b.Property("SoundCloudId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId"); - - b.Property("UserId"); - - b.HasKey("InstrumentId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId"); - - b.Property("CircleId"); - - b.HasKey("MemberId", "CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.LocationType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("ActorDenomination"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("Hidden"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("SettingsClassName"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Action"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FormationSettingsUserId"); - - b.Property("PerformerId"); - - b.Property("WorkingForId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients"); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationTypeId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("DoesCode", "UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("BlogPostId"); - - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery") - .WithMany() - .HasForeignKey("HairMultiCutQueryId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color") - .WithMany() - .HasForeignKey("ColorId"); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("HairPrestationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("BillingAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.HasOne("Yavsc.Models.Messaging.Notification") - .WithMany() - .HasForeignKey("NotificationId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings") - .WithMany() - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings") - .WithMany() - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostTag", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings") - .WithMany() - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("WorkingForId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Relationship.LocationType") - .WithMany() - .HasForeignKey("LocationTypeId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170227151759_hairPrestations.cs b/src/Yavsc.Server/Migrations/2017/20170227151759_hairPrestations.cs deleted file mode 100644 index 02886c42..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170227151759_hairPrestations.cs +++ /dev/null @@ -1,746 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class hairPrestations : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_BaseProduct_ArticleId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_BookQuery_CommandId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropColumn(name: "ArticleId", table: "CommandLine"); - migrationBuilder.DropTable("BaseProduct"); - migrationBuilder.DropTable("BookQuery"); - // les id de requete existant venaient d'une table nomée "BookQuery" - // qui n'existe plus. - migrationBuilder.Sql("DELETE FROM \"Estimate\""); - migrationBuilder.Sql("DELETE FROM \"CommandLine\""); - migrationBuilder.CreateTable( - name: "HairMultiCutQuery", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("Npgsql:Serial", true), - ActivityCode = table.Column(nullable: false), - ClientId = table.Column(nullable: false), - DateCreated = table.Column(nullable: false), - DateModified = table.Column(nullable: false), - EventDate = table.Column(nullable: false), - LocationId = table.Column(nullable: true), - PerformerId = table.Column(nullable: false), - Previsional = table.Column(nullable: true), - Status = table.Column(nullable: false), - UserCreated = table.Column(nullable: true), - UserModified = table.Column(nullable: true), - ValidationDate = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_HairMultiCutQuery", x => x.Id); - table.ForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - column: x => x.ActivityCode, - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - table.ForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - column: x => x.ClientId, - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - table.ForeignKey( - name: "FK_HairMultiCutQuery_Location_LocationId", - column: x => x.LocationId, - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - table.ForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - column: x => x.PerformerId, - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - }); - migrationBuilder.CreateTable( - name: "Product", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("Npgsql:Serial", true), - Depth = table.Column(nullable: false), - Description = table.Column(nullable: true), - Height = table.Column(nullable: false), - Name = table.Column(nullable: true), - Price = table.Column(nullable: true), - Public = table.Column(nullable: false), - Weight = table.Column(nullable: false), - Width = table.Column(nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Product", x => x.Id); - }); - migrationBuilder.CreateTable( - name: "RdvQuery", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("Npgsql:Serial", true), - ActivityCode = table.Column(nullable: false), - ClientId = table.Column(nullable: false), - DateCreated = table.Column(nullable: false), - DateModified = table.Column(nullable: false), - EventDate = table.Column(nullable: false), - LocationId = table.Column(nullable: true), - LocationTypeId = table.Column(nullable: true), - PerformerId = table.Column(nullable: false), - Previsional = table.Column(nullable: true), - Reason = table.Column(nullable: true), - Status = table.Column(nullable: false), - UserCreated = table.Column(nullable: true), - UserModified = table.Column(nullable: true), - ValidationDate = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_RdvQuery", x => x.Id); - table.ForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - column: x => x.ActivityCode, - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - table.ForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - column: x => x.ClientId, - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - table.ForeignKey( - name: "FK_RdvQuery_Location_LocationId", - column: x => x.LocationId, - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - table.ForeignKey( - name: "FK_RdvQuery_LocationType_LocationTypeId", - column: x => x.LocationTypeId, - principalTable: "LocationType", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - table.ForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - column: x => x.PerformerId, - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - }); - migrationBuilder.CreateTable( - name: "HairPrestation", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("Npgsql:Serial", true), - Cares = table.Column(nullable: false), - Cut = table.Column(nullable: false), - Dressing = table.Column(nullable: false), - Gender = table.Column(nullable: false), - HairMultiCutQueryId = table.Column(nullable: true), - Length = table.Column(nullable: false), - Shampoo = table.Column(nullable: false), - Tech = table.Column(nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_HairPrestation", x => x.Id); - table.ForeignKey( - name: "FK_HairPrestation_HairMultiCutQuery_HairMultiCutQueryId", - column: x => x.HairMultiCutQueryId, - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - }); - migrationBuilder.CreateTable( - name: "HairCutQuery", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("Npgsql:Serial", true), - ActivityCode = table.Column(nullable: false), - ClientId = table.Column(nullable: false), - DateCreated = table.Column(nullable: false), - DateModified = table.Column(nullable: false), - EventDate = table.Column(nullable: false), - LocationId = table.Column(nullable: true), - PerformerId = table.Column(nullable: false), - PrestationId = table.Column(nullable: true), - Previsional = table.Column(nullable: true), - Status = table.Column(nullable: false), - UserCreated = table.Column(nullable: true), - UserModified = table.Column(nullable: true), - ValidationDate = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_HairCutQuery", x => x.Id); - table.ForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - column: x => x.ActivityCode, - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - table.ForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - column: x => x.ClientId, - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - table.ForeignKey( - name: "FK_HairCutQuery_Location_LocationId", - column: x => x.LocationId, - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - table.ForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - column: x => x.PerformerId, - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - table.ForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - column: x => x.PrestationId, - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - }); - migrationBuilder.AddColumn( - name: "HairPrestationId", - table: "HairTaint", - nullable: true); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_RdvQuery_CommandId", - table: "Estimate", - column: "CommandId", - principalTable: "RdvQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_HairPrestation_HairPrestationId", - table: "HairTaint", - column: "HairPrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_RdvQuery_CommandId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_HairPrestation_HairPrestationId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropColumn(name: "HairPrestationId", table: "HairTaint"); - migrationBuilder.DropTable("HairCutQuery"); - migrationBuilder.DropTable("Product"); - migrationBuilder.DropTable("RdvQuery"); - migrationBuilder.DropTable("HairPrestation"); - migrationBuilder.DropTable("HairMultiCutQuery"); - migrationBuilder.CreateTable( - name: "BaseProduct", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("Npgsql:Serial", true), - Description = table.Column(nullable: true), - Discriminator = table.Column(nullable: false), - Name = table.Column(nullable: true), - Public = table.Column(nullable: false), - Depth = table.Column(nullable: true), - Height = table.Column(nullable: true), - Price = table.Column(nullable: true), - Weight = table.Column(nullable: true), - Width = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_BaseProduct", x => x.Id); - }); - migrationBuilder.CreateTable( - name: "BookQuery", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("Npgsql:Serial", true), - ActivityCode = table.Column(nullable: false), - ClientId = table.Column(nullable: false), - DateCreated = table.Column(nullable: false), - DateModified = table.Column(nullable: false), - EventDate = table.Column(nullable: false), - LocationId = table.Column(nullable: true), - LocationTypeId = table.Column(nullable: true), - PerformerId = table.Column(nullable: false), - Previsional = table.Column(nullable: true), - Reason = table.Column(nullable: true), - Status = table.Column(nullable: false), - UserCreated = table.Column(nullable: true), - UserModified = table.Column(nullable: true), - ValidationDate = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_BookQuery", x => x.Id); - table.ForeignKey( - name: "FK_BookQuery_Activity_ActivityCode", - column: x => x.ActivityCode, - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - table.ForeignKey( - name: "FK_BookQuery_ApplicationUser_ClientId", - column: x => x.ClientId, - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - table.ForeignKey( - name: "FK_BookQuery_Location_LocationId", - column: x => x.LocationId, - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - table.ForeignKey( - name: "FK_BookQuery_LocationType_LocationTypeId", - column: x => x.LocationTypeId, - principalTable: "LocationType", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - table.ForeignKey( - name: "FK_BookQuery_PerformerProfile_PerformerId", - column: x => x.PerformerId, - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - }); - migrationBuilder.AddColumn( - name: "ArticleId", - table: "CommandLine", - nullable: true); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_BaseProduct_ArticleId", - table: "CommandLine", - column: "ArticleId", - principalTable: "BaseProduct", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_BookQuery_CommandId", - table: "Estimate", - column: "CommandId", - principalTable: "BookQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170228115359_brusherProfile.Designer.cs b/src/Yavsc.Server/Migrations/2017/20170228115359_brusherProfile.Designer.cs deleted file mode 100644 index 4108145a..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170228115359_brusherProfile.Designer.cs +++ /dev/null @@ -1,1395 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20170228115359_brusherProfile")] - partial class brusherProfile - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId"); - - b.Property("BlogPostId"); - - b.HasKey("CircleId", "BlogPostId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("Avatar") - .IsRequired() - .HasAnnotation("MaxLength", 512) - .HasAnnotation("Relational:DefaultValue", "/images/Users/icon_user.png") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("DiskQuota") - .HasAnnotation("Relational:DefaultValue", "524288000") - .HasAnnotation("Relational:DefaultValueType", "System.Int64"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Count"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType"); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("Title"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId"); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Blue"); - - b.Property("Green"); - - b.Property("Name"); - - b.Property("Red"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id"); - - b.Property("Summary"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId"); - - b.Property("CarePrice"); - - b.Property("EndOfTheDay"); - - b.Property("HalfBalayagePrice"); - - b.Property("HalfBrushingPrice"); - - b.Property("HalfColorPrice"); - - b.Property("HalfDefrisPrice"); - - b.Property("HalfMechPrice"); - - b.Property("HalfMultiColorPrice"); - - b.Property("HalfPermanentPrice"); - - b.Property("KidCutPrice"); - - b.Property("LongBalayagePrice"); - - b.Property("LongBrushingPrice"); - - b.Property("LongColorPrice"); - - b.Property("LongDefrisPrice"); - - b.Property("LongMechPrice"); - - b.Property("LongMultiColorPrice"); - - b.Property("LongPermanentPrice"); - - b.Property("ManCutPrice"); - - b.Property("ShampooPrice"); - - b.Property("ShortBalayagePrice"); - - b.Property("ShortBrushingPrice"); - - b.Property("ShortColorPrice"); - - b.Property("ShortDefrisPrice"); - - b.Property("ShortMechPrice"); - - b.Property("ShortMultiColorPrice"); - - b.Property("ShortPermanentPrice"); - - b.Property("StartOfTheDay"); - - b.Property("WomenHalfCutPrice"); - - b.Property("WomenLongCutPrice"); - - b.Property("WomenShortCutPrice"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("PrestationId"); - - b.Property("Previsional"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Cares"); - - b.Property("Cut"); - - b.Property("Dressing"); - - b.Property("Gender"); - - b.Property("HairMultiCutQueryId"); - - b.Property("Length"); - - b.Property("Shampoo"); - - b.Property("Tech"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Brand"); - - b.Property("ColorId"); - - b.Property("HairPrestationId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Depth"); - - b.Property("Description"); - - b.Property("Height"); - - b.Property("Name"); - - b.Property("Price"); - - b.Property("Public"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.Property("UserId"); - - b.Property("NotificationId"); - - b.HasKey("UserId", "NotificationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("body") - .IsRequired(); - - b.Property("click_action") - .IsRequired(); - - b.Property("color"); - - b.Property("icon"); - - b.Property("sound"); - - b.Property("tag"); - - b.Property("title") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId"); - - b.Property("DjSettingsUserId"); - - b.Property("GeneralSettingsUserId"); - - b.Property("Rate"); - - b.Property("TendencyId"); - - b.HasKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId"); - - b.Property("SoundCloudId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId"); - - b.Property("UserId"); - - b.HasKey("InstrumentId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId"); - - b.Property("CircleId"); - - b.HasKey("MemberId", "CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.LocationType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("ActorDenomination"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("Hidden"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("SettingsClassName"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Action"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FormationSettingsUserId"); - - b.Property("PerformerId"); - - b.Property("WorkingForId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients"); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationTypeId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("DoesCode", "UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("BlogPostId"); - - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery") - .WithMany() - .HasForeignKey("HairMultiCutQueryId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color") - .WithMany() - .HasForeignKey("ColorId"); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("HairPrestationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("BillingAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.HasOne("Yavsc.Models.Messaging.Notification") - .WithMany() - .HasForeignKey("NotificationId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings") - .WithMany() - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings") - .WithMany() - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostTag", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings") - .WithMany() - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("WorkingForId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Relationship.LocationType") - .WithMany() - .HasForeignKey("LocationTypeId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170228115359_brusherProfile.cs b/src/Yavsc.Server/Migrations/2017/20170228115359_brusherProfile.cs deleted file mode 100644 index 1229669f..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170228115359_brusherProfile.cs +++ /dev/null @@ -1,603 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class brusherProfile : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.CreateTable( - name: "BrusherProfile", - columns: table => new - { - UserId = table.Column(nullable: false), - CarePrice = table.Column(nullable: false), - EndOfTheDay = table.Column(nullable: false), - HalfBalayagePrice = table.Column(nullable: false), - HalfBrushingPrice = table.Column(nullable: false), - HalfColorPrice = table.Column(nullable: false), - HalfDefrisPrice = table.Column(nullable: false), - HalfMechPrice = table.Column(nullable: false), - HalfMultiColorPrice = table.Column(nullable: false), - HalfPermanentPrice = table.Column(nullable: false), - KidCutPrice = table.Column(nullable: false), - LongBalayagePrice = table.Column(nullable: false), - LongBrushingPrice = table.Column(nullable: false), - LongColorPrice = table.Column(nullable: false), - LongDefrisPrice = table.Column(nullable: false), - LongMechPrice = table.Column(nullable: false), - LongMultiColorPrice = table.Column(nullable: false), - LongPermanentPrice = table.Column(nullable: false), - ManCutPrice = table.Column(nullable: false), - ShampooPrice = table.Column(nullable: false), - ShortBalayagePrice = table.Column(nullable: false), - ShortBrushingPrice = table.Column(nullable: false), - ShortColorPrice = table.Column(nullable: false), - ShortDefrisPrice = table.Column(nullable: false), - ShortMechPrice = table.Column(nullable: false), - ShortMultiColorPrice = table.Column(nullable: false), - ShortPermanentPrice = table.Column(nullable: false), - StartOfTheDay = table.Column(nullable: false), - WomenHalfCutPrice = table.Column(nullable: false), - WomenLongCutPrice = table.Column(nullable: false), - WomenShortCutPrice = table.Column(nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_BrusherProfile", x => x.UserId); - }); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropTable("BrusherProfile"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170228145057_actionName.Designer.cs b/src/Yavsc.Server/Migrations/2017/20170228145057_actionName.Designer.cs deleted file mode 100644 index 50e54d88..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170228145057_actionName.Designer.cs +++ /dev/null @@ -1,1395 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20170228145057_actionName")] - partial class actionName - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId"); - - b.Property("BlogPostId"); - - b.HasKey("CircleId", "BlogPostId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("Avatar") - .IsRequired() - .HasAnnotation("MaxLength", 512) - .HasAnnotation("Relational:DefaultValue", "/images/Users/icon_user.png") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("DiskQuota") - .HasAnnotation("Relational:DefaultValue", "524288000") - .HasAnnotation("Relational:DefaultValueType", "System.Int64"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Count"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType"); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("Title"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId"); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Blue"); - - b.Property("Green"); - - b.Property("Name"); - - b.Property("Red"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id"); - - b.Property("Summary"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId"); - - b.Property("CarePrice"); - - b.Property("EndOfTheDay"); - - b.Property("HalfBalayagePrice"); - - b.Property("HalfBrushingPrice"); - - b.Property("HalfColorPrice"); - - b.Property("HalfDefrisPrice"); - - b.Property("HalfMechPrice"); - - b.Property("HalfMultiColorPrice"); - - b.Property("HalfPermanentPrice"); - - b.Property("KidCutPrice"); - - b.Property("LongBalayagePrice"); - - b.Property("LongBrushingPrice"); - - b.Property("LongColorPrice"); - - b.Property("LongDefrisPrice"); - - b.Property("LongMechPrice"); - - b.Property("LongMultiColorPrice"); - - b.Property("LongPermanentPrice"); - - b.Property("ManCutPrice"); - - b.Property("ShampooPrice"); - - b.Property("ShortBalayagePrice"); - - b.Property("ShortBrushingPrice"); - - b.Property("ShortColorPrice"); - - b.Property("ShortDefrisPrice"); - - b.Property("ShortMechPrice"); - - b.Property("ShortMultiColorPrice"); - - b.Property("ShortPermanentPrice"); - - b.Property("StartOfTheDay"); - - b.Property("WomenHalfCutPrice"); - - b.Property("WomenLongCutPrice"); - - b.Property("WomenShortCutPrice"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("PrestationId"); - - b.Property("Previsional"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Cares"); - - b.Property("Cut"); - - b.Property("Dressing"); - - b.Property("Gender"); - - b.Property("HairMultiCutQueryId"); - - b.Property("Length"); - - b.Property("Shampoo"); - - b.Property("Tech"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Brand"); - - b.Property("ColorId"); - - b.Property("HairPrestationId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Depth"); - - b.Property("Description"); - - b.Property("Height"); - - b.Property("Name"); - - b.Property("Price"); - - b.Property("Public"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.Property("UserId"); - - b.Property("NotificationId"); - - b.HasKey("UserId", "NotificationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("body") - .IsRequired(); - - b.Property("click_action") - .IsRequired(); - - b.Property("color"); - - b.Property("icon"); - - b.Property("sound"); - - b.Property("tag"); - - b.Property("title") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId"); - - b.Property("DjSettingsUserId"); - - b.Property("GeneralSettingsUserId"); - - b.Property("Rate"); - - b.Property("TendencyId"); - - b.HasKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId"); - - b.Property("SoundCloudId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId"); - - b.Property("UserId"); - - b.HasKey("InstrumentId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId"); - - b.Property("CircleId"); - - b.HasKey("MemberId", "CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.LocationType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("ActorDenomination"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("Hidden"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("SettingsClassName"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActionName"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FormationSettingsUserId"); - - b.Property("PerformerId"); - - b.Property("WorkingForId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients"); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationTypeId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("DoesCode", "UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("BlogPostId"); - - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery") - .WithMany() - .HasForeignKey("HairMultiCutQueryId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color") - .WithMany() - .HasForeignKey("ColorId"); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("HairPrestationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("BillingAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.HasOne("Yavsc.Models.Messaging.Notification") - .WithMany() - .HasForeignKey("NotificationId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings") - .WithMany() - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings") - .WithMany() - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostTag", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings") - .WithMany() - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("WorkingForId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Relationship.LocationType") - .WithMany() - .HasForeignKey("LocationTypeId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170228145057_actionName.cs b/src/Yavsc.Server/Migrations/2017/20170228145057_actionName.cs deleted file mode 100644 index 3a8cab8f..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170228145057_actionName.cs +++ /dev/null @@ -1,572 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class actionName : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropColumn(name: "Action", table: "CommandForm"); - migrationBuilder.AddColumn( - name: "ActionName", - table: "CommandForm", - nullable: true); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropColumn(name: "ActionName", table: "CommandForm"); - migrationBuilder.AddColumn( - name: "Action", - table: "CommandForm", - nullable: true); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170301124608_brusherActiondistance.Designer.cs b/src/Yavsc.Server/Migrations/2017/20170301124608_brusherActiondistance.Designer.cs deleted file mode 100644 index bb4ef351..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170301124608_brusherActiondistance.Designer.cs +++ /dev/null @@ -1,1398 +0,0 @@ -using System; - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20170301124608_brusherActiondistance")] - partial class brusherActiondistance - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId"); - - b.Property("BlogPostId"); - - b.HasKey("CircleId", "BlogPostId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("Avatar") - .IsRequired() - .HasAnnotation("MaxLength", 512) - .HasAnnotation("Relational:DefaultValue", "/images/Users/icon_user.png") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("DiskQuota") - .HasAnnotation("Relational:DefaultValue", "524288000") - .HasAnnotation("Relational:DefaultValueType", "System.Int64"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Count"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType"); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("Title"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId"); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Blue"); - - b.Property("Green"); - - b.Property("Name"); - - b.Property("Red"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id"); - - b.Property("Summary"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId"); - - b.Property("ActionDistance"); - - b.Property("CarePrice"); - - b.Property("EndOfTheDay"); - - b.Property("HalfBalayagePrice"); - - b.Property("HalfBrushingPrice"); - - b.Property("HalfColorPrice"); - - b.Property("HalfDefrisPrice"); - - b.Property("HalfMechPrice"); - - b.Property("HalfMultiColorPrice"); - - b.Property("HalfPermanentPrice"); - - b.Property("KidCutPrice"); - - b.Property("LongBalayagePrice"); - - b.Property("LongBrushingPrice"); - - b.Property("LongColorPrice"); - - b.Property("LongDefrisPrice"); - - b.Property("LongMechPrice"); - - b.Property("LongMultiColorPrice"); - - b.Property("LongPermanentPrice"); - - b.Property("ManCutPrice"); - - b.Property("ShampooPrice"); - - b.Property("ShortBalayagePrice"); - - b.Property("ShortBrushingPrice"); - - b.Property("ShortColorPrice"); - - b.Property("ShortDefrisPrice"); - - b.Property("ShortMechPrice"); - - b.Property("ShortMultiColorPrice"); - - b.Property("ShortPermanentPrice"); - - b.Property("StartOfTheDay"); - - b.Property("WomenHalfCutPrice"); - - b.Property("WomenLongCutPrice"); - - b.Property("WomenShortCutPrice"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("PrestationId"); - - b.Property("Previsional"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Cares"); - - b.Property("Cut"); - - b.Property("Dressing"); - - b.Property("Gender"); - - b.Property("HairMultiCutQueryId"); - - b.Property("Length"); - - b.Property("Shampoo"); - - b.Property("Tech"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Brand"); - - b.Property("ColorId"); - - b.Property("HairPrestationId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Depth"); - - b.Property("Description"); - - b.Property("Height"); - - b.Property("Name"); - - b.Property("Price"); - - b.Property("Public"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.Property("UserId"); - - b.Property("NotificationId"); - - b.HasKey("UserId", "NotificationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("body") - .IsRequired(); - - b.Property("click_action") - .IsRequired(); - - b.Property("color"); - - b.Property("icon"); - - b.Property("sound"); - - b.Property("tag"); - - b.Property("title") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId"); - - b.Property("DjSettingsUserId"); - - b.Property("GeneralSettingsUserId"); - - b.Property("Rate"); - - b.Property("TendencyId"); - - b.HasKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId"); - - b.Property("SoundCloudId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId"); - - b.Property("UserId"); - - b.HasKey("InstrumentId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId"); - - b.Property("CircleId"); - - b.HasKey("MemberId", "CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.LocationType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("ActorDenomination"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("Hidden"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("SettingsClassName"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActionName"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FormationSettingsUserId"); - - b.Property("PerformerId"); - - b.Property("WorkingForId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients"); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationTypeId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("DoesCode", "UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("BlogPostId"); - - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery") - .WithMany() - .HasForeignKey("HairMultiCutQueryId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color") - .WithMany() - .HasForeignKey("ColorId"); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("HairPrestationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("BillingAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.HasOne("Yavsc.Models.Messaging.Notification") - .WithMany() - .HasForeignKey("NotificationId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings") - .WithMany() - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings") - .WithMany() - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostTag", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings") - .WithMany() - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("WorkingForId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Relationship.LocationType") - .WithMany() - .HasForeignKey("LocationTypeId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170301124608_brusherActiondistance.cs b/src/Yavsc.Server/Migrations/2017/20170301124608_brusherActiondistance.cs deleted file mode 100644 index 5b2d0191..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170301124608_brusherActiondistance.cs +++ /dev/null @@ -1,568 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class brusherActiondistance : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.AddColumn( - name: "ActionDistance", - table: "BrusherProfile", - nullable: false, - defaultValue: 0); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropColumn(name: "ActionDistance", table: "BrusherProfile"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170301132531_manbrushing.Designer.cs b/src/Yavsc.Server/Migrations/2017/20170301132531_manbrushing.Designer.cs deleted file mode 100644 index 2c7b1b20..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170301132531_manbrushing.Designer.cs +++ /dev/null @@ -1,1399 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20170301132531_manbrushing")] - partial class manbrushing - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId"); - - b.Property("BlogPostId"); - - b.HasKey("CircleId", "BlogPostId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("Avatar") - .IsRequired() - .HasAnnotation("MaxLength", 512) - .HasAnnotation("Relational:DefaultValue", "/images/Users/icon_user.png") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("DiskQuota") - .HasAnnotation("Relational:DefaultValue", "524288000") - .HasAnnotation("Relational:DefaultValueType", "System.Int64"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Count"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType"); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("Title"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId"); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Blue"); - - b.Property("Green"); - - b.Property("Name"); - - b.Property("Red"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id"); - - b.Property("Summary"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId"); - - b.Property("ActionDistance"); - - b.Property("CarePrice"); - - b.Property("EndOfTheDay"); - - b.Property("HalfBalayagePrice"); - - b.Property("HalfBrushingPrice"); - - b.Property("HalfColorPrice"); - - b.Property("HalfDefrisPrice"); - - b.Property("HalfMechPrice"); - - b.Property("HalfMultiColorPrice"); - - b.Property("HalfPermanentPrice"); - - b.Property("KidCutPrice"); - - b.Property("LongBalayagePrice"); - - b.Property("LongBrushingPrice"); - - b.Property("LongColorPrice"); - - b.Property("LongDefrisPrice"); - - b.Property("LongMechPrice"); - - b.Property("LongMultiColorPrice"); - - b.Property("LongPermanentPrice"); - - b.Property("ManBrushPrice"); - - b.Property("ManCutPrice"); - - b.Property("ShampooPrice"); - - b.Property("ShortBalayagePrice"); - - b.Property("ShortBrushingPrice"); - - b.Property("ShortColorPrice"); - - b.Property("ShortDefrisPrice"); - - b.Property("ShortMechPrice"); - - b.Property("ShortMultiColorPrice"); - - b.Property("ShortPermanentPrice"); - - b.Property("StartOfTheDay"); - - b.Property("WomenHalfCutPrice"); - - b.Property("WomenLongCutPrice"); - - b.Property("WomenShortCutPrice"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("PrestationId"); - - b.Property("Previsional"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Cares"); - - b.Property("Cut"); - - b.Property("Dressing"); - - b.Property("Gender"); - - b.Property("HairMultiCutQueryId"); - - b.Property("Length"); - - b.Property("Shampoo"); - - b.Property("Tech"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Brand"); - - b.Property("ColorId"); - - b.Property("HairPrestationId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Depth"); - - b.Property("Description"); - - b.Property("Height"); - - b.Property("Name"); - - b.Property("Price"); - - b.Property("Public"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.Property("UserId"); - - b.Property("NotificationId"); - - b.HasKey("UserId", "NotificationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("body") - .IsRequired(); - - b.Property("click_action") - .IsRequired(); - - b.Property("color"); - - b.Property("icon"); - - b.Property("sound"); - - b.Property("tag"); - - b.Property("title") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId"); - - b.Property("DjSettingsUserId"); - - b.Property("GeneralSettingsUserId"); - - b.Property("Rate"); - - b.Property("TendencyId"); - - b.HasKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId"); - - b.Property("SoundCloudId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId"); - - b.Property("UserId"); - - b.HasKey("InstrumentId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId"); - - b.Property("CircleId"); - - b.HasKey("MemberId", "CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.LocationType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("ActorDenomination"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("Hidden"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("SettingsClassName"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActionName"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FormationSettingsUserId"); - - b.Property("PerformerId"); - - b.Property("WorkingForId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients"); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationTypeId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("DoesCode", "UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("BlogPostId"); - - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery") - .WithMany() - .HasForeignKey("HairMultiCutQueryId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color") - .WithMany() - .HasForeignKey("ColorId"); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("HairPrestationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("BillingAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.HasOne("Yavsc.Models.Messaging.Notification") - .WithMany() - .HasForeignKey("NotificationId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings") - .WithMany() - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings") - .WithMany() - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostTag", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings") - .WithMany() - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("WorkingForId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Relationship.LocationType") - .WithMany() - .HasForeignKey("LocationTypeId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170301132531_manbrushing.cs b/src/Yavsc.Server/Migrations/2017/20170301132531_manbrushing.cs deleted file mode 100644 index aba7fd56..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170301132531_manbrushing.cs +++ /dev/null @@ -1,567 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -namespace Yavsc.Migrations -{ - public partial class manbrushing : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.AddColumn( - name: "ManBrushPrice", - table: "BrusherProfile", - nullable: false, - defaultValue: 0m); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropColumn(name: "ManBrushPrice", table: "BrusherProfile"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170301211317_folding.Designer.cs b/src/Yavsc.Server/Migrations/2017/20170301211317_folding.Designer.cs deleted file mode 100644 index f859e684..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170301211317_folding.Designer.cs +++ /dev/null @@ -1,1405 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20170301211317_folding")] - partial class folding - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId"); - - b.Property("BlogPostId"); - - b.HasKey("CircleId", "BlogPostId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("Avatar") - .IsRequired() - .HasAnnotation("MaxLength", 512) - .HasAnnotation("Relational:DefaultValue", "/images/Users/icon_user.png") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("DiskQuota") - .HasAnnotation("Relational:DefaultValue", "524288000") - .HasAnnotation("Relational:DefaultValueType", "System.Int64"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Count"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType"); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("Title"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId"); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Blue"); - - b.Property("Green"); - - b.Property("Name"); - - b.Property("Red"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id"); - - b.Property("Summary"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId"); - - b.Property("ActionDistance"); - - b.Property("CarePrice"); - - b.Property("EndOfTheDay"); - - b.Property("HalfBalayagePrice"); - - b.Property("HalfBrushingPrice"); - - b.Property("HalfColorPrice"); - - b.Property("HalfDefrisPrice"); - - b.Property("HalfFoldingPrice"); - - b.Property("HalfMechPrice"); - - b.Property("HalfMultiColorPrice"); - - b.Property("HalfPermanentPrice"); - - b.Property("KidCutPrice"); - - b.Property("LongBalayagePrice"); - - b.Property("LongBrushingPrice"); - - b.Property("LongColorPrice"); - - b.Property("LongDefrisPrice"); - - b.Property("LongFoldingPrice"); - - b.Property("LongMechPrice"); - - b.Property("LongMultiColorPrice"); - - b.Property("LongPermanentPrice"); - - b.Property("ManBrushPrice"); - - b.Property("ManCutPrice"); - - b.Property("ShampooPrice"); - - b.Property("ShortBalayagePrice"); - - b.Property("ShortBrushingPrice"); - - b.Property("ShortColorPrice"); - - b.Property("ShortDefrisPrice"); - - b.Property("ShortFoldingPrice"); - - b.Property("ShortMechPrice"); - - b.Property("ShortMultiColorPrice"); - - b.Property("ShortPermanentPrice"); - - b.Property("StartOfTheDay"); - - b.Property("WomenHalfCutPrice"); - - b.Property("WomenLongCutPrice"); - - b.Property("WomenShortCutPrice"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("PrestationId"); - - b.Property("Previsional"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Cares"); - - b.Property("Cut"); - - b.Property("Dressing"); - - b.Property("Gender"); - - b.Property("HairMultiCutQueryId"); - - b.Property("Length"); - - b.Property("Shampoo"); - - b.Property("Tech"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Brand"); - - b.Property("ColorId"); - - b.Property("HairPrestationId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Depth"); - - b.Property("Description"); - - b.Property("Height"); - - b.Property("Name"); - - b.Property("Price"); - - b.Property("Public"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.Property("UserId"); - - b.Property("NotificationId"); - - b.HasKey("UserId", "NotificationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("body") - .IsRequired(); - - b.Property("click_action") - .IsRequired(); - - b.Property("color"); - - b.Property("icon"); - - b.Property("sound"); - - b.Property("tag"); - - b.Property("title") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId"); - - b.Property("DjSettingsUserId"); - - b.Property("GeneralSettingsUserId"); - - b.Property("Rate"); - - b.Property("TendencyId"); - - b.HasKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId"); - - b.Property("SoundCloudId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId"); - - b.Property("UserId"); - - b.HasKey("InstrumentId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId"); - - b.Property("CircleId"); - - b.HasKey("MemberId", "CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.LocationType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("ActorDenomination"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("Hidden"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("SettingsClassName"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActionName"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FormationSettingsUserId"); - - b.Property("PerformerId"); - - b.Property("WorkingForId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients"); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationTypeId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("DoesCode", "UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("BlogPostId"); - - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery") - .WithMany() - .HasForeignKey("HairMultiCutQueryId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color") - .WithMany() - .HasForeignKey("ColorId"); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("HairPrestationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("BillingAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.HasOne("Yavsc.Models.Messaging.Notification") - .WithMany() - .HasForeignKey("NotificationId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings") - .WithMany() - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings") - .WithMany() - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostTag", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings") - .WithMany() - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("WorkingForId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Relationship.LocationType") - .WithMany() - .HasForeignKey("LocationTypeId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170301211317_folding.cs b/src/Yavsc.Server/Migrations/2017/20170301211317_folding.cs deleted file mode 100644 index 41b836f2..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170301211317_folding.cs +++ /dev/null @@ -1,580 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class folding : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.AddColumn( - name: "HalfFoldingPrice", - table: "BrusherProfile", - nullable: false, - defaultValue: 0m); - migrationBuilder.AddColumn( - name: "LongFoldingPrice", - table: "BrusherProfile", - nullable: false, - defaultValue: 0m); - migrationBuilder.AddColumn( - name: "ShortFoldingPrice", - table: "BrusherProfile", - nullable: false, - defaultValue: 0m); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropColumn(name: "HalfFoldingPrice", table: "BrusherProfile"); - migrationBuilder.DropColumn(name: "LongFoldingPrice", table: "BrusherProfile"); - migrationBuilder.DropColumn(name: "ShortFoldingPrice", table: "BrusherProfile"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170302122929_brusherProfileDiscount.Designer.cs b/src/Yavsc.Server/Migrations/2017/20170302122929_brusherProfileDiscount.Designer.cs deleted file mode 100644 index 0d27aae3..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170302122929_brusherProfileDiscount.Designer.cs +++ /dev/null @@ -1,1408 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20170302122929_brusherProfileDiscount")] - partial class brusherProfileDiscount - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId"); - - b.Property("BlogPostId"); - - b.HasKey("CircleId", "BlogPostId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("Avatar") - .IsRequired() - .HasAnnotation("MaxLength", 512) - .HasAnnotation("Relational:DefaultValue", "/images/Users/icon_user.png") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("DiskQuota") - .HasAnnotation("Relational:DefaultValue", "524288000") - .HasAnnotation("Relational:DefaultValueType", "System.Int64"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Count"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType"); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("Title"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId"); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Blue"); - - b.Property("Green"); - - b.Property("Name"); - - b.Property("Red"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id"); - - b.Property("Summary"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId"); - - b.Property("ActionDistance"); - - b.Property("CarePrice"); - - b.Property("EndOfTheDay"); - - b.Property("FlatFeeDiscount"); - - b.Property("HalfBalayagePrice"); - - b.Property("HalfBrushingPrice"); - - b.Property("HalfColorPrice"); - - b.Property("HalfDefrisPrice"); - - b.Property("HalfFoldingPrice"); - - b.Property("HalfMechPrice"); - - b.Property("HalfMultiColorPrice"); - - b.Property("HalfPermanentPrice"); - - b.Property("KidCutPrice"); - - b.Property("LongBalayagePrice"); - - b.Property("LongBrushingPrice"); - - b.Property("LongColorPrice"); - - b.Property("LongDefrisPrice"); - - b.Property("LongFoldingPrice"); - - b.Property("LongMechPrice"); - - b.Property("LongMultiColorPrice"); - - b.Property("LongPermanentPrice"); - - b.Property("ManBrushPrice"); - - b.Property("ManCutPrice"); - - b.Property("ShampooPrice"); - - b.Property("ShortBalayagePrice"); - - b.Property("ShortBrushingPrice"); - - b.Property("ShortColorPrice"); - - b.Property("ShortDefrisPrice"); - - b.Property("ShortFoldingPrice"); - - b.Property("ShortMechPrice"); - - b.Property("ShortMultiColorPrice"); - - b.Property("ShortPermanentPrice"); - - b.Property("StartOfTheDay"); - - b.Property("WomenHalfCutPrice"); - - b.Property("WomenLongCutPrice"); - - b.Property("WomenShortCutPrice"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId") - .IsRequired(); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("PrestationId"); - - b.Property("Previsional"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Cares"); - - b.Property("Cut"); - - b.Property("Dressing"); - - b.Property("Gender"); - - b.Property("HairMultiCutQueryId"); - - b.Property("Length"); - - b.Property("Shampoo"); - - b.Property("Tech"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Brand"); - - b.Property("ColorId"); - - b.Property("HairPrestationId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Depth"); - - b.Property("Description"); - - b.Property("Height"); - - b.Property("Name"); - - b.Property("Price"); - - b.Property("Public"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.Property("UserId"); - - b.Property("NotificationId"); - - b.HasKey("UserId", "NotificationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("body") - .IsRequired(); - - b.Property("click_action") - .IsRequired(); - - b.Property("color"); - - b.Property("icon"); - - b.Property("sound"); - - b.Property("tag"); - - b.Property("title") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId"); - - b.Property("DjSettingsUserId"); - - b.Property("GeneralSettingsUserId"); - - b.Property("Rate"); - - b.Property("TendencyId"); - - b.HasKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId"); - - b.Property("SoundCloudId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId"); - - b.Property("UserId"); - - b.HasKey("InstrumentId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId"); - - b.Property("CircleId"); - - b.HasKey("MemberId", "CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.LocationType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("ActorDenomination"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("Hidden"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("SettingsClassName"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActionName"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FormationSettingsUserId"); - - b.Property("PerformerId"); - - b.Property("WorkingForId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients"); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationTypeId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("DoesCode", "UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("BlogPostId"); - - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery") - .WithMany() - .HasForeignKey("HairMultiCutQueryId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color") - .WithMany() - .HasForeignKey("ColorId"); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("HairPrestationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("BillingAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.HasOne("Yavsc.Models.Messaging.Notification") - .WithMany() - .HasForeignKey("NotificationId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings") - .WithMany() - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings") - .WithMany() - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostTag", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings") - .WithMany() - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("WorkingForId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Relationship.LocationType") - .WithMany() - .HasForeignKey("LocationTypeId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170302122929_brusherProfileDiscount.cs b/src/Yavsc.Server/Migrations/2017/20170302122929_brusherProfileDiscount.cs deleted file mode 100644 index 713c2d85..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170302122929_brusherProfileDiscount.cs +++ /dev/null @@ -1,616 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class brusherProfileDiscount : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Location_LocationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.AlterColumn( - name: "PrestationId", - table: "HairCutQuery", - nullable: false); - migrationBuilder.AlterColumn( - name: "LocationId", - table: "HairCutQuery", - nullable: false); - migrationBuilder.AddColumn( - name: "FlatFeeDiscount", - table: "BrusherProfile", - nullable: false, - defaultValue: 0m); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Location_LocationId", - table: "HairCutQuery", - column: "LocationId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Location_LocationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropColumn(name: "FlatFeeDiscount", table: "BrusherProfile"); - migrationBuilder.AlterColumn( - name: "PrestationId", - table: "HairCutQuery", - nullable: true); - migrationBuilder.AlterColumn( - name: "LocationId", - table: "HairCutQuery", - nullable: true); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Location_LocationId", - table: "HairCutQuery", - column: "LocationId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170303000800_estimateRequireCommandType.Designer.cs b/src/Yavsc.Server/Migrations/2017/20170303000800_estimateRequireCommandType.Designer.cs deleted file mode 100644 index 31c638a5..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170303000800_estimateRequireCommandType.Designer.cs +++ /dev/null @@ -1,1409 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20170303000800_estimateRequireCommandType")] - partial class estimateRequireCommandType - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId"); - - b.Property("BlogPostId"); - - b.HasKey("CircleId", "BlogPostId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("Avatar") - .IsRequired() - .HasAnnotation("MaxLength", 512) - .HasAnnotation("Relational:DefaultValue", "/images/Users/icon_user.png") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("DiskQuota") - .HasAnnotation("Relational:DefaultValue", "524288000") - .HasAnnotation("Relational:DefaultValueType", "System.Int64"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Count"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType") - .IsRequired(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("Title"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId"); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Blue"); - - b.Property("Green"); - - b.Property("Name"); - - b.Property("Red"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id"); - - b.Property("Summary"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId"); - - b.Property("ActionDistance"); - - b.Property("CarePrice"); - - b.Property("EndOfTheDay"); - - b.Property("FlatFeeDiscount"); - - b.Property("HalfBalayagePrice"); - - b.Property("HalfBrushingPrice"); - - b.Property("HalfColorPrice"); - - b.Property("HalfDefrisPrice"); - - b.Property("HalfFoldingPrice"); - - b.Property("HalfMechPrice"); - - b.Property("HalfMultiColorPrice"); - - b.Property("HalfPermanentPrice"); - - b.Property("KidCutPrice"); - - b.Property("LongBalayagePrice"); - - b.Property("LongBrushingPrice"); - - b.Property("LongColorPrice"); - - b.Property("LongDefrisPrice"); - - b.Property("LongFoldingPrice"); - - b.Property("LongMechPrice"); - - b.Property("LongMultiColorPrice"); - - b.Property("LongPermanentPrice"); - - b.Property("ManBrushPrice"); - - b.Property("ManCutPrice"); - - b.Property("ShampooPrice"); - - b.Property("ShortBalayagePrice"); - - b.Property("ShortBrushingPrice"); - - b.Property("ShortColorPrice"); - - b.Property("ShortDefrisPrice"); - - b.Property("ShortFoldingPrice"); - - b.Property("ShortMechPrice"); - - b.Property("ShortMultiColorPrice"); - - b.Property("ShortPermanentPrice"); - - b.Property("StartOfTheDay"); - - b.Property("WomenHalfCutPrice"); - - b.Property("WomenLongCutPrice"); - - b.Property("WomenShortCutPrice"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId") - .IsRequired(); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("PrestationId"); - - b.Property("Previsional"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Cares"); - - b.Property("Cut"); - - b.Property("Dressing"); - - b.Property("Gender"); - - b.Property("HairMultiCutQueryId"); - - b.Property("Length"); - - b.Property("Shampoo"); - - b.Property("Tech"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Brand"); - - b.Property("ColorId"); - - b.Property("HairPrestationId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Depth"); - - b.Property("Description"); - - b.Property("Height"); - - b.Property("Name"); - - b.Property("Price"); - - b.Property("Public"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.Property("UserId"); - - b.Property("NotificationId"); - - b.HasKey("UserId", "NotificationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("body") - .IsRequired(); - - b.Property("click_action") - .IsRequired(); - - b.Property("color"); - - b.Property("icon"); - - b.Property("sound"); - - b.Property("tag"); - - b.Property("title") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId"); - - b.Property("DjSettingsUserId"); - - b.Property("GeneralSettingsUserId"); - - b.Property("Rate"); - - b.Property("TendencyId"); - - b.HasKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId"); - - b.Property("SoundCloudId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId"); - - b.Property("UserId"); - - b.HasKey("InstrumentId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId"); - - b.Property("CircleId"); - - b.HasKey("MemberId", "CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.LocationType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("ActorDenomination"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("Hidden"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("SettingsClassName"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActionName"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FormationSettingsUserId"); - - b.Property("PerformerId"); - - b.Property("WorkingForId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients"); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationTypeId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("DoesCode", "UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("BlogPostId"); - - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery") - .WithMany() - .HasForeignKey("HairMultiCutQueryId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color") - .WithMany() - .HasForeignKey("ColorId"); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("HairPrestationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("BillingAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.HasOne("Yavsc.Models.Messaging.Notification") - .WithMany() - .HasForeignKey("NotificationId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings") - .WithMany() - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings") - .WithMany() - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostTag", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings") - .WithMany() - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("WorkingForId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Relationship.LocationType") - .WithMany() - .HasForeignKey("LocationTypeId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170303000800_estimateRequireCommandType.cs b/src/Yavsc.Server/Migrations/2017/20170303000800_estimateRequireCommandType.cs deleted file mode 100644 index b6e6f786..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170303000800_estimateRequireCommandType.cs +++ /dev/null @@ -1,603 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class estimateRequireCommandType : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Location_LocationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.Sql("update \"Estimate\" set \"CommandType\"='RdvQuery'"); - migrationBuilder.AlterColumn( - name: "CommandType", - table: "Estimate", - nullable: false); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Location_LocationId", - table: "HairCutQuery", - column: "LocationId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Location_LocationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.AlterColumn( - name: "CommandType", - table: "Estimate", - nullable: true); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Location_LocationId", - table: "HairCutQuery", - column: "LocationId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170317213255_cxRequiresUserName.Designer.cs b/src/Yavsc.Server/Migrations/2017/20170317213255_cxRequiresUserName.Designer.cs deleted file mode 100644 index 60cea978..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170317213255_cxRequiresUserName.Designer.cs +++ /dev/null @@ -1,1409 +0,0 @@ - - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20170317213255_cxRequiresUserName")] - partial class cxRequiresUserName - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId"); - - b.Property("BlogPostId"); - - b.HasKey("CircleId", "BlogPostId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("Avatar") - .IsRequired() - .HasAnnotation("MaxLength", 512) - .HasAnnotation("Relational:DefaultValue", "/images/Users/icon_user.png") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("DiskQuota") - .HasAnnotation("Relational:DefaultValue", "524288000") - .HasAnnotation("Relational:DefaultValueType", "System.Int64"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Count"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType") - .IsRequired(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("Title"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId") - .IsRequired(); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Blue"); - - b.Property("Green"); - - b.Property("Name"); - - b.Property("Red"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id"); - - b.Property("Summary"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId"); - - b.Property("ActionDistance"); - - b.Property("CarePrice"); - - b.Property("EndOfTheDay"); - - b.Property("FlatFeeDiscount"); - - b.Property("HalfBalayagePrice"); - - b.Property("HalfBrushingPrice"); - - b.Property("HalfColorPrice"); - - b.Property("HalfDefrisPrice"); - - b.Property("HalfFoldingPrice"); - - b.Property("HalfMechPrice"); - - b.Property("HalfMultiColorPrice"); - - b.Property("HalfPermanentPrice"); - - b.Property("KidCutPrice"); - - b.Property("LongBalayagePrice"); - - b.Property("LongBrushingPrice"); - - b.Property("LongColorPrice"); - - b.Property("LongDefrisPrice"); - - b.Property("LongFoldingPrice"); - - b.Property("LongMechPrice"); - - b.Property("LongMultiColorPrice"); - - b.Property("LongPermanentPrice"); - - b.Property("ManBrushPrice"); - - b.Property("ManCutPrice"); - - b.Property("ShampooPrice"); - - b.Property("ShortBalayagePrice"); - - b.Property("ShortBrushingPrice"); - - b.Property("ShortColorPrice"); - - b.Property("ShortDefrisPrice"); - - b.Property("ShortFoldingPrice"); - - b.Property("ShortMechPrice"); - - b.Property("ShortMultiColorPrice"); - - b.Property("ShortPermanentPrice"); - - b.Property("StartOfTheDay"); - - b.Property("WomenHalfCutPrice"); - - b.Property("WomenLongCutPrice"); - - b.Property("WomenShortCutPrice"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId") - .IsRequired(); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("PrestationId"); - - b.Property("Previsional"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Cares"); - - b.Property("Cut"); - - b.Property("Dressing"); - - b.Property("Gender"); - - b.Property("HairMultiCutQueryId"); - - b.Property("Length"); - - b.Property("Shampoo"); - - b.Property("Tech"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Brand"); - - b.Property("ColorId"); - - b.Property("HairPrestationId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Depth"); - - b.Property("Description"); - - b.Property("Height"); - - b.Property("Name"); - - b.Property("Price"); - - b.Property("Public"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.Property("UserId"); - - b.Property("NotificationId"); - - b.HasKey("UserId", "NotificationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("body") - .IsRequired(); - - b.Property("click_action") - .IsRequired(); - - b.Property("color"); - - b.Property("icon"); - - b.Property("sound"); - - b.Property("tag"); - - b.Property("title") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId"); - - b.Property("DjSettingsUserId"); - - b.Property("GeneralSettingsUserId"); - - b.Property("Rate"); - - b.Property("TendencyId"); - - b.HasKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId"); - - b.Property("SoundCloudId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId"); - - b.Property("UserId"); - - b.HasKey("InstrumentId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId"); - - b.Property("CircleId"); - - b.HasKey("MemberId", "CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.LocationType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("Hidden"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("SettingsClassName"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActionName"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FormationSettingsUserId"); - - b.Property("PerformerId"); - - b.Property("WorkingForId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients"); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationTypeId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("DoesCode", "UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("BlogPostId"); - - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery") - .WithMany() - .HasForeignKey("HairMultiCutQueryId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color") - .WithMany() - .HasForeignKey("ColorId"); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("HairPrestationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("BillingAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.HasOne("Yavsc.Models.Messaging.Notification") - .WithMany() - .HasForeignKey("NotificationId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings") - .WithMany() - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings") - .WithMany() - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostTag", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings") - .WithMany() - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("WorkingForId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Relationship.LocationType") - .WithMany() - .HasForeignKey("LocationTypeId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170317213255_cxRequiresUserName.cs b/src/Yavsc.Server/Migrations/2017/20170317213255_cxRequiresUserName.cs deleted file mode 100644 index 80fc1866..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170317213255_cxRequiresUserName.cs +++ /dev/null @@ -1,627 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -namespace Yavsc.Migrations -{ - public partial class cxRequiresUserName : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Connection_ApplicationUser_ApplicationUserId", table: "Connection"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Location_LocationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropColumn(name: "ActorDenomination", table: "Activity"); - - // Suppression des connections sans nom d'utilisateur, - // elles deviennent invalides. - migrationBuilder.Sql("delete from \"Connection\" where \"ApplicationUserId\" is NULL"); - - migrationBuilder.AlterColumn( - name: "ApplicationUserId", - table: "Connection", - nullable: false); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Connection_ApplicationUser_ApplicationUserId", - table: "Connection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Location_LocationId", - table: "HairCutQuery", - column: "LocationId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Connection_ApplicationUser_ApplicationUserId", table: "Connection"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Location_LocationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.AddColumn( - name: "ActorDenomination", - table: "Activity", - nullable: true); - migrationBuilder.AlterColumn( - name: "ApplicationUserId", - table: "Connection", - nullable: true); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Connection_ApplicationUser_ApplicationUserId", - table: "Connection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Location_LocationId", - table: "HairCutQuery", - column: "LocationId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170329075249_avatarMayBeNull.Designer.cs b/src/Yavsc.Server/Migrations/2017/20170329075249_avatarMayBeNull.Designer.cs deleted file mode 100644 index d44f91f2..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170329075249_avatarMayBeNull.Designer.cs +++ /dev/null @@ -1,1406 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20170329075249_avatarMayBeNull")] - partial class avatarMayBeNull - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId"); - - b.Property("BlogPostId"); - - b.HasKey("CircleId", "BlogPostId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512) - .HasAnnotation("Relational:DefaultValue", "/images/Users/icon_user.png") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("DiskQuota") - .HasAnnotation("Relational:DefaultValue", "524288000") - .HasAnnotation("Relational:DefaultValueType", "System.Int64"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Count"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType") - .IsRequired(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("Title"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId") - .IsRequired(); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Blue"); - - b.Property("Green"); - - b.Property("Name"); - - b.Property("Red"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id"); - - b.Property("Summary"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId"); - - b.Property("ActionDistance"); - - b.Property("CarePrice"); - - b.Property("EndOfTheDay"); - - b.Property("FlatFeeDiscount"); - - b.Property("HalfBalayagePrice"); - - b.Property("HalfBrushingPrice"); - - b.Property("HalfColorPrice"); - - b.Property("HalfDefrisPrice"); - - b.Property("HalfFoldingPrice"); - - b.Property("HalfMechPrice"); - - b.Property("HalfMultiColorPrice"); - - b.Property("HalfPermanentPrice"); - - b.Property("KidCutPrice"); - - b.Property("LongBalayagePrice"); - - b.Property("LongBrushingPrice"); - - b.Property("LongColorPrice"); - - b.Property("LongDefrisPrice"); - - b.Property("LongFoldingPrice"); - - b.Property("LongMechPrice"); - - b.Property("LongMultiColorPrice"); - - b.Property("LongPermanentPrice"); - - b.Property("ManBrushPrice"); - - b.Property("ManCutPrice"); - - b.Property("ShampooPrice"); - - b.Property("ShortBalayagePrice"); - - b.Property("ShortBrushingPrice"); - - b.Property("ShortColorPrice"); - - b.Property("ShortDefrisPrice"); - - b.Property("ShortFoldingPrice"); - - b.Property("ShortMechPrice"); - - b.Property("ShortMultiColorPrice"); - - b.Property("ShortPermanentPrice"); - - b.Property("StartOfTheDay"); - - b.Property("WomenHalfCutPrice"); - - b.Property("WomenLongCutPrice"); - - b.Property("WomenShortCutPrice"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("PrestationId"); - - b.Property("Previsional"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Cares"); - - b.Property("Cut"); - - b.Property("Dressing"); - - b.Property("Gender"); - - b.Property("HairMultiCutQueryId"); - - b.Property("Length"); - - b.Property("Shampoo"); - - b.Property("Tech"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Brand"); - - b.Property("ColorId"); - - b.Property("HairPrestationId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Depth"); - - b.Property("Description"); - - b.Property("Height"); - - b.Property("Name"); - - b.Property("Price"); - - b.Property("Public"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.Property("UserId"); - - b.Property("NotificationId"); - - b.HasKey("UserId", "NotificationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("body") - .IsRequired(); - - b.Property("click_action") - .IsRequired(); - - b.Property("color"); - - b.Property("icon"); - - b.Property("sound"); - - b.Property("tag"); - - b.Property("title") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId"); - - b.Property("DjSettingsUserId"); - - b.Property("GeneralSettingsUserId"); - - b.Property("Rate"); - - b.Property("TendencyId"); - - b.HasKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId"); - - b.Property("SoundCloudId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId"); - - b.Property("UserId"); - - b.HasKey("InstrumentId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId"); - - b.Property("CircleId"); - - b.HasKey("MemberId", "CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.LocationType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("Hidden"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("SettingsClassName"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActionName"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FormationSettingsUserId"); - - b.Property("PerformerId"); - - b.Property("WorkingForId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients"); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationTypeId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("DoesCode", "UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("BlogPostId"); - - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery") - .WithMany() - .HasForeignKey("HairMultiCutQueryId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color") - .WithMany() - .HasForeignKey("ColorId"); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("HairPrestationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("BillingAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.HasOne("Yavsc.Models.Messaging.Notification") - .WithMany() - .HasForeignKey("NotificationId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings") - .WithMany() - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings") - .WithMany() - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostTag", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings") - .WithMany() - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("WorkingForId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Relationship.LocationType") - .WithMany() - .HasForeignKey("LocationTypeId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170329075249_avatarMayBeNull.cs b/src/Yavsc.Server/Migrations/2017/20170329075249_avatarMayBeNull.cs deleted file mode 100644 index c2941d32..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170329075249_avatarMayBeNull.cs +++ /dev/null @@ -1,620 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class avatarMayBeNull : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Connection_ApplicationUser_ApplicationUserId", table: "Connection"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Location_LocationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.AlterColumn( - name: "Avatar", - table: "AspNetUsers", - nullable: true, - defaultValue: "/images/Users/icon_user.png"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Connection_ApplicationUser_ApplicationUserId", - table: "Connection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Location_LocationId", - table: "HairCutQuery", - column: "LocationId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Connection_ApplicationUser_ApplicationUserId", table: "Connection"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Location_LocationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.AlterColumn( - name: "Avatar", - table: "AspNetUsers", - nullable: false, - defaultValue: "/images/Users/icon_user.png"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Connection_ApplicationUser_ApplicationUserId", - table: "Connection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Location_LocationId", - table: "HairCutQuery", - column: "LocationId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170331214327_rdvqueryAndNoLocationNorDate.Designer.cs b/src/Yavsc.Server/Migrations/2017/20170331214327_rdvqueryAndNoLocationNorDate.Designer.cs deleted file mode 100644 index 9c2ac13f..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170331214327_rdvqueryAndNoLocationNorDate.Designer.cs +++ /dev/null @@ -1,1406 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20170331214327_rdvqueryAndNoLocationNorDate")] - partial class rdvqueryAndNoLocationNorDate - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId"); - - b.Property("BlogPostId"); - - b.HasKey("CircleId", "BlogPostId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512) - .HasAnnotation("Relational:DefaultValue", "/images/Users/icon_user.png") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("DiskQuota") - .HasAnnotation("Relational:DefaultValue", "524288000") - .HasAnnotation("Relational:DefaultValueType", "System.Int64"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Count"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType") - .IsRequired(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("Title"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId") - .IsRequired(); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Blue"); - - b.Property("Green"); - - b.Property("Name"); - - b.Property("Red"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id"); - - b.Property("Summary"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId"); - - b.Property("ActionDistance"); - - b.Property("CarePrice"); - - b.Property("EndOfTheDay"); - - b.Property("FlatFeeDiscount"); - - b.Property("HalfBalayagePrice"); - - b.Property("HalfBrushingPrice"); - - b.Property("HalfColorPrice"); - - b.Property("HalfDefrisPrice"); - - b.Property("HalfFoldingPrice"); - - b.Property("HalfMechPrice"); - - b.Property("HalfMultiColorPrice"); - - b.Property("HalfPermanentPrice"); - - b.Property("KidCutPrice"); - - b.Property("LongBalayagePrice"); - - b.Property("LongBrushingPrice"); - - b.Property("LongColorPrice"); - - b.Property("LongDefrisPrice"); - - b.Property("LongFoldingPrice"); - - b.Property("LongMechPrice"); - - b.Property("LongMultiColorPrice"); - - b.Property("LongPermanentPrice"); - - b.Property("ManBrushPrice"); - - b.Property("ManCutPrice"); - - b.Property("ShampooPrice"); - - b.Property("ShortBalayagePrice"); - - b.Property("ShortBrushingPrice"); - - b.Property("ShortColorPrice"); - - b.Property("ShortDefrisPrice"); - - b.Property("ShortFoldingPrice"); - - b.Property("ShortMechPrice"); - - b.Property("ShortMultiColorPrice"); - - b.Property("ShortPermanentPrice"); - - b.Property("StartOfTheDay"); - - b.Property("WomenHalfCutPrice"); - - b.Property("WomenLongCutPrice"); - - b.Property("WomenShortCutPrice"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("PrestationId"); - - b.Property("Previsional"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Cares"); - - b.Property("Cut"); - - b.Property("Dressing"); - - b.Property("Gender"); - - b.Property("HairMultiCutQueryId"); - - b.Property("Length"); - - b.Property("Shampoo"); - - b.Property("Tech"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Brand"); - - b.Property("ColorId"); - - b.Property("HairPrestationId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Depth"); - - b.Property("Description"); - - b.Property("Height"); - - b.Property("Name"); - - b.Property("Price"); - - b.Property("Public"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.Property("UserId"); - - b.Property("NotificationId"); - - b.HasKey("UserId", "NotificationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("body") - .IsRequired(); - - b.Property("click_action") - .IsRequired(); - - b.Property("color"); - - b.Property("icon"); - - b.Property("sound"); - - b.Property("tag"); - - b.Property("title") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId"); - - b.Property("DjSettingsUserId"); - - b.Property("GeneralSettingsUserId"); - - b.Property("Rate"); - - b.Property("TendencyId"); - - b.HasKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId"); - - b.Property("SoundCloudId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId"); - - b.Property("UserId"); - - b.HasKey("InstrumentId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId"); - - b.Property("CircleId"); - - b.HasKey("MemberId", "CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.LocationType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("Hidden"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("SettingsClassName"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActionName"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FormationSettingsUserId"); - - b.Property("PerformerId"); - - b.Property("WorkingForId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients"); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationTypeId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("DoesCode", "UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("BlogPostId"); - - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery") - .WithMany() - .HasForeignKey("HairMultiCutQueryId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color") - .WithMany() - .HasForeignKey("ColorId"); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("HairPrestationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("BillingAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.HasOne("Yavsc.Models.Messaging.Notification") - .WithMany() - .HasForeignKey("NotificationId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings") - .WithMany() - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings") - .WithMany() - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostTag", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings") - .WithMany() - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("WorkingForId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Relationship.LocationType") - .WithMany() - .HasForeignKey("LocationTypeId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170331214327_rdvqueryAndNoLocationNorDate.cs b/src/Yavsc.Server/Migrations/2017/20170331214327_rdvqueryAndNoLocationNorDate.cs deleted file mode 100644 index 323a633d..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170331214327_rdvqueryAndNoLocationNorDate.cs +++ /dev/null @@ -1,610 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class rdvqueryAndNoLocationNorDate : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Connection_ApplicationUser_ApplicationUserId", table: "Connection"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.AlterColumn( - name: "LocationId", - table: "HairCutQuery", - nullable: true); - migrationBuilder.AlterColumn( - name: "EventDate", - table: "HairCutQuery", - nullable: true); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Connection_ApplicationUser_ApplicationUserId", - table: "Connection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Connection_ApplicationUser_ApplicationUserId", table: "Connection"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.AlterColumn( - name: "LocationId", - table: "HairCutQuery", - nullable: false); - migrationBuilder.AlterColumn( - name: "EventDate", - table: "HairCutQuery", - nullable: false); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Connection_ApplicationUser_ApplicationUserId", - table: "Connection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170408055642_haircutqueryAdditionalInfo.Designer.cs b/src/Yavsc.Server/Migrations/2017/20170408055642_haircutqueryAdditionalInfo.Designer.cs deleted file mode 100644 index 2bb9fb77..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170408055642_haircutqueryAdditionalInfo.Designer.cs +++ /dev/null @@ -1,1423 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20170408055642_haircutqueryAdditionalInfo")] - partial class haircutqueryAdditionalInfo - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId"); - - b.Property("BlogPostId"); - - b.HasKey("CircleId", "BlogPostId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512) - .HasAnnotation("Relational:DefaultValue", "/images/Users/icon_user.png") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("DiskQuota") - .HasAnnotation("Relational:DefaultValue", "524288000") - .HasAnnotation("Relational:DefaultValueType", "System.Int64"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Count"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType") - .IsRequired(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("Title"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId") - .IsRequired(); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Blue"); - - b.Property("Green"); - - b.Property("Name"); - - b.Property("Red"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id"); - - b.Property("Summary"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId"); - - b.Property("ActionDistance"); - - b.Property("CarePrice"); - - b.Property("EndOfTheDay"); - - b.Property("FlatFeeDiscount"); - - b.Property("HalfBalayagePrice"); - - b.Property("HalfBrushingPrice"); - - b.Property("HalfColorPrice"); - - b.Property("HalfDefrisPrice"); - - b.Property("HalfFoldingPrice"); - - b.Property("HalfMechPrice"); - - b.Property("HalfMultiColorPrice"); - - b.Property("HalfPermanentPrice"); - - b.Property("KidCutPrice"); - - b.Property("LongBalayagePrice"); - - b.Property("LongBrushingPrice"); - - b.Property("LongColorPrice"); - - b.Property("LongDefrisPrice"); - - b.Property("LongFoldingPrice"); - - b.Property("LongMechPrice"); - - b.Property("LongMultiColorPrice"); - - b.Property("LongPermanentPrice"); - - b.Property("ManBrushPrice"); - - b.Property("ManCutPrice"); - - b.Property("ShampooPrice"); - - b.Property("ShortBalayagePrice"); - - b.Property("ShortBrushingPrice"); - - b.Property("ShortColorPrice"); - - b.Property("ShortDefrisPrice"); - - b.Property("ShortFoldingPrice"); - - b.Property("ShortMechPrice"); - - b.Property("ShortMultiColorPrice"); - - b.Property("ShortPermanentPrice"); - - b.Property("StartOfTheDay"); - - b.Property("WomenHalfCutPrice"); - - b.Property("WomenLongCutPrice"); - - b.Property("WomenShortCutPrice"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("AdditionalInfo") - .HasAnnotation("MaxLength", 512); - - b.Property("ClientId") - .IsRequired(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("PrestationId"); - - b.Property("Previsional"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Cares"); - - b.Property("Cut"); - - b.Property("Dressing"); - - b.Property("Gender"); - - b.Property("Length"); - - b.Property("Shampoo"); - - b.Property("Tech"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PrestationId"); - - b.Property("QueryId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Brand"); - - b.Property("ColorId"); - - b.Property("HairPrestationId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Depth"); - - b.Property("Description"); - - b.Property("Height"); - - b.Property("Name"); - - b.Property("Price"); - - b.Property("Public"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.Property("UserId"); - - b.Property("NotificationId"); - - b.HasKey("UserId", "NotificationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("body") - .IsRequired(); - - b.Property("click_action") - .IsRequired(); - - b.Property("color"); - - b.Property("icon"); - - b.Property("sound"); - - b.Property("tag"); - - b.Property("title") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId"); - - b.Property("DjSettingsUserId"); - - b.Property("GeneralSettingsUserId"); - - b.Property("Rate"); - - b.Property("TendencyId"); - - b.HasKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId"); - - b.Property("SoundCloudId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId"); - - b.Property("UserId"); - - b.HasKey("InstrumentId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId"); - - b.Property("CircleId"); - - b.HasKey("MemberId", "CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.LocationType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("Hidden"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("SettingsClassName"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActionName"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FormationSettingsUserId"); - - b.Property("PerformerId"); - - b.Property("WorkingForId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients"); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationTypeId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("DoesCode", "UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("BlogPostId"); - - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery") - .WithMany() - .HasForeignKey("QueryId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color") - .WithMany() - .HasForeignKey("ColorId"); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("HairPrestationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("BillingAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.HasOne("Yavsc.Models.Messaging.Notification") - .WithMany() - .HasForeignKey("NotificationId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings") - .WithMany() - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings") - .WithMany() - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostTag", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings") - .WithMany() - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("WorkingForId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Relationship.LocationType") - .WithMany() - .HasForeignKey("LocationTypeId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170408055642_haircutqueryAdditionalInfo.cs b/src/Yavsc.Server/Migrations/2017/20170408055642_haircutqueryAdditionalInfo.cs deleted file mode 100644 index 888467c1..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170408055642_haircutqueryAdditionalInfo.cs +++ /dev/null @@ -1,639 +0,0 @@ - - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class haircutqueryAdditionalInfo : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Connection_ApplicationUser_ApplicationUserId", table: "Connection"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestation_HairMultiCutQuery_HairMultiCutQueryId", table: "HairPrestation"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropColumn(name: "HairMultiCutQueryId", table: "HairPrestation"); - migrationBuilder.CreateTable( - name: "HairPrestationCollectionItem", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("Npgsql:Serial", true), - PrestationId = table.Column(nullable: false), - QueryId = table.Column(nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_HairPrestationCollectionItem", x => x.Id); - table.ForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - column: x => x.PrestationId, - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - table.ForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - column: x => x.QueryId, - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - migrationBuilder.AddColumn( - name: "AdditionalInfo", - table: "HairCutQuery", - nullable: true); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Connection_ApplicationUser_ApplicationUserId", - table: "Connection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Connection_ApplicationUser_ApplicationUserId", table: "Connection"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropColumn(name: "AdditionalInfo", table: "HairCutQuery"); - migrationBuilder.DropTable("HairPrestationCollectionItem"); - migrationBuilder.AddColumn( - name: "HairMultiCutQueryId", - table: "HairPrestation", - nullable: true); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Connection_ApplicationUser_ApplicationUserId", - table: "Connection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestation_HairMultiCutQuery_HairMultiCutQueryId", - table: "HairPrestation", - column: "HairMultiCutQueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170409004555_haircutCommandTaints.Designer.cs b/src/Yavsc.Server/Migrations/2017/20170409004555_haircutCommandTaints.Designer.cs deleted file mode 100644 index dc357135..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170409004555_haircutCommandTaints.Designer.cs +++ /dev/null @@ -1,1437 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20170409004555_haircutCommandTaints")] - partial class haircutCommandTaints - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId"); - - b.Property("BlogPostId"); - - b.HasKey("CircleId", "BlogPostId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512) - .HasAnnotation("Relational:DefaultValue", "/images/Users/icon_user.png") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("DiskQuota") - .HasAnnotation("Relational:DefaultValue", "524288000") - .HasAnnotation("Relational:DefaultValueType", "System.Int64"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Count"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType") - .IsRequired(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("Title"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId") - .IsRequired(); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Blue"); - - b.Property("Green"); - - b.Property("Name"); - - b.Property("Red"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id"); - - b.Property("Summary"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId"); - - b.Property("ActionDistance"); - - b.Property("CarePrice"); - - b.Property("EndOfTheDay"); - - b.Property("FlatFeeDiscount"); - - b.Property("HalfBalayagePrice"); - - b.Property("HalfBrushingPrice"); - - b.Property("HalfColorPrice"); - - b.Property("HalfDefrisPrice"); - - b.Property("HalfFoldingPrice"); - - b.Property("HalfMechPrice"); - - b.Property("HalfMultiColorPrice"); - - b.Property("HalfPermanentPrice"); - - b.Property("KidCutPrice"); - - b.Property("LongBalayagePrice"); - - b.Property("LongBrushingPrice"); - - b.Property("LongColorPrice"); - - b.Property("LongDefrisPrice"); - - b.Property("LongFoldingPrice"); - - b.Property("LongMechPrice"); - - b.Property("LongMultiColorPrice"); - - b.Property("LongPermanentPrice"); - - b.Property("ManBrushPrice"); - - b.Property("ManCutPrice"); - - b.Property("ShampooPrice"); - - b.Property("ShortBalayagePrice"); - - b.Property("ShortBrushingPrice"); - - b.Property("ShortColorPrice"); - - b.Property("ShortDefrisPrice"); - - b.Property("ShortFoldingPrice"); - - b.Property("ShortMechPrice"); - - b.Property("ShortMultiColorPrice"); - - b.Property("ShortPermanentPrice"); - - b.Property("StartOfTheDay"); - - b.Property("WomenHalfCutPrice"); - - b.Property("WomenLongCutPrice"); - - b.Property("WomenShortCutPrice"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("AdditionalInfo") - .HasAnnotation("MaxLength", 512); - - b.Property("ClientId") - .IsRequired(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("PrestationId"); - - b.Property("Previsional"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Cares"); - - b.Property("Cut"); - - b.Property("Dressing"); - - b.Property("Gender"); - - b.Property("Length"); - - b.Property("Shampoo"); - - b.Property("Tech"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PrestationId"); - - b.Property("QueryId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Brand"); - - b.Property("ColorId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.Property("TaintId"); - - b.Property("PrestationId"); - - b.HasKey("TaintId", "PrestationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Depth"); - - b.Property("Description"); - - b.Property("Height"); - - b.Property("Name"); - - b.Property("Price"); - - b.Property("Public"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.Property("UserId"); - - b.Property("NotificationId"); - - b.HasKey("UserId", "NotificationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("body") - .IsRequired(); - - b.Property("click_action") - .IsRequired(); - - b.Property("color"); - - b.Property("icon"); - - b.Property("sound"); - - b.Property("tag"); - - b.Property("title") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId"); - - b.Property("DjSettingsUserId"); - - b.Property("GeneralSettingsUserId"); - - b.Property("Rate"); - - b.Property("TendencyId"); - - b.HasKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId"); - - b.Property("SoundCloudId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId"); - - b.Property("UserId"); - - b.HasKey("InstrumentId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId"); - - b.Property("CircleId"); - - b.HasKey("MemberId", "CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.LocationType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("Hidden"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("SettingsClassName"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActionName"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FormationSettingsUserId"); - - b.Property("PerformerId"); - - b.Property("WorkingForId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients"); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationTypeId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("DoesCode", "UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("BlogPostId"); - - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery") - .WithMany() - .HasForeignKey("QueryId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color") - .WithMany() - .HasForeignKey("ColorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairTaint") - .WithMany() - .HasForeignKey("TaintId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("BillingAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.HasOne("Yavsc.Models.Messaging.Notification") - .WithMany() - .HasForeignKey("NotificationId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings") - .WithMany() - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings") - .WithMany() - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostTag", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings") - .WithMany() - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("WorkingForId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Relationship.LocationType") - .WithMany() - .HasForeignKey("LocationTypeId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170409004555_haircutCommandTaints.cs b/src/Yavsc.Server/Migrations/2017/20170409004555_haircutCommandTaints.cs deleted file mode 100644 index 9bd6e51d..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170409004555_haircutCommandTaints.cs +++ /dev/null @@ -1,664 +0,0 @@ - - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class haircutCommandTaints : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Connection_ApplicationUser_ApplicationUserId", table: "Connection"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_HairPrestation_HairPrestationId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropColumn(name: "HairPrestationId", table: "HairTaint"); - migrationBuilder.CreateTable( - name: "HairTaintInstance", - columns: table => new - { - TaintId = table.Column(nullable: false), - PrestationId = table.Column(nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_HairTaintInstance", x => new { x.TaintId, x.PrestationId }); - table.ForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - column: x => x.PrestationId, - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - table.ForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - column: x => x.TaintId, - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Connection_ApplicationUser_ApplicationUserId", - table: "Connection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Connection_ApplicationUser_ApplicationUserId", table: "Connection"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropTable("HairTaintInstance"); - migrationBuilder.AddColumn( - name: "HairPrestationId", - table: "HairTaint", - nullable: true); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Connection_ApplicationUser_ApplicationUserId", - table: "Connection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_HairPrestation_HairPrestationId", - table: "HairTaint", - column: "HairPrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170507200834_paypal.Designer.cs b/src/Yavsc.Server/Migrations/2017/20170507200834_paypal.Designer.cs deleted file mode 100644 index 8fb01fb5..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170507200834_paypal.Designer.cs +++ /dev/null @@ -1,1482 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20170507200834_paypal")] - partial class paypal - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId"); - - b.Property("BlogPostId"); - - b.HasKey("CircleId", "BlogPostId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512) - .HasAnnotation("Relational:DefaultValue", "/images/Users/icon_user.png") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("DiskQuota") - .HasAnnotation("Relational:DefaultValue", "524288000") - .HasAnnotation("Relational:DefaultValueType", "System.Int64"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Count"); - - b.Property("Currency"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType") - .IsRequired(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("Title"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId") - .IsRequired(); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Blue"); - - b.Property("Green"); - - b.Property("Name"); - - b.Property("Red"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id"); - - b.Property("Summary"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId"); - - b.Property("ActionDistance"); - - b.Property("CarePrice"); - - b.Property("EndOfTheDay"); - - b.Property("FlatFeeDiscount"); - - b.Property("HalfBalayagePrice"); - - b.Property("HalfBrushingPrice"); - - b.Property("HalfColorPrice"); - - b.Property("HalfDefrisPrice"); - - b.Property("HalfFoldingPrice"); - - b.Property("HalfMechPrice"); - - b.Property("HalfMultiColorPrice"); - - b.Property("HalfPermanentPrice"); - - b.Property("KidCutPrice"); - - b.Property("LongBalayagePrice"); - - b.Property("LongBrushingPrice"); - - b.Property("LongColorPrice"); - - b.Property("LongDefrisPrice"); - - b.Property("LongFoldingPrice"); - - b.Property("LongMechPrice"); - - b.Property("LongMultiColorPrice"); - - b.Property("LongPermanentPrice"); - - b.Property("ManBrushPrice"); - - b.Property("ManCutPrice"); - - b.Property("ShampooPrice"); - - b.Property("ShortBalayagePrice"); - - b.Property("ShortBrushingPrice"); - - b.Property("ShortColorPrice"); - - b.Property("ShortDefrisPrice"); - - b.Property("ShortFoldingPrice"); - - b.Property("ShortMechPrice"); - - b.Property("ShortMultiColorPrice"); - - b.Property("ShortPermanentPrice"); - - b.Property("StartOfTheDay"); - - b.Property("WomenHalfCutPrice"); - - b.Property("WomenLongCutPrice"); - - b.Property("WomenShortCutPrice"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("AdditionalInfo") - .HasAnnotation("MaxLength", 512); - - b.Property("ClientId") - .IsRequired(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("PrestationId"); - - b.Property("Previsional"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Cares"); - - b.Property("Cut"); - - b.Property("Dressing"); - - b.Property("Gender"); - - b.Property("Length"); - - b.Property("Shampoo"); - - b.Property("Tech"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PrestationId"); - - b.Property("QueryId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Brand"); - - b.Property("ColorId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.Property("TaintId"); - - b.Property("PrestationId"); - - b.HasKey("TaintId", "PrestationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Depth"); - - b.Property("Description"); - - b.Property("Height"); - - b.Property("Name"); - - b.Property("Price"); - - b.Property("Public"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.Property("UserId"); - - b.Property("NotificationId"); - - b.HasKey("UserId", "NotificationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("body") - .IsRequired(); - - b.Property("click_action") - .IsRequired(); - - b.Property("color"); - - b.Property("icon"); - - b.Property("sound"); - - b.Property("tag"); - - b.Property("title") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId"); - - b.Property("DjSettingsUserId"); - - b.Property("GeneralSettingsUserId"); - - b.Property("Rate"); - - b.Property("TendencyId"); - - b.HasKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId"); - - b.Property("SoundCloudId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId"); - - b.Property("UserId"); - - b.HasKey("InstrumentId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PaypalPayment", b => - { - b.Property("PaypalPayerId"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ExecutorId") - .IsRequired(); - - b.Property("PaypalPaymentId") - .IsRequired(); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("orderReference"); - - b.HasKey("PaypalPayerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId"); - - b.Property("CircleId"); - - b.HasKey("MemberId", "CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.LocationType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("Hidden"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("SettingsClassName"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActionName"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FormationSettingsUserId"); - - b.Property("PerformerId"); - - b.Property("WorkingForId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients"); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationTypeId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("DoesCode", "UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("BlogPostId"); - - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery") - .WithMany() - .HasForeignKey("QueryId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color") - .WithMany() - .HasForeignKey("ColorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairTaint") - .WithMany() - .HasForeignKey("TaintId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("BillingAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.HasOne("Yavsc.Models.Messaging.Notification") - .WithMany() - .HasForeignKey("NotificationId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings") - .WithMany() - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings") - .WithMany() - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PaypalPayment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ExecutorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostTag", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings") - .WithMany() - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("WorkingForId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Relationship.LocationType") - .WithMany() - .HasForeignKey("LocationTypeId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170507200834_paypal.cs b/src/Yavsc.Server/Migrations/2017/20170507200834_paypal.cs deleted file mode 100644 index 0b7234c1..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170507200834_paypal.cs +++ /dev/null @@ -1,710 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class paypal : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Connection_ApplicationUser_ApplicationUserId", table: "Connection"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.CreateTable( - name: "PaypalPayment", - columns: table => new - { - PaypalPayerId = table.Column(nullable: false), - DateCreated = table.Column(nullable: false), - DateModified = table.Column(nullable: false), - ExecutorId = table.Column(nullable: false), - PaypalPaymentId = table.Column(nullable: false), - UserCreated = table.Column(nullable: true), - UserModified = table.Column(nullable: true), - orderReference = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_PaypalPayment", x => x.PaypalPayerId); - table.ForeignKey( - name: "FK_PaypalPayment_ApplicationUser_ExecutorId", - column: x => x.ExecutorId, - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - migrationBuilder.AddColumn( - name: "Description", - table: "RdvQuery", - nullable: true); - migrationBuilder.AddColumn( - name: "Description", - table: "HairMultiCutQuery", - nullable: true); - migrationBuilder.AddColumn( - name: "Description", - table: "HairCutQuery", - nullable: true); - migrationBuilder.AddColumn( - name: "Currency", - table: "CommandLine", - nullable: true); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Connection_ApplicationUser_ApplicationUserId", - table: "Connection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Connection_ApplicationUser_ApplicationUserId", table: "Connection"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropColumn(name: "Description", table: "RdvQuery"); - migrationBuilder.DropColumn(name: "Description", table: "HairMultiCutQuery"); - migrationBuilder.DropColumn(name: "Description", table: "HairCutQuery"); - migrationBuilder.DropColumn(name: "Currency", table: "CommandLine"); - migrationBuilder.DropTable("PaypalPayment"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Connection_ApplicationUser_ApplicationUserId", - table: "Connection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170510121057_hairCutPaypalPayment.Designer.cs b/src/Yavsc.Server/Migrations/2017/20170510121057_hairCutPaypalPayment.Designer.cs deleted file mode 100644 index 9bb349a6..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170510121057_hairCutPaypalPayment.Designer.cs +++ /dev/null @@ -1,1493 +0,0 @@ -using System; - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20170510121057_hairCutPaypalPayment")] - partial class hairCutPaypalPayment - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId"); - - b.Property("BlogPostId"); - - b.HasKey("CircleId", "BlogPostId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512) - .HasAnnotation("Relational:DefaultValue", "/images/Users/icon_user.png") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("DiskQuota") - .HasAnnotation("Relational:DefaultValue", "524288000") - .HasAnnotation("Relational:DefaultValueType", "System.Int64"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Count"); - - b.Property("Currency"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 256); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType") - .IsRequired(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("Title"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId") - .IsRequired(); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Blue"); - - b.Property("Green"); - - b.Property("Name"); - - b.Property("Red"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id"); - - b.Property("Summary"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId"); - - b.Property("ActionDistance"); - - b.Property("CarePrice"); - - b.Property("EndOfTheDay"); - - b.Property("FlatFeeDiscount"); - - b.Property("HalfBalayagePrice"); - - b.Property("HalfBrushingPrice"); - - b.Property("HalfColorPrice"); - - b.Property("HalfDefrisPrice"); - - b.Property("HalfFoldingPrice"); - - b.Property("HalfMechPrice"); - - b.Property("HalfMultiColorPrice"); - - b.Property("HalfPermanentPrice"); - - b.Property("KidCutPrice"); - - b.Property("LongBalayagePrice"); - - b.Property("LongBrushingPrice"); - - b.Property("LongColorPrice"); - - b.Property("LongDefrisPrice"); - - b.Property("LongFoldingPrice"); - - b.Property("LongMechPrice"); - - b.Property("LongMultiColorPrice"); - - b.Property("LongPermanentPrice"); - - b.Property("ManBrushPrice"); - - b.Property("ManCutPrice"); - - b.Property("ShampooPrice"); - - b.Property("ShortBalayagePrice"); - - b.Property("ShortBrushingPrice"); - - b.Property("ShortColorPrice"); - - b.Property("ShortDefrisPrice"); - - b.Property("ShortFoldingPrice"); - - b.Property("ShortMechPrice"); - - b.Property("ShortMultiColorPrice"); - - b.Property("ShortPermanentPrice"); - - b.Property("StartOfTheDay"); - - b.Property("WomenHalfCutPrice"); - - b.Property("WomenLongCutPrice"); - - b.Property("WomenShortCutPrice"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("AdditionalInfo") - .HasAnnotation("MaxLength", 512); - - b.Property("ClientId") - .IsRequired(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("PrestationId"); - - b.Property("Previsional"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Cares"); - - b.Property("Cut"); - - b.Property("Dressing"); - - b.Property("Gender"); - - b.Property("Length"); - - b.Property("Shampoo"); - - b.Property("Tech"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PrestationId"); - - b.Property("QueryId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Brand"); - - b.Property("ColorId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.Property("TaintId"); - - b.Property("PrestationId"); - - b.HasKey("TaintId", "PrestationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Depth"); - - b.Property("Description"); - - b.Property("Height"); - - b.Property("Name"); - - b.Property("Price"); - - b.Property("Public"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.Property("UserId"); - - b.Property("NotificationId"); - - b.HasKey("UserId", "NotificationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("body") - .IsRequired(); - - b.Property("click_action") - .IsRequired(); - - b.Property("color"); - - b.Property("icon"); - - b.Property("sound"); - - b.Property("tag"); - - b.Property("title") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId"); - - b.Property("DjSettingsUserId"); - - b.Property("GeneralSettingsUserId"); - - b.Property("Rate"); - - b.Property("TendencyId"); - - b.HasKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId"); - - b.Property("SoundCloudId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId"); - - b.Property("UserId"); - - b.HasKey("InstrumentId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PaypalPayment", b => - { - b.Property("PaypalPaymentId"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ExecutorId") - .IsRequired(); - - b.Property("OrderReference"); - - b.Property("PaypalPayerId") - .IsRequired(); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("PaypalPaymentId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId"); - - b.Property("CircleId"); - - b.HasKey("MemberId", "CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.LocationType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("Hidden"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("SettingsClassName"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActionName"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FormationSettingsUserId"); - - b.Property("PerformerId"); - - b.Property("WorkingForId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients"); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationTypeId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("DoesCode", "UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("BlogPostId"); - - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PaypalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery") - .WithMany() - .HasForeignKey("QueryId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color") - .WithMany() - .HasForeignKey("ColorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairTaint") - .WithMany() - .HasForeignKey("TaintId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("BillingAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.HasOne("Yavsc.Models.Messaging.Notification") - .WithMany() - .HasForeignKey("NotificationId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings") - .WithMany() - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings") - .WithMany() - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PaypalPayment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ExecutorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostTag", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings") - .WithMany() - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("WorkingForId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Relationship.LocationType") - .WithMany() - .HasForeignKey("LocationTypeId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170510121057_hairCutPaypalPayment.cs b/src/Yavsc.Server/Migrations/2017/20170510121057_hairCutPaypalPayment.cs deleted file mode 100644 index a31650a7..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170510121057_hairCutPaypalPayment.cs +++ /dev/null @@ -1,726 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -namespace Yavsc.Migrations -{ - public partial class hairCutPaypalPayment : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Connection_ApplicationUser_ApplicationUserId", table: "Connection"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PaypalPayment_ApplicationUser_ExecutorId", table: "PaypalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropPrimaryKey(name: "PK_PaypalPayment", table: "PaypalPayment"); - migrationBuilder.AddPrimaryKey( - name: "PK_PaypalPayment", - table: "PaypalPayment", - column: "PaypalPaymentId"); - migrationBuilder.AddColumn( - name: "PaymentId", - table: "HairCutQuery", - nullable: true); - migrationBuilder.AddColumn( - name: "Name", - table: "CommandLine", - nullable: false, - defaultValue: ""); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Connection_ApplicationUser_ApplicationUserId", - table: "Connection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PaypalPayment_PaymentId", - table: "HairCutQuery", - column: "PaymentId", - principalTable: "PaypalPayment", - principalColumn: "PaypalPaymentId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PaypalPayment_ApplicationUser_ExecutorId", - table: "PaypalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.RenameColumn( - name: "orderReference", - table: "PaypalPayment", - newName: "OrderReference"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Connection_ApplicationUser_ApplicationUserId", table: "Connection"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PaypalPayment_PaymentId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PaypalPayment_ApplicationUser_ExecutorId", table: "PaypalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropPrimaryKey(name: "PK_PaypalPayment", table: "PaypalPayment"); - migrationBuilder.DropColumn(name: "PaymentId", table: "HairCutQuery"); - migrationBuilder.DropColumn(name: "Name", table: "CommandLine"); - migrationBuilder.AddPrimaryKey( - name: "PK_PaypalPayment", - table: "PaypalPayment", - column: "PaypalPayerId"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Connection_ApplicationUser_ApplicationUserId", - table: "Connection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PaypalPayment_ApplicationUser_ExecutorId", - table: "PaypalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.RenameColumn( - name: "OrderReference", - table: "PaypalPayment", - newName: "orderReference"); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170512102508_hairCutBill.Designer.cs b/src/Yavsc.Server/Migrations/2017/20170512102508_hairCutBill.Designer.cs deleted file mode 100644 index 85dc9cad..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170512102508_hairCutBill.Designer.cs +++ /dev/null @@ -1,1498 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20170512102508_hairCutBill")] - partial class hairCutBill - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId"); - - b.Property("BlogPostId"); - - b.HasKey("CircleId", "BlogPostId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512) - .HasAnnotation("Relational:DefaultValue", "/images/Users/icon_user.png") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("DiskQuota") - .HasAnnotation("Relational:DefaultValue", "524288000") - .HasAnnotation("Relational:DefaultValueType", "System.Int64"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Count"); - - b.Property("Currency"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 256); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType") - .IsRequired(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("Title"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId") - .IsRequired(); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Blue"); - - b.Property("Green"); - - b.Property("Name"); - - b.Property("Red"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id"); - - b.Property("Summary"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId"); - - b.Property("ActionDistance"); - - b.Property("CarePrice"); - - b.Property("EndOfTheDay"); - - b.Property("FlatFeeDiscount"); - - b.Property("HalfBalayagePrice"); - - b.Property("HalfBrushingPrice"); - - b.Property("HalfColorPrice"); - - b.Property("HalfDefrisPrice"); - - b.Property("HalfFoldingPrice"); - - b.Property("HalfMechPrice"); - - b.Property("HalfMultiColorPrice"); - - b.Property("HalfPermanentPrice"); - - b.Property("KidCutPrice"); - - b.Property("LongBalayagePrice"); - - b.Property("LongBrushingPrice"); - - b.Property("LongColorPrice"); - - b.Property("LongDefrisPrice"); - - b.Property("LongFoldingPrice"); - - b.Property("LongMechPrice"); - - b.Property("LongMultiColorPrice"); - - b.Property("LongPermanentPrice"); - - b.Property("ManBrushPrice"); - - b.Property("ManCutPrice"); - - b.Property("ShampooPrice"); - - b.Property("ShortBalayagePrice"); - - b.Property("ShortBrushingPrice"); - - b.Property("ShortColorPrice"); - - b.Property("ShortDefrisPrice"); - - b.Property("ShortFoldingPrice"); - - b.Property("ShortMechPrice"); - - b.Property("ShortMultiColorPrice"); - - b.Property("ShortPermanentPrice"); - - b.Property("StartOfTheDay"); - - b.Property("WomenHalfCutPrice"); - - b.Property("WomenLongCutPrice"); - - b.Property("WomenShortCutPrice"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("AdditionalInfo") - .HasAnnotation("MaxLength", 512); - - b.Property("ClientId") - .IsRequired(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("PrestationId"); - - b.Property("Previsional"); - - b.Property("SelectedProfileUserId"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Cares"); - - b.Property("Cut"); - - b.Property("Dressing"); - - b.Property("Gender"); - - b.Property("Length"); - - b.Property("Shampoo"); - - b.Property("Tech"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PrestationId"); - - b.Property("QueryId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Brand"); - - b.Property("ColorId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.Property("TaintId"); - - b.Property("PrestationId"); - - b.HasKey("TaintId", "PrestationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Depth"); - - b.Property("Description"); - - b.Property("Height"); - - b.Property("Name"); - - b.Property("Price"); - - b.Property("Public"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.Property("UserId"); - - b.Property("NotificationId"); - - b.HasKey("UserId", "NotificationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("body") - .IsRequired(); - - b.Property("click_action") - .IsRequired(); - - b.Property("color"); - - b.Property("icon"); - - b.Property("sound"); - - b.Property("tag"); - - b.Property("title") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId"); - - b.Property("DjSettingsUserId"); - - b.Property("GeneralSettingsUserId"); - - b.Property("Rate"); - - b.Property("TendencyId"); - - b.HasKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId"); - - b.Property("SoundCloudId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId"); - - b.Property("UserId"); - - b.HasKey("InstrumentId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PaypalPayment", b => - { - b.Property("PaypalPaymentId"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ExecutorId") - .IsRequired(); - - b.Property("OrderReference"); - - b.Property("PaypalPayerId") - .IsRequired(); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("PaypalPaymentId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId"); - - b.Property("CircleId"); - - b.HasKey("MemberId", "CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.LocationType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("Hidden"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("SettingsClassName"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActionName"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FormationSettingsUserId"); - - b.Property("PerformerId"); - - b.Property("WorkingForId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients"); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationTypeId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("DoesCode", "UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("BlogPostId"); - - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PaypalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("SelectedProfileUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery") - .WithMany() - .HasForeignKey("QueryId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color") - .WithMany() - .HasForeignKey("ColorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairTaint") - .WithMany() - .HasForeignKey("TaintId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("BillingAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.HasOne("Yavsc.Models.Messaging.Notification") - .WithMany() - .HasForeignKey("NotificationId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings") - .WithMany() - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings") - .WithMany() - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PaypalPayment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ExecutorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostTag", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings") - .WithMany() - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("WorkingForId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Relationship.LocationType") - .WithMany() - .HasForeignKey("LocationTypeId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170512102508_hairCutBill.cs b/src/Yavsc.Server/Migrations/2017/20170512102508_hairCutBill.cs deleted file mode 100644 index 50c7d563..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170512102508_hairCutBill.cs +++ /dev/null @@ -1,702 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -namespace Yavsc.Migrations -{ - public partial class hairCutBill : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Connection_ApplicationUser_ApplicationUserId", table: "Connection"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PaypalPayment_ApplicationUser_ExecutorId", table: "PaypalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.AddColumn( - name: "SelectedProfileUserId", - table: "HairCutQuery", - nullable: true); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Connection_ApplicationUser_ApplicationUserId", - table: "Connection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_BrusherProfile_SelectedProfileUserId", - table: "HairCutQuery", - column: "SelectedProfileUserId", - principalTable: "BrusherProfile", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PaypalPayment_ApplicationUser_ExecutorId", - table: "PaypalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Connection_ApplicationUser_ApplicationUserId", table: "Connection"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_BrusherProfile_SelectedProfileUserId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PaypalPayment_ApplicationUser_ExecutorId", table: "PaypalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropColumn(name: "SelectedProfileUserId", table: "HairCutQuery"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Connection_ApplicationUser_ApplicationUserId", - table: "Connection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PaypalPayment_ApplicationUser_ExecutorId", - table: "PaypalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170513213829_paypalids.Designer.cs b/src/Yavsc.Server/Migrations/2017/20170513213829_paypalids.Designer.cs deleted file mode 100644 index badcfc59..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170513213829_paypalids.Designer.cs +++ /dev/null @@ -1,1499 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20170513213829_paypalids")] - partial class paypalids - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId"); - - b.Property("BlogPostId"); - - b.HasKey("CircleId", "BlogPostId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512) - .HasAnnotation("Relational:DefaultValue", "/images/Users/icon_user.png") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("DiskQuota") - .HasAnnotation("Relational:DefaultValue", "524288000") - .HasAnnotation("Relational:DefaultValueType", "System.Int64"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Count"); - - b.Property("Currency"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 256); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType") - .IsRequired(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("Title"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId") - .IsRequired(); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Blue"); - - b.Property("Green"); - - b.Property("Name"); - - b.Property("Red"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id"); - - b.Property("Summary"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId"); - - b.Property("ActionDistance"); - - b.Property("CarePrice"); - - b.Property("EndOfTheDay"); - - b.Property("FlatFeeDiscount"); - - b.Property("HalfBalayagePrice"); - - b.Property("HalfBrushingPrice"); - - b.Property("HalfColorPrice"); - - b.Property("HalfDefrisPrice"); - - b.Property("HalfFoldingPrice"); - - b.Property("HalfMechPrice"); - - b.Property("HalfMultiColorPrice"); - - b.Property("HalfPermanentPrice"); - - b.Property("KidCutPrice"); - - b.Property("LongBalayagePrice"); - - b.Property("LongBrushingPrice"); - - b.Property("LongColorPrice"); - - b.Property("LongDefrisPrice"); - - b.Property("LongFoldingPrice"); - - b.Property("LongMechPrice"); - - b.Property("LongMultiColorPrice"); - - b.Property("LongPermanentPrice"); - - b.Property("ManBrushPrice"); - - b.Property("ManCutPrice"); - - b.Property("ShampooPrice"); - - b.Property("ShortBalayagePrice"); - - b.Property("ShortBrushingPrice"); - - b.Property("ShortColorPrice"); - - b.Property("ShortDefrisPrice"); - - b.Property("ShortFoldingPrice"); - - b.Property("ShortMechPrice"); - - b.Property("ShortMultiColorPrice"); - - b.Property("ShortPermanentPrice"); - - b.Property("StartOfTheDay"); - - b.Property("WomenHalfCutPrice"); - - b.Property("WomenLongCutPrice"); - - b.Property("WomenShortCutPrice"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("AdditionalInfo") - .HasAnnotation("MaxLength", 512); - - b.Property("ClientId") - .IsRequired(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("PrestationId"); - - b.Property("Previsional"); - - b.Property("SelectedProfileUserId"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Cares"); - - b.Property("Cut"); - - b.Property("Dressing"); - - b.Property("Gender"); - - b.Property("Length"); - - b.Property("Shampoo"); - - b.Property("Tech"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PrestationId"); - - b.Property("QueryId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Brand"); - - b.Property("ColorId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.Property("TaintId"); - - b.Property("PrestationId"); - - b.HasKey("TaintId", "PrestationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Depth"); - - b.Property("Description"); - - b.Property("Height"); - - b.Property("Name"); - - b.Property("Price"); - - b.Property("Public"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.Property("UserId"); - - b.Property("NotificationId"); - - b.HasKey("UserId", "NotificationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("body") - .IsRequired(); - - b.Property("click_action") - .IsRequired(); - - b.Property("color"); - - b.Property("icon"); - - b.Property("sound"); - - b.Property("tag"); - - b.Property("title") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId"); - - b.Property("DjSettingsUserId"); - - b.Property("GeneralSettingsUserId"); - - b.Property("Rate"); - - b.Property("TendencyId"); - - b.HasKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId"); - - b.Property("SoundCloudId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId"); - - b.Property("UserId"); - - b.HasKey("InstrumentId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PaypalPayment", b => - { - b.Property("PaypalPaymentId"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ExecutorId") - .IsRequired(); - - b.Property("OrderReference"); - - b.Property("PaypalPayerId"); - - b.Property("State"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("PaypalPaymentId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId"); - - b.Property("CircleId"); - - b.HasKey("MemberId", "CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.LocationType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("Hidden"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("SettingsClassName"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActionName"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FormationSettingsUserId"); - - b.Property("PerformerId"); - - b.Property("WorkingForId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients"); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationTypeId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("DoesCode", "UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("BlogPostId"); - - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PaypalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("SelectedProfileUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery") - .WithMany() - .HasForeignKey("QueryId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color") - .WithMany() - .HasForeignKey("ColorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairTaint") - .WithMany() - .HasForeignKey("TaintId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("BillingAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.HasOne("Yavsc.Models.Messaging.Notification") - .WithMany() - .HasForeignKey("NotificationId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings") - .WithMany() - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings") - .WithMany() - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PaypalPayment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ExecutorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostTag", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings") - .WithMany() - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("WorkingForId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Relationship.LocationType") - .WithMany() - .HasForeignKey("LocationTypeId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170513213829_paypalids.cs b/src/Yavsc.Server/Migrations/2017/20170513213829_paypalids.cs deleted file mode 100644 index 30fd4b9a..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170513213829_paypalids.cs +++ /dev/null @@ -1,703 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class paypalids : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Connection_ApplicationUser_ApplicationUserId", table: "Connection"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PaypalPayment_ApplicationUser_ExecutorId", table: "PaypalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.AlterColumn( - name: "PaypalPayerId", - table: "PaypalPayment", - nullable: true); - migrationBuilder.AddColumn( - name: "State", - table: "PaypalPayment", - nullable: true); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Connection_ApplicationUser_ApplicationUserId", - table: "Connection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PaypalPayment_ApplicationUser_ExecutorId", - table: "PaypalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Connection_ApplicationUser_ApplicationUserId", table: "Connection"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PaypalPayment_ApplicationUser_ExecutorId", table: "PaypalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropColumn(name: "State", table: "PaypalPayment"); - migrationBuilder.AlterColumn( - name: "PaypalPayerId", - table: "PaypalPayment", - nullable: false); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Connection_ApplicationUser_ApplicationUserId", - table: "Connection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PaypalPayment_ApplicationUser_ExecutorId", - table: "PaypalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170514123122_links.Designer.cs b/src/Yavsc.Server/Migrations/2017/20170514123122_links.Designer.cs deleted file mode 100644 index 22bc08f6..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170514123122_links.Designer.cs +++ /dev/null @@ -1,1519 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20170514123122_links")] - partial class links - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId"); - - b.Property("BlogPostId"); - - b.HasKey("CircleId", "BlogPostId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512) - .HasAnnotation("Relational:DefaultValue", "/images/Users/icon_user.png") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("DiskQuota") - .HasAnnotation("Relational:DefaultValue", "524288000") - .HasAnnotation("Relational:DefaultValueType", "System.Int64"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Count"); - - b.Property("Currency"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 256); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType") - .IsRequired(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("Title"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId") - .IsRequired(); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Blue"); - - b.Property("Green"); - - b.Property("Name"); - - b.Property("Red"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id"); - - b.Property("Summary"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId"); - - b.Property("ActionDistance"); - - b.Property("CarePrice"); - - b.Property("EndOfTheDay"); - - b.Property("FlatFeeDiscount"); - - b.Property("HalfBalayagePrice"); - - b.Property("HalfBrushingPrice"); - - b.Property("HalfColorPrice"); - - b.Property("HalfDefrisPrice"); - - b.Property("HalfFoldingPrice"); - - b.Property("HalfMechPrice"); - - b.Property("HalfMultiColorPrice"); - - b.Property("HalfPermanentPrice"); - - b.Property("KidCutPrice"); - - b.Property("LongBalayagePrice"); - - b.Property("LongBrushingPrice"); - - b.Property("LongColorPrice"); - - b.Property("LongDefrisPrice"); - - b.Property("LongFoldingPrice"); - - b.Property("LongMechPrice"); - - b.Property("LongMultiColorPrice"); - - b.Property("LongPermanentPrice"); - - b.Property("ManBrushPrice"); - - b.Property("ManCutPrice"); - - b.Property("ShampooPrice"); - - b.Property("ShortBalayagePrice"); - - b.Property("ShortBrushingPrice"); - - b.Property("ShortColorPrice"); - - b.Property("ShortDefrisPrice"); - - b.Property("ShortFoldingPrice"); - - b.Property("ShortMechPrice"); - - b.Property("ShortMultiColorPrice"); - - b.Property("ShortPermanentPrice"); - - b.Property("StartOfTheDay"); - - b.Property("WomenHalfCutPrice"); - - b.Property("WomenLongCutPrice"); - - b.Property("WomenShortCutPrice"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("AdditionalInfo") - .HasAnnotation("MaxLength", 512); - - b.Property("ClientId") - .IsRequired(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("PrestationId"); - - b.Property("Previsional"); - - b.Property("SelectedProfileUserId"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Cares"); - - b.Property("Cut"); - - b.Property("Dressing"); - - b.Property("Gender"); - - b.Property("Length"); - - b.Property("Shampoo"); - - b.Property("Tech"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PrestationId"); - - b.Property("QueryId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Brand"); - - b.Property("ColorId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.Property("TaintId"); - - b.Property("PrestationId"); - - b.HasKey("TaintId", "PrestationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Depth"); - - b.Property("Description"); - - b.Property("Height"); - - b.Property("Name"); - - b.Property("Price"); - - b.Property("Public"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.Property("UserId"); - - b.Property("NotificationId"); - - b.HasKey("UserId", "NotificationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("body") - .IsRequired(); - - b.Property("click_action") - .IsRequired(); - - b.Property("color"); - - b.Property("icon"); - - b.Property("sound"); - - b.Property("tag"); - - b.Property("title") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId"); - - b.Property("DjSettingsUserId"); - - b.Property("GeneralSettingsUserId"); - - b.Property("Rate"); - - b.Property("TendencyId"); - - b.HasKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId"); - - b.Property("SoundCloudId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId"); - - b.Property("UserId"); - - b.HasKey("InstrumentId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PaypalPayment", b => - { - b.Property("PaypalPaymentId"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ExecutorId") - .IsRequired(); - - b.Property("OrderReference"); - - b.Property("PaypalPayerId"); - - b.Property("State"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("PaypalPaymentId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId"); - - b.Property("CircleId"); - - b.HasKey("MemberId", "CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Link", b => - { - b.Property("HRef"); - - b.Property("Method"); - - b.Property("PaypalPaymentPaypalPaymentId"); - - b.Property("Rel"); - - b.HasKey("HRef", "Method"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.LocationType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("Hidden"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("SettingsClassName"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActionName"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FormationSettingsUserId"); - - b.Property("PerformerId"); - - b.Property("WorkingForId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients"); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationTypeId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("DoesCode", "UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("BlogPostId"); - - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PaypalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("SelectedProfileUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery") - .WithMany() - .HasForeignKey("QueryId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color") - .WithMany() - .HasForeignKey("ColorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairTaint") - .WithMany() - .HasForeignKey("TaintId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("BillingAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.HasOne("Yavsc.Models.Messaging.Notification") - .WithMany() - .HasForeignKey("NotificationId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings") - .WithMany() - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings") - .WithMany() - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PaypalPayment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ExecutorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Link", b => - { - b.HasOne("Yavsc.Models.Payment.PaypalPayment") - .WithMany() - .HasForeignKey("PaypalPaymentPaypalPaymentId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostTag", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings") - .WithMany() - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("WorkingForId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Relationship.LocationType") - .WithMany() - .HasForeignKey("LocationTypeId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170514123122_links.cs b/src/Yavsc.Server/Migrations/2017/20170514123122_links.cs deleted file mode 100644 index 5668841d..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170514123122_links.cs +++ /dev/null @@ -1,709 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -namespace Yavsc.Migrations -{ - public partial class links : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Connection_ApplicationUser_ApplicationUserId", table: "Connection"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PaypalPayment_ApplicationUser_ExecutorId", table: "PaypalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.CreateTable( - name: "Link", - columns: table => new - { - HRef = table.Column(nullable: false), - Method = table.Column(nullable: false), - PaypalPaymentPaypalPaymentId = table.Column(nullable: true), - Rel = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Link", x => new { x.HRef, x.Method }); - table.ForeignKey( - name: "FK_Link_PaypalPayment_PaypalPaymentPaypalPaymentId", - column: x => x.PaypalPaymentPaypalPaymentId, - principalTable: "PaypalPayment", - principalColumn: "PaypalPaymentId", - onDelete: ReferentialAction.Restrict); - }); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Connection_ApplicationUser_ApplicationUserId", - table: "Connection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PaypalPayment_ApplicationUser_ExecutorId", - table: "PaypalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Connection_ApplicationUser_ApplicationUserId", table: "Connection"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PaypalPayment_ApplicationUser_ExecutorId", table: "PaypalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropTable("Link"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Connection_ApplicationUser_ApplicationUserId", - table: "Connection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PaypalPayment_ApplicationUser_ExecutorId", - table: "PaypalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170516181745_paymentConsent.Designer.cs b/src/Yavsc.Server/Migrations/2017/20170516181745_paymentConsent.Designer.cs deleted file mode 100644 index 8442d9d0..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170516181745_paymentConsent.Designer.cs +++ /dev/null @@ -1,1525 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20170516181745_paymentConsent")] - partial class paymentConsent - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId"); - - b.Property("BlogPostId"); - - b.HasKey("CircleId", "BlogPostId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512) - .HasAnnotation("Relational:DefaultValue", "/images/Users/icon_user.png") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("DiskQuota") - .HasAnnotation("Relational:DefaultValue", "524288000") - .HasAnnotation("Relational:DefaultValueType", "System.Int64"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Count"); - - b.Property("Currency"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 256); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType") - .IsRequired(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("Title"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId") - .IsRequired(); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Blue"); - - b.Property("Green"); - - b.Property("Name"); - - b.Property("Red"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id"); - - b.Property("Summary"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId"); - - b.Property("ActionDistance"); - - b.Property("CarePrice"); - - b.Property("EndOfTheDay"); - - b.Property("FlatFeeDiscount"); - - b.Property("HalfBalayagePrice"); - - b.Property("HalfBrushingPrice"); - - b.Property("HalfColorPrice"); - - b.Property("HalfDefrisPrice"); - - b.Property("HalfFoldingPrice"); - - b.Property("HalfMechPrice"); - - b.Property("HalfMultiColorPrice"); - - b.Property("HalfPermanentPrice"); - - b.Property("KidCutPrice"); - - b.Property("LongBalayagePrice"); - - b.Property("LongBrushingPrice"); - - b.Property("LongColorPrice"); - - b.Property("LongDefrisPrice"); - - b.Property("LongFoldingPrice"); - - b.Property("LongMechPrice"); - - b.Property("LongMultiColorPrice"); - - b.Property("LongPermanentPrice"); - - b.Property("ManBrushPrice"); - - b.Property("ManCutPrice"); - - b.Property("ShampooPrice"); - - b.Property("ShortBalayagePrice"); - - b.Property("ShortBrushingPrice"); - - b.Property("ShortColorPrice"); - - b.Property("ShortDefrisPrice"); - - b.Property("ShortFoldingPrice"); - - b.Property("ShortMechPrice"); - - b.Property("ShortMultiColorPrice"); - - b.Property("ShortPermanentPrice"); - - b.Property("StartOfTheDay"); - - b.Property("WomenHalfCutPrice"); - - b.Property("WomenLongCutPrice"); - - b.Property("WomenShortCutPrice"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("AdditionalInfo") - .HasAnnotation("MaxLength", 512); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("PrestationId"); - - b.Property("Previsional"); - - b.Property("SelectedProfileUserId"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Cares"); - - b.Property("Cut"); - - b.Property("Dressing"); - - b.Property("Gender"); - - b.Property("Length"); - - b.Property("Shampoo"); - - b.Property("Tech"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PrestationId"); - - b.Property("QueryId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Brand"); - - b.Property("ColorId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.Property("TaintId"); - - b.Property("PrestationId"); - - b.HasKey("TaintId", "PrestationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Depth"); - - b.Property("Description"); - - b.Property("Height"); - - b.Property("Name"); - - b.Property("Price"); - - b.Property("Public"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.Property("UserId"); - - b.Property("NotificationId"); - - b.HasKey("UserId", "NotificationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("body") - .IsRequired(); - - b.Property("click_action") - .IsRequired(); - - b.Property("color"); - - b.Property("icon"); - - b.Property("sound"); - - b.Property("tag"); - - b.Property("title") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId"); - - b.Property("DjSettingsUserId"); - - b.Property("GeneralSettingsUserId"); - - b.Property("Rate"); - - b.Property("TendencyId"); - - b.HasKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId"); - - b.Property("SoundCloudId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId"); - - b.Property("UserId"); - - b.HasKey("InstrumentId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PaypalPayment", b => - { - b.Property("PaypalPaymentId"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ExecutorId") - .IsRequired(); - - b.Property("OrderReference"); - - b.Property("PaypalPayerId"); - - b.Property("State"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("PaypalPaymentId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId"); - - b.Property("CircleId"); - - b.HasKey("MemberId", "CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Link", b => - { - b.Property("HRef"); - - b.Property("Method"); - - b.Property("PaypalPaymentPaypalPaymentId"); - - b.Property("Rel"); - - b.HasKey("HRef", "Method"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.LocationType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("Hidden"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("SettingsClassName"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActionName"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FormationSettingsUserId"); - - b.Property("PerformerId"); - - b.Property("WorkingForId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients"); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationTypeId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("DoesCode", "UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("BlogPostId"); - - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PaypalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("SelectedProfileUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery") - .WithMany() - .HasForeignKey("QueryId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color") - .WithMany() - .HasForeignKey("ColorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairTaint") - .WithMany() - .HasForeignKey("TaintId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("BillingAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.HasOne("Yavsc.Models.Messaging.Notification") - .WithMany() - .HasForeignKey("NotificationId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings") - .WithMany() - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings") - .WithMany() - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PaypalPayment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ExecutorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Link", b => - { - b.HasOne("Yavsc.Models.Payment.PaypalPayment") - .WithMany() - .HasForeignKey("PaypalPaymentPaypalPaymentId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostTag", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings") - .WithMany() - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("WorkingForId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Relationship.LocationType") - .WithMany() - .HasForeignKey("LocationTypeId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170516181745_paymentConsent.cs b/src/Yavsc.Server/Migrations/2017/20170516181745_paymentConsent.cs deleted file mode 100644 index f2b235e5..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170516181745_paymentConsent.cs +++ /dev/null @@ -1,709 +0,0 @@ - - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class paymentConsent : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Connection_ApplicationUser_ApplicationUserId", table: "Connection"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PaypalPayment_ApplicationUser_ExecutorId", table: "PaypalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.AddColumn( - name: "Consent", - table: "RdvQuery", - nullable: false, - defaultValue: false); - migrationBuilder.AddColumn( - name: "Consent", - table: "HairMultiCutQuery", - nullable: false, - defaultValue: false); - migrationBuilder.AddColumn( - name: "Consent", - table: "HairCutQuery", - nullable: false, - defaultValue: false); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Connection_ApplicationUser_ApplicationUserId", - table: "Connection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PaypalPayment_ApplicationUser_ExecutorId", - table: "PaypalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Connection_ApplicationUser_ApplicationUserId", table: "Connection"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PaypalPayment_ApplicationUser_ExecutorId", table: "PaypalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropColumn(name: "Consent", table: "RdvQuery"); - migrationBuilder.DropColumn(name: "Consent", table: "HairMultiCutQuery"); - migrationBuilder.DropColumn(name: "Consent", table: "HairCutQuery"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Connection_ApplicationUser_ApplicationUserId", - table: "Connection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PaypalPayment_ApplicationUser_ExecutorId", - table: "PaypalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170517001340_notificatioinTarget.Designer.cs b/src/Yavsc.Server/Migrations/2017/20170517001340_notificatioinTarget.Designer.cs deleted file mode 100644 index 5e387fcc..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170517001340_notificatioinTarget.Designer.cs +++ /dev/null @@ -1,1527 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20170517001340_notificatioinTarget")] - partial class notificatioinTarget - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId"); - - b.Property("BlogPostId"); - - b.HasKey("CircleId", "BlogPostId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512) - .HasAnnotation("Relational:DefaultValue", "/images/Users/icon_user.png") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("DiskQuota") - .HasAnnotation("Relational:DefaultValue", "524288000") - .HasAnnotation("Relational:DefaultValueType", "System.Int64"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Count"); - - b.Property("Currency"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 256); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType") - .IsRequired(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("Title"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId") - .IsRequired(); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Blue"); - - b.Property("Green"); - - b.Property("Name"); - - b.Property("Red"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id"); - - b.Property("Summary"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId"); - - b.Property("ActionDistance"); - - b.Property("CarePrice"); - - b.Property("EndOfTheDay"); - - b.Property("FlatFeeDiscount"); - - b.Property("HalfBalayagePrice"); - - b.Property("HalfBrushingPrice"); - - b.Property("HalfColorPrice"); - - b.Property("HalfDefrisPrice"); - - b.Property("HalfFoldingPrice"); - - b.Property("HalfMechPrice"); - - b.Property("HalfMultiColorPrice"); - - b.Property("HalfPermanentPrice"); - - b.Property("KidCutPrice"); - - b.Property("LongBalayagePrice"); - - b.Property("LongBrushingPrice"); - - b.Property("LongColorPrice"); - - b.Property("LongDefrisPrice"); - - b.Property("LongFoldingPrice"); - - b.Property("LongMechPrice"); - - b.Property("LongMultiColorPrice"); - - b.Property("LongPermanentPrice"); - - b.Property("ManBrushPrice"); - - b.Property("ManCutPrice"); - - b.Property("ShampooPrice"); - - b.Property("ShortBalayagePrice"); - - b.Property("ShortBrushingPrice"); - - b.Property("ShortColorPrice"); - - b.Property("ShortDefrisPrice"); - - b.Property("ShortFoldingPrice"); - - b.Property("ShortMechPrice"); - - b.Property("ShortMultiColorPrice"); - - b.Property("ShortPermanentPrice"); - - b.Property("StartOfTheDay"); - - b.Property("WomenHalfCutPrice"); - - b.Property("WomenLongCutPrice"); - - b.Property("WomenShortCutPrice"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("AdditionalInfo") - .HasAnnotation("MaxLength", 512); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("PrestationId"); - - b.Property("Previsional"); - - b.Property("SelectedProfileUserId"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Cares"); - - b.Property("Cut"); - - b.Property("Dressing"); - - b.Property("Gender"); - - b.Property("Length"); - - b.Property("Shampoo"); - - b.Property("Tech"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PrestationId"); - - b.Property("QueryId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Brand"); - - b.Property("ColorId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.Property("TaintId"); - - b.Property("PrestationId"); - - b.HasKey("TaintId", "PrestationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Depth"); - - b.Property("Description"); - - b.Property("Height"); - - b.Property("Name"); - - b.Property("Price"); - - b.Property("Public"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.Property("UserId"); - - b.Property("NotificationId"); - - b.HasKey("UserId", "NotificationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Target"); - - b.Property("body") - .IsRequired(); - - b.Property("click_action") - .IsRequired(); - - b.Property("color"); - - b.Property("icon"); - - b.Property("sound"); - - b.Property("tag"); - - b.Property("title") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId"); - - b.Property("DjSettingsUserId"); - - b.Property("GeneralSettingsUserId"); - - b.Property("Rate"); - - b.Property("TendencyId"); - - b.HasKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId"); - - b.Property("SoundCloudId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId"); - - b.Property("UserId"); - - b.HasKey("InstrumentId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PaypalPayment", b => - { - b.Property("PaypalPaymentId"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ExecutorId") - .IsRequired(); - - b.Property("OrderReference"); - - b.Property("PaypalPayerId"); - - b.Property("State"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("PaypalPaymentId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId"); - - b.Property("CircleId"); - - b.HasKey("MemberId", "CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Link", b => - { - b.Property("HRef"); - - b.Property("Method"); - - b.Property("PaypalPaymentPaypalPaymentId"); - - b.Property("Rel"); - - b.HasKey("HRef", "Method"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.LocationType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("Hidden"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("SettingsClassName"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActionName"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FormationSettingsUserId"); - - b.Property("PerformerId"); - - b.Property("WorkingForId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients"); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationTypeId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("DoesCode", "UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("BlogPostId"); - - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PaypalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("SelectedProfileUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery") - .WithMany() - .HasForeignKey("QueryId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color") - .WithMany() - .HasForeignKey("ColorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairTaint") - .WithMany() - .HasForeignKey("TaintId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("BillingAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.HasOne("Yavsc.Models.Messaging.Notification") - .WithMany() - .HasForeignKey("NotificationId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings") - .WithMany() - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings") - .WithMany() - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PaypalPayment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ExecutorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Link", b => - { - b.HasOne("Yavsc.Models.Payment.PaypalPayment") - .WithMany() - .HasForeignKey("PaypalPaymentPaypalPaymentId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostTag", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings") - .WithMany() - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("WorkingForId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Relationship.LocationType") - .WithMany() - .HasForeignKey("LocationTypeId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170517001340_notificatioinTarget.cs b/src/Yavsc.Server/Migrations/2017/20170517001340_notificatioinTarget.cs deleted file mode 100644 index cad07b3c..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170517001340_notificatioinTarget.cs +++ /dev/null @@ -1,695 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class notificatioinTarget : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Connection_ApplicationUser_ApplicationUserId", table: "Connection"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PaypalPayment_ApplicationUser_ExecutorId", table: "PaypalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.AddColumn( - name: "Target", - table: "Notification", - nullable: true); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Connection_ApplicationUser_ApplicationUserId", - table: "Connection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PaypalPayment_ApplicationUser_ExecutorId", - table: "PaypalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Connection_ApplicationUser_ApplicationUserId", table: "Connection"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PaypalPayment_ApplicationUser_ExecutorId", table: "PaypalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropColumn(name: "Target", table: "Notification"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Connection_ApplicationUser_ApplicationUserId", - table: "Connection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PaypalPayment_ApplicationUser_ExecutorId", - table: "PaypalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170524210924_paypalToDeprecated.Designer.cs b/src/Yavsc.Server/Migrations/2017/20170524210924_paypalToDeprecated.Designer.cs deleted file mode 100644 index 05fa66c3..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170524210924_paypalToDeprecated.Designer.cs +++ /dev/null @@ -1,1540 +0,0 @@ -using System; - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20170524210924_paypalToDeprecated")] - partial class paypalToDeprecated - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId"); - - b.Property("BlogPostId"); - - b.HasKey("CircleId", "BlogPostId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512) - .HasAnnotation("Relational:DefaultValue", "/images/Users/icon_user.png") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("DiskQuota") - .HasAnnotation("Relational:DefaultValue", "524288000") - .HasAnnotation("Relational:DefaultValueType", "System.Int64"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Count"); - - b.Property("Currency"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 256); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType") - .IsRequired(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("Title"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId") - .IsRequired(); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Blue"); - - b.Property("Green"); - - b.Property("Name"); - - b.Property("Red"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id"); - - b.Property("Summary"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId"); - - b.Property("ActionDistance"); - - b.Property("CarePrice"); - - b.Property("EndOfTheDay"); - - b.Property("FlatFeeDiscount"); - - b.Property("HalfBalayagePrice"); - - b.Property("HalfBrushingPrice"); - - b.Property("HalfColorPrice"); - - b.Property("HalfDefrisPrice"); - - b.Property("HalfFoldingPrice"); - - b.Property("HalfMechPrice"); - - b.Property("HalfMultiColorPrice"); - - b.Property("HalfPermanentPrice"); - - b.Property("KidCutPrice"); - - b.Property("LongBalayagePrice"); - - b.Property("LongBrushingPrice"); - - b.Property("LongColorPrice"); - - b.Property("LongDefrisPrice"); - - b.Property("LongFoldingPrice"); - - b.Property("LongMechPrice"); - - b.Property("LongMultiColorPrice"); - - b.Property("LongPermanentPrice"); - - b.Property("ManBrushPrice"); - - b.Property("ManCutPrice"); - - b.Property("ShampooPrice"); - - b.Property("ShortBalayagePrice"); - - b.Property("ShortBrushingPrice"); - - b.Property("ShortColorPrice"); - - b.Property("ShortDefrisPrice"); - - b.Property("ShortFoldingPrice"); - - b.Property("ShortMechPrice"); - - b.Property("ShortMultiColorPrice"); - - b.Property("ShortPermanentPrice"); - - b.Property("StartOfTheDay"); - - b.Property("WomenHalfCutPrice"); - - b.Property("WomenLongCutPrice"); - - b.Property("WomenShortCutPrice"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("AdditionalInfo") - .HasAnnotation("MaxLength", 512); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("PrestationId"); - - b.Property("Previsional"); - - b.Property("SelectedProfileUserId"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Cares"); - - b.Property("Cut"); - - b.Property("Dressing"); - - b.Property("Gender"); - - b.Property("Length"); - - b.Property("Shampoo"); - - b.Property("Tech"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PrestationId"); - - b.Property("QueryId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Brand"); - - b.Property("ColorId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.Property("TaintId"); - - b.Property("PrestationId"); - - b.HasKey("TaintId", "PrestationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Depth"); - - b.Property("Description"); - - b.Property("Height"); - - b.Property("Name"); - - b.Property("Price"); - - b.Property("Public"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.Property("UserId"); - - b.Property("NotificationId"); - - b.HasKey("UserId", "NotificationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Target"); - - b.Property("body") - .IsRequired(); - - b.Property("click_action") - .IsRequired(); - - b.Property("color"); - - b.Property("icon"); - - b.Property("sound"); - - b.Property("tag"); - - b.Property("title") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId"); - - b.Property("DjSettingsUserId"); - - b.Property("GeneralSettingsUserId"); - - b.Property("Rate"); - - b.Property("TendencyId"); - - b.HasKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId"); - - b.Property("SoundCloudId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId"); - - b.Property("UserId"); - - b.HasKey("InstrumentId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Property("CreationToken"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ExecutorId") - .IsRequired(); - - b.Property("OrderReference"); - - b.Property("PaypalPayerId"); - - b.Property("State"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("CreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId"); - - b.Property("CircleId"); - - b.HasKey("MemberId", "CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Link", b => - { - b.Property("HRef"); - - b.Property("Method"); - - b.Property("PayPalPaymentCreationToken"); - - b.Property("Rel"); - - b.HasKey("HRef", "Method"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.LocationType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("Hidden"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("SettingsClassName"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActionName"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FormationSettingsUserId"); - - b.Property("PerformerId"); - - b.Property("WorkingForId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients"); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationTypeId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("DoesCode", "UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("BlogPostId"); - - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("SelectedProfileUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery") - .WithMany() - .HasForeignKey("QueryId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color") - .WithMany() - .HasForeignKey("ColorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairTaint") - .WithMany() - .HasForeignKey("TaintId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("BillingAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.HasOne("Yavsc.Models.Messaging.Notification") - .WithMany() - .HasForeignKey("NotificationId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings") - .WithMany() - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings") - .WithMany() - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ExecutorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Link", b => - { - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PayPalPaymentCreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostTag", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings") - .WithMany() - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("WorkingForId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Relationship.LocationType") - .WithMany() - .HasForeignKey("LocationTypeId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170524210924_paypalToDeprecated.cs b/src/Yavsc.Server/Migrations/2017/20170524210924_paypalToDeprecated.cs deleted file mode 100644 index 1818ea61..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170524210924_paypalToDeprecated.cs +++ /dev/null @@ -1,22 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class paypalToDeprecated : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.RenameTable( name: "PaypalPayment", newName: "PayPalPayment"); - migrationBuilder.RenameColumn ( name:"PaypalPaymentId", table: "PayPalPayment", newName:"CreationToken" ); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.RenameColumn ( newName :"PaypalPaymentId", table: "PayPalPayment", name:"CreationToken" ); - migrationBuilder.RenameTable( newName: "PaypalPayment", name: "PayPalPayment"); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170526020220_rdvPayment.Designer.cs b/src/Yavsc.Server/Migrations/2017/20170526020220_rdvPayment.Designer.cs deleted file mode 100644 index 1719abe6..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170526020220_rdvPayment.Designer.cs +++ /dev/null @@ -1,1539 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20170526020220_rdvPayment")] - partial class rdvPayment - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId"); - - b.Property("BlogPostId"); - - b.HasKey("CircleId", "BlogPostId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512) - .HasAnnotation("Relational:DefaultValue", "/images/Users/icon_user.png") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("DiskQuota") - .HasAnnotation("Relational:DefaultValue", "524288000") - .HasAnnotation("Relational:DefaultValueType", "System.Int64"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Count"); - - b.Property("Currency"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 256); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType") - .IsRequired(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("Title"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId") - .IsRequired(); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Blue"); - - b.Property("Green"); - - b.Property("Name"); - - b.Property("Red"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id"); - - b.Property("Summary"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId"); - - b.Property("ActionDistance"); - - b.Property("CarePrice"); - - b.Property("EndOfTheDay"); - - b.Property("FlatFeeDiscount"); - - b.Property("HalfBalayagePrice"); - - b.Property("HalfBrushingPrice"); - - b.Property("HalfColorPrice"); - - b.Property("HalfDefrisPrice"); - - b.Property("HalfFoldingPrice"); - - b.Property("HalfMechPrice"); - - b.Property("HalfMultiColorPrice"); - - b.Property("HalfPermanentPrice"); - - b.Property("KidCutPrice"); - - b.Property("LongBalayagePrice"); - - b.Property("LongBrushingPrice"); - - b.Property("LongColorPrice"); - - b.Property("LongDefrisPrice"); - - b.Property("LongFoldingPrice"); - - b.Property("LongMechPrice"); - - b.Property("LongMultiColorPrice"); - - b.Property("LongPermanentPrice"); - - b.Property("ManBrushPrice"); - - b.Property("ManCutPrice"); - - b.Property("ShampooPrice"); - - b.Property("ShortBalayagePrice"); - - b.Property("ShortBrushingPrice"); - - b.Property("ShortColorPrice"); - - b.Property("ShortDefrisPrice"); - - b.Property("ShortFoldingPrice"); - - b.Property("ShortMechPrice"); - - b.Property("ShortMultiColorPrice"); - - b.Property("ShortPermanentPrice"); - - b.Property("StartOfTheDay"); - - b.Property("WomenHalfCutPrice"); - - b.Property("WomenLongCutPrice"); - - b.Property("WomenShortCutPrice"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("AdditionalInfo") - .HasAnnotation("MaxLength", 512); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("PrestationId"); - - b.Property("Previsional"); - - b.Property("SelectedProfileUserId"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Cares"); - - b.Property("Cut"); - - b.Property("Dressing"); - - b.Property("Gender"); - - b.Property("Length"); - - b.Property("Shampoo"); - - b.Property("Tech"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PrestationId"); - - b.Property("QueryId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Brand"); - - b.Property("ColorId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.Property("TaintId"); - - b.Property("PrestationId"); - - b.HasKey("TaintId", "PrestationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Depth"); - - b.Property("Description"); - - b.Property("Height"); - - b.Property("Name"); - - b.Property("Price"); - - b.Property("Public"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.Property("UserId"); - - b.Property("NotificationId"); - - b.HasKey("UserId", "NotificationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Target"); - - b.Property("body") - .IsRequired(); - - b.Property("click_action") - .IsRequired(); - - b.Property("color"); - - b.Property("icon"); - - b.Property("sound"); - - b.Property("tag"); - - b.Property("title") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId"); - - b.Property("DjSettingsUserId"); - - b.Property("GeneralSettingsUserId"); - - b.Property("Rate"); - - b.Property("TendencyId"); - - b.HasKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId"); - - b.Property("SoundCloudId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId"); - - b.Property("UserId"); - - b.HasKey("InstrumentId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Property("CreationToken"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ExecutorId") - .IsRequired(); - - b.Property("OrderReference"); - - b.Property("PaypalPayerId"); - - b.Property("State"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("CreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId"); - - b.Property("CircleId"); - - b.HasKey("MemberId", "CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Link", b => - { - b.Property("HRef"); - - b.Property("Method"); - - b.Property("PayPalPaymentCreationToken"); - - b.Property("Rel"); - - b.HasKey("HRef", "Method"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.LocationType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("Hidden"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("SettingsClassName"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActionName"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FormationSettingsUserId"); - - b.Property("PerformerId"); - - b.Property("WorkingForId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients"); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationTypeId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("DoesCode", "UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("BlogPostId"); - - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("SelectedProfileUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery") - .WithMany() - .HasForeignKey("QueryId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color") - .WithMany() - .HasForeignKey("ColorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairTaint") - .WithMany() - .HasForeignKey("TaintId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("BillingAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.HasOne("Yavsc.Models.Messaging.Notification") - .WithMany() - .HasForeignKey("NotificationId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings") - .WithMany() - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings") - .WithMany() - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ExecutorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Link", b => - { - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PayPalPaymentCreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostTag", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings") - .WithMany() - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("WorkingForId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Relationship.LocationType") - .WithMany() - .HasForeignKey("LocationTypeId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170526020220_rdvPayment.cs b/src/Yavsc.Server/Migrations/2017/20170526020220_rdvPayment.cs deleted file mode 100644 index 94a03f2b..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170526020220_rdvPayment.cs +++ /dev/null @@ -1,703 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -namespace Yavsc.Migrations -{ - public partial class rdvPayment : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Connection_ApplicationUser_ApplicationUserId", table: "Connection"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PaypalPayment_ApplicationUser_ExecutorId", table: "PayPalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - - migrationBuilder.AddColumn( - name: "PaymentId", - table: "RdvQuery", - nullable: true); - migrationBuilder.AddColumn( - name: "PaymentId", - table: "HairMultiCutQuery", - nullable: true); - - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Connection_ApplicationUser_ApplicationUserId", - table: "Connection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PayPalPayment_ApplicationUser_ExecutorId", - table: "PayPalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Connection_ApplicationUser_ApplicationUserId", table: "Connection"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PayPalPayment_ApplicationUser_ExecutorId", table: "PayPalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - - migrationBuilder.DropColumn(name: "PaymentId", table: "RdvQuery"); - migrationBuilder.DropColumn(name: "PaymentId", table: "HairMultiCutQuery"); - - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Connection_ApplicationUser_ApplicationUserId", - table: "Connection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PaypalPayment_ApplicationUser_ExecutorId", - table: "PayPalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170601115553_period.Designer.cs b/src/Yavsc.Server/Migrations/2017/20170601115553_period.Designer.cs deleted file mode 100644 index 6d16f0c2..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170601115553_period.Designer.cs +++ /dev/null @@ -1,1555 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20170601115553_period")] - partial class period - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId"); - - b.Property("BlogPostId"); - - b.HasKey("CircleId", "BlogPostId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512) - .HasAnnotation("Relational:DefaultValue", "/images/Users/icon_user.png") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("DiskQuota") - .HasAnnotation("Relational:DefaultValue", "524288000") - .HasAnnotation("Relational:DefaultValueType", "System.Int64"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Count"); - - b.Property("Currency"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 256); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType") - .IsRequired(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("Title"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Period", b => - { - b.Property("Start"); - - b.Property("End"); - - b.Property("BrusherProfileUserId"); - - b.HasKey("Start", "End"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId") - .IsRequired(); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Blue"); - - b.Property("Green"); - - b.Property("Name"); - - b.Property("Red"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id"); - - b.Property("Summary"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId"); - - b.Property("ActionDistance"); - - b.Property("CarePrice"); - - b.Property("FlatFeeDiscount"); - - b.Property("HalfBalayagePrice"); - - b.Property("HalfBrushingPrice"); - - b.Property("HalfColorPrice"); - - b.Property("HalfDefrisPrice"); - - b.Property("HalfFoldingPrice"); - - b.Property("HalfMechPrice"); - - b.Property("HalfMultiColorPrice"); - - b.Property("HalfPermanentPrice"); - - b.Property("KidCutPrice"); - - b.Property("LongBalayagePrice"); - - b.Property("LongBrushingPrice"); - - b.Property("LongColorPrice"); - - b.Property("LongDefrisPrice"); - - b.Property("LongFoldingPrice"); - - b.Property("LongMechPrice"); - - b.Property("LongMultiColorPrice"); - - b.Property("LongPermanentPrice"); - - b.Property("ManBrushPrice"); - - b.Property("ManCutPrice"); - - b.Property("ShampooPrice"); - - b.Property("ShortBalayagePrice"); - - b.Property("ShortBrushingPrice"); - - b.Property("ShortColorPrice"); - - b.Property("ShortDefrisPrice"); - - b.Property("ShortFoldingPrice"); - - b.Property("ShortMechPrice"); - - b.Property("ShortMultiColorPrice"); - - b.Property("ShortPermanentPrice"); - - b.Property("WomenHalfCutPrice"); - - b.Property("WomenLongCutPrice"); - - b.Property("WomenShortCutPrice"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("AdditionalInfo") - .HasAnnotation("MaxLength", 512); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("PrestationId"); - - b.Property("Previsional"); - - b.Property("SelectedProfileUserId"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Cares"); - - b.Property("Cut"); - - b.Property("Dressing"); - - b.Property("Gender"); - - b.Property("Length"); - - b.Property("Shampoo"); - - b.Property("Tech"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PrestationId"); - - b.Property("QueryId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Brand"); - - b.Property("ColorId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.Property("TaintId"); - - b.Property("PrestationId"); - - b.HasKey("TaintId", "PrestationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Depth"); - - b.Property("Description"); - - b.Property("Height"); - - b.Property("Name"); - - b.Property("Price"); - - b.Property("Public"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.Property("UserId"); - - b.Property("NotificationId"); - - b.HasKey("UserId", "NotificationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Target"); - - b.Property("body") - .IsRequired(); - - b.Property("click_action") - .IsRequired(); - - b.Property("color"); - - b.Property("icon"); - - b.Property("sound"); - - b.Property("tag"); - - b.Property("title") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId"); - - b.Property("DjSettingsUserId"); - - b.Property("GeneralSettingsUserId"); - - b.Property("Rate"); - - b.Property("TendencyId"); - - b.HasKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId"); - - b.Property("SoundCloudId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId"); - - b.Property("UserId"); - - b.HasKey("InstrumentId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Property("CreationToken"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ExecutorId") - .IsRequired(); - - b.Property("OrderReference"); - - b.Property("PaypalPayerId"); - - b.Property("State"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("CreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId"); - - b.Property("CircleId"); - - b.HasKey("MemberId", "CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.Property("HRef"); - - b.Property("Method"); - - b.Property("BrusherProfileUserId"); - - b.Property("ContentType"); - - b.Property("PayPalPaymentCreationToken"); - - b.Property("Rel"); - - b.HasKey("HRef", "Method"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.LocationType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("Hidden"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("SettingsClassName"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActionName"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FormationSettingsUserId"); - - b.Property("PerformerId"); - - b.Property("WorkingForId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients"); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationTypeId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("DoesCode", "UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("BlogPostId"); - - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Period", b => - { - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("BrusherProfileUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("SelectedProfileUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery") - .WithMany() - .HasForeignKey("QueryId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color") - .WithMany() - .HasForeignKey("ColorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairTaint") - .WithMany() - .HasForeignKey("TaintId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("BillingAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.HasOne("Yavsc.Models.Messaging.Notification") - .WithMany() - .HasForeignKey("NotificationId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings") - .WithMany() - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings") - .WithMany() - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ExecutorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("BrusherProfileUserId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PayPalPaymentCreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostTag", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings") - .WithMany() - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("WorkingForId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Relationship.LocationType") - .WithMany() - .HasForeignKey("LocationTypeId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170601115553_period.cs b/src/Yavsc.Server/Migrations/2017/20170601115553_period.cs deleted file mode 100644 index 1f90af23..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170601115553_period.cs +++ /dev/null @@ -1,784 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class period : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Connection_ApplicationUser_ApplicationUserId", table: "Connection"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PayPalPayment_ApplicationUser_ExecutorId", table: "PayPalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropColumn(name: "Description", table: "RdvQuery"); - migrationBuilder.DropColumn(name: "Description", table: "HairMultiCutQuery"); - migrationBuilder.DropColumn(name: "Description", table: "HairCutQuery"); - migrationBuilder.DropColumn(name: "EndOfTheDay", table: "BrusherProfile"); - migrationBuilder.DropColumn(name: "StartOfTheDay", table: "BrusherProfile"); - migrationBuilder.DropTable("Link"); - migrationBuilder.CreateTable( - name: "Period", - columns: table => new - { - Start = table.Column(nullable: false), - End = table.Column(nullable: false), - BrusherProfileUserId = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Period", x => new { x.Start, x.End }); - table.ForeignKey( - name: "FK_Period_BrusherProfile_BrusherProfileUserId", - column: x => x.BrusherProfileUserId, - principalTable: "BrusherProfile", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - }); - migrationBuilder.CreateTable( - name: "HyperLink", - columns: table => new - { - HRef = table.Column(nullable: false), - Method = table.Column(nullable: false), - BrusherProfileUserId = table.Column(nullable: true), - ContentType = table.Column(nullable: true), - PayPalPaymentCreationToken = table.Column(nullable: true), - Rel = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_HyperLink", x => new { x.HRef, x.Method }); - table.ForeignKey( - name: "FK_HyperLink_BrusherProfile_BrusherProfileUserId", - column: x => x.BrusherProfileUserId, - principalTable: "BrusherProfile", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - table.ForeignKey( - name: "FK_HyperLink_PayPalPayment_PayPalPaymentCreationToken", - column: x => x.PayPalPaymentCreationToken, - principalTable: "PayPalPayment", - principalColumn: "CreationToken", - onDelete: ReferentialAction.Restrict); - }); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Connection_ApplicationUser_ApplicationUserId", - table: "Connection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PayPalPayment_ApplicationUser_ExecutorId", - table: "PayPalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Connection_ApplicationUser_ApplicationUserId", table: "Connection"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PayPalPayment_ApplicationUser_ExecutorId", table: "PayPalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropTable("Period"); - migrationBuilder.DropTable("HyperLink"); - migrationBuilder.CreateTable( - name: "Link", - columns: table => new - { - HRef = table.Column(nullable: false), - Method = table.Column(nullable: false), - PayPalPaymentCreationToken = table.Column(nullable: true), - Rel = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Link", x => new { x.HRef, x.Method }); - table.ForeignKey( - name: "FK_Link_PayPalPayment_PayPalPaymentCreationToken", - column: x => x.PayPalPaymentCreationToken, - principalTable: "PayPalPayment", - principalColumn: "CreationToken", - onDelete: ReferentialAction.Restrict); - }); - migrationBuilder.AddColumn( - name: "Description", - table: "RdvQuery", - nullable: true); - migrationBuilder.AddColumn( - name: "Description", - table: "HairMultiCutQuery", - nullable: true); - migrationBuilder.AddColumn( - name: "Description", - table: "HairCutQuery", - nullable: true); - migrationBuilder.AddColumn( - name: "EndOfTheDay", - table: "BrusherProfile", - nullable: false, - defaultValue: 0); - migrationBuilder.AddColumn( - name: "StartOfTheDay", - table: "BrusherProfile", - nullable: false, - defaultValue: 0); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Connection_ApplicationUser_ApplicationUserId", - table: "Connection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PayPalPayment_ApplicationUser_ExecutorId", - table: "PayPalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170611141231_BrusherCalendarModel.Designer.cs b/src/Yavsc.Server/Migrations/2017/20170611141231_BrusherCalendarModel.Designer.cs deleted file mode 100644 index 0650db95..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170611141231_BrusherCalendarModel.Designer.cs +++ /dev/null @@ -1,1593 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20170611141231_BrusherCalendarModel")] - partial class BrusherCalendarModel - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId"); - - b.Property("BlogPostId"); - - b.HasKey("CircleId", "BlogPostId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512) - .HasAnnotation("Relational:DefaultValue", "/images/Users/icon_user.png") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("DiskQuota") - .HasAnnotation("Relational:DefaultValue", "524288000") - .HasAnnotation("Relational:DefaultValueType", "System.Int64"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Count"); - - b.Property("Currency"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 256); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType") - .IsRequired(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("Title"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Period", b => - { - b.Property("Start"); - - b.Property("End"); - - b.HasKey("Start", "End"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Property("OwnerId"); - - b.HasKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PeriodEnd"); - - b.Property("PeriodStart"); - - b.Property("Reccurence"); - - b.Property("ScheduleOwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId") - .IsRequired(); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Blue"); - - b.Property("Green"); - - b.Property("Name"); - - b.Property("Red"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id"); - - b.Property("Summary"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId"); - - b.Property("ActionDistance"); - - b.Property("CarePrice"); - - b.Property("FlatFeeDiscount"); - - b.Property("HalfBalayagePrice"); - - b.Property("HalfBrushingPrice"); - - b.Property("HalfColorPrice"); - - b.Property("HalfDefrisPrice"); - - b.Property("HalfFoldingPrice"); - - b.Property("HalfMechPrice"); - - b.Property("HalfMultiColorPrice"); - - b.Property("HalfPermanentPrice"); - - b.Property("KidCutPrice"); - - b.Property("LongBalayagePrice"); - - b.Property("LongBrushingPrice"); - - b.Property("LongColorPrice"); - - b.Property("LongDefrisPrice"); - - b.Property("LongFoldingPrice"); - - b.Property("LongMechPrice"); - - b.Property("LongMultiColorPrice"); - - b.Property("LongPermanentPrice"); - - b.Property("ManBrushPrice"); - - b.Property("ManCutPrice"); - - b.Property("ScheduleOwnerId"); - - b.Property("ShampooPrice"); - - b.Property("ShortBalayagePrice"); - - b.Property("ShortBrushingPrice"); - - b.Property("ShortColorPrice"); - - b.Property("ShortDefrisPrice"); - - b.Property("ShortFoldingPrice"); - - b.Property("ShortMechPrice"); - - b.Property("ShortMultiColorPrice"); - - b.Property("ShortPermanentPrice"); - - b.Property("WomenHalfCutPrice"); - - b.Property("WomenLongCutPrice"); - - b.Property("WomenShortCutPrice"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("AdditionalInfo") - .HasAnnotation("MaxLength", 512); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("PrestationId"); - - b.Property("Previsional"); - - b.Property("SelectedProfileUserId"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Cares"); - - b.Property("Cut"); - - b.Property("Dressing"); - - b.Property("Gender"); - - b.Property("Length"); - - b.Property("Shampoo"); - - b.Property("Tech"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PrestationId"); - - b.Property("QueryId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Brand"); - - b.Property("ColorId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.Property("TaintId"); - - b.Property("PrestationId"); - - b.HasKey("TaintId", "PrestationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Depth"); - - b.Property("Description"); - - b.Property("Height"); - - b.Property("Name"); - - b.Property("Price"); - - b.Property("Public"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.Property("UserId"); - - b.Property("NotificationId"); - - b.HasKey("UserId", "NotificationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Target"); - - b.Property("body") - .IsRequired(); - - b.Property("click_action") - .IsRequired(); - - b.Property("color"); - - b.Property("icon"); - - b.Property("sound"); - - b.Property("tag"); - - b.Property("title") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId"); - - b.Property("DjSettingsUserId"); - - b.Property("GeneralSettingsUserId"); - - b.Property("Rate"); - - b.Property("TendencyId"); - - b.HasKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId"); - - b.Property("SoundCloudId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId"); - - b.Property("UserId"); - - b.HasKey("InstrumentId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Property("CreationToken"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ExecutorId") - .IsRequired(); - - b.Property("OrderReference"); - - b.Property("PaypalPayerId"); - - b.Property("State"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("CreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId"); - - b.Property("CircleId"); - - b.HasKey("MemberId", "CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.Property("HRef"); - - b.Property("Method"); - - b.Property("BrusherProfileUserId"); - - b.Property("ContentType"); - - b.Property("PayPalPaymentCreationToken"); - - b.Property("Rel"); - - b.HasKey("HRef", "Method"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.LocationType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("Hidden"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("SettingsClassName"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActionName"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FormationSettingsUserId"); - - b.Property("PerformerId"); - - b.Property("WorkingForId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients"); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationTypeId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("DoesCode", "UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("BlogPostId"); - - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Calendar.Period") - .WithMany() - .HasForeignKey("PeriodStart", "PeriodEnd"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("SelectedProfileUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery") - .WithMany() - .HasForeignKey("QueryId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color") - .WithMany() - .HasForeignKey("ColorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairTaint") - .WithMany() - .HasForeignKey("TaintId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("BillingAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.HasOne("Yavsc.Models.Messaging.Notification") - .WithMany() - .HasForeignKey("NotificationId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings") - .WithMany() - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings") - .WithMany() - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ExecutorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("BrusherProfileUserId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PayPalPaymentCreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostTag", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings") - .WithMany() - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("WorkingForId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Relationship.LocationType") - .WithMany() - .HasForeignKey("LocationTypeId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20170611141231_BrusherCalendarModel.cs b/src/Yavsc.Server/Migrations/2017/20170611141231_BrusherCalendarModel.cs deleted file mode 100644 index 5e7ab56c..00000000 --- a/src/Yavsc.Server/Migrations/2017/20170611141231_BrusherCalendarModel.cs +++ /dev/null @@ -1,761 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class BrusherCalendarModel : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Period_BrusherProfile_BrusherProfileUserId", table: "Period"); - migrationBuilder.DropForeignKey(name: "FK_Connection_ApplicationUser_ApplicationUserId", table: "Connection"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PayPalPayment_ApplicationUser_ExecutorId", table: "PayPalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropColumn(name: "BrusherProfileUserId", table: "Period"); - migrationBuilder.CreateTable( - name: "Schedule", - columns: table => new - { - OwnerId = table.Column(nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Schedule", x => x.OwnerId); - table.ForeignKey( - name: "FK_Schedule_ApplicationUser_OwnerId", - column: x => x.OwnerId, - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - migrationBuilder.CreateTable( - name: "ScheduledEvent", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("Npgsql:Serial", true), - PeriodEnd = table.Column(nullable: true), - PeriodStart = table.Column(nullable: true), - Reccurence = table.Column(nullable: false), - ScheduleOwnerId = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_ScheduledEvent", x => x.Id); - table.ForeignKey( - name: "FK_ScheduledEvent_Schedule_ScheduleOwnerId", - column: x => x.ScheduleOwnerId, - principalTable: "Schedule", - principalColumn: "OwnerId", - onDelete: ReferentialAction.Restrict); - table.ForeignKey( - name: "FK_ScheduledEvent_Period_PeriodStart_PeriodEnd", - columns: x => new { x.PeriodStart, x.PeriodEnd }, - principalTable: "Period", - principalColumns: new[] { "Start", "End" }, - onDelete: ReferentialAction.Restrict); - }); - migrationBuilder.AddColumn( - name: "ScheduleOwnerId", - table: "BrusherProfile", - nullable: true); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Connection_ApplicationUser_ApplicationUserId", - table: "Connection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_Schedule_ScheduleOwnerId", - table: "BrusherProfile", - column: "ScheduleOwnerId", - principalTable: "Schedule", - principalColumn: "OwnerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PayPalPayment_ApplicationUser_ExecutorId", - table: "PayPalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Connection_ApplicationUser_ApplicationUserId", table: "Connection"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_Schedule_ScheduleOwnerId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PayPalPayment_ApplicationUser_ExecutorId", table: "PayPalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_PostTag_Blog_PostId", table: "PostTag"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropColumn(name: "ScheduleOwnerId", table: "BrusherProfile"); - migrationBuilder.DropTable("ScheduledEvent"); - migrationBuilder.DropTable("Schedule"); - migrationBuilder.AddColumn( - name: "BrusherProfileUserId", - table: "Period", - nullable: true); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Period_BrusherProfile_BrusherProfileUserId", - table: "Period", - column: "BrusherProfileUserId", - principalTable: "BrusherProfile", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Connection_ApplicationUser_ApplicationUserId", - table: "Connection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PayPalPayment_ApplicationUser_ExecutorId", - table: "PayPalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PostTag_Blog_PostId", - table: "PostTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20171002023107_Features.Designer.cs b/src/Yavsc.Server/Migrations/2017/20171002023107_Features.Designer.cs deleted file mode 100644 index b6a8cc03..00000000 --- a/src/Yavsc.Server/Migrations/2017/20171002023107_Features.Designer.cs +++ /dev/null @@ -1,1632 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20171002023107_Features")] - partial class Features - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId"); - - b.Property("BlogPostId"); - - b.HasKey("CircleId", "BlogPostId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512) - .HasAnnotation("Relational:DefaultValue", "/images/Users/icon_user.png") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("DiskQuota") - .HasAnnotation("Relational:DefaultValue", "524288000") - .HasAnnotation("Relational:DefaultValueType", "System.Int64"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Count"); - - b.Property("Currency"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 256); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType") - .IsRequired(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("Title"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Period", b => - { - b.Property("Start"); - - b.Property("End"); - - b.HasKey("Start", "End"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Property("OwnerId"); - - b.HasKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PeriodEnd"); - - b.Property("PeriodStart"); - - b.Property("Reccurence"); - - b.Property("ScheduleOwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId") - .IsRequired(); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Cratie.Option", b => - { - b.Property("Code"); - - b.Property("CodeScrutin"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code", "CodeScrutin"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Blue"); - - b.Property("Green"); - - b.Property("Name"); - - b.Property("Red"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id"); - - b.Property("Summary"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId"); - - b.Property("ActionDistance"); - - b.Property("CarePrice"); - - b.Property("FlatFeeDiscount"); - - b.Property("HalfBalayagePrice"); - - b.Property("HalfBrushingPrice"); - - b.Property("HalfColorPrice"); - - b.Property("HalfDefrisPrice"); - - b.Property("HalfFoldingPrice"); - - b.Property("HalfMechPrice"); - - b.Property("HalfMultiColorPrice"); - - b.Property("HalfPermanentPrice"); - - b.Property("KidCutPrice"); - - b.Property("LongBalayagePrice"); - - b.Property("LongBrushingPrice"); - - b.Property("LongColorPrice"); - - b.Property("LongDefrisPrice"); - - b.Property("LongFoldingPrice"); - - b.Property("LongMechPrice"); - - b.Property("LongMultiColorPrice"); - - b.Property("LongPermanentPrice"); - - b.Property("ManBrushPrice"); - - b.Property("ManCutPrice"); - - b.Property("ScheduleOwnerId"); - - b.Property("ShampooPrice"); - - b.Property("ShortBalayagePrice"); - - b.Property("ShortBrushingPrice"); - - b.Property("ShortColorPrice"); - - b.Property("ShortDefrisPrice"); - - b.Property("ShortFoldingPrice"); - - b.Property("ShortMechPrice"); - - b.Property("ShortMultiColorPrice"); - - b.Property("ShortPermanentPrice"); - - b.Property("WomenHalfCutPrice"); - - b.Property("WomenLongCutPrice"); - - b.Property("WomenShortCutPrice"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("AdditionalInfo") - .HasAnnotation("MaxLength", 512); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("PrestationId"); - - b.Property("Previsional"); - - b.Property("SelectedProfileUserId"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Cares"); - - b.Property("Cut"); - - b.Property("Dressing"); - - b.Property("Gender"); - - b.Property("Length"); - - b.Property("Shampoo"); - - b.Property("Tech"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PrestationId"); - - b.Property("QueryId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Brand"); - - b.Property("ColorId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.Property("TaintId"); - - b.Property("PrestationId"); - - b.HasKey("TaintId", "PrestationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Maintaining.Feature", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("ShortName"); - - b.Property("Status"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Depth"); - - b.Property("Description"); - - b.Property("Height"); - - b.Property("Name"); - - b.Property("Price"); - - b.Property("Public"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.Property("UserId"); - - b.Property("NotificationId"); - - b.HasKey("UserId", "NotificationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Target"); - - b.Property("body") - .IsRequired(); - - b.Property("click_action") - .IsRequired(); - - b.Property("color"); - - b.Property("icon") - .HasAnnotation("Relational:DefaultValue", "exclam") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("sound"); - - b.Property("tag"); - - b.Property("title") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId"); - - b.Property("DjSettingsUserId"); - - b.Property("GeneralSettingsUserId"); - - b.Property("Rate"); - - b.Property("TendencyId"); - - b.HasKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId"); - - b.Property("SoundCloudId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId"); - - b.Property("UserId"); - - b.HasKey("InstrumentId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Property("CreationToken"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ExecutorId") - .IsRequired(); - - b.Property("OrderReference"); - - b.Property("PaypalPayerId"); - - b.Property("State"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("CreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.BlogTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId"); - - b.Property("CircleId"); - - b.HasKey("MemberId", "CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.Property("HRef"); - - b.Property("Method"); - - b.Property("BrusherProfileUserId"); - - b.Property("ContentType"); - - b.Property("PayPalPaymentCreationToken"); - - b.Property("Rel"); - - b.HasKey("HRef", "Method"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.LocationType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("Hidden"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("SettingsClassName"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActionName"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FormationSettingsUserId"); - - b.Property("PerformerId"); - - b.Property("WorkingForId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients"); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationTypeId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("DoesCode", "UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("BlogPostId"); - - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Calendar.Period") - .WithMany() - .HasForeignKey("PeriodStart", "PeriodEnd"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("SelectedProfileUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery") - .WithMany() - .HasForeignKey("QueryId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color") - .WithMany() - .HasForeignKey("ColorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairTaint") - .WithMany() - .HasForeignKey("TaintId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("BillingAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.HasOne("Yavsc.Models.Messaging.Notification") - .WithMany() - .HasForeignKey("NotificationId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings") - .WithMany() - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings") - .WithMany() - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ExecutorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.BlogTag", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("PostId"); - - b.HasOne("Yavsc.Models.Relationship.Tag") - .WithMany() - .HasForeignKey("TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("BrusherProfileUserId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PayPalPaymentCreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings") - .WithMany() - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("WorkingForId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Relationship.LocationType") - .WithMany() - .HasForeignKey("LocationTypeId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20171002023107_Features.cs b/src/Yavsc.Server/Migrations/2017/20171002023107_Features.cs deleted file mode 100644 index 6d027454..00000000 --- a/src/Yavsc.Server/Migrations/2017/20171002023107_Features.cs +++ /dev/null @@ -1,773 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class Features : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Schedule_ApplicationUser_OwnerId", table: "Schedule"); - migrationBuilder.DropForeignKey(name: "FK_Connection_ApplicationUser_ApplicationUserId", table: "Connection"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PayPalPayment_ApplicationUser_ExecutorId", table: "PayPalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropTable("PostTag"); - migrationBuilder.CreateTable( - name: "Option", - columns: table => new - { - Code = table.Column(nullable: false), - CodeScrutin = table.Column(nullable: false), - DateCreated = table.Column(nullable: false), - DateModified = table.Column(nullable: false), - Description = table.Column(nullable: true), - UserCreated = table.Column(nullable: true), - UserModified = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Option", x => new { x.Code, x.CodeScrutin }); - }); - migrationBuilder.CreateTable( - name: "Feature", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("Npgsql:Serial", true), - Description = table.Column(nullable: true), - ShortName = table.Column(nullable: true), - Status = table.Column(nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Feature", x => x.Id); - }); - migrationBuilder.CreateTable( - name: "BlogTag", - columns: table => new - { - PostId = table.Column(nullable: false), - TagId = table.Column(nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_BlogTag", x => new { x.PostId, x.TagId }); - table.ForeignKey( - name: "FK_BlogTag_Blog_PostId", - column: x => x.PostId, - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - table.ForeignKey( - name: "FK_BlogTag_Tag_TagId", - column: x => x.TagId, - principalTable: "Tag", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - migrationBuilder.AlterColumn( - name: "icon", - table: "Notification", - nullable: true, - defaultValue: "exclam"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Schedule_ApplicationUser_OwnerId", - table: "Schedule", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Connection_ApplicationUser_ApplicationUserId", - table: "Connection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PayPalPayment_ApplicationUser_ExecutorId", - table: "PayPalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Schedule_ApplicationUser_OwnerId", table: "Schedule"); - migrationBuilder.DropForeignKey(name: "FK_Connection_ApplicationUser_ApplicationUserId", table: "Connection"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PayPalPayment_ApplicationUser_ExecutorId", table: "PayPalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropTable("Option"); - migrationBuilder.DropTable("Feature"); - migrationBuilder.DropTable("BlogTag"); - migrationBuilder.CreateTable( - name: "PostTag", - columns: table => new - { - PostId = table.Column(nullable: false), - TagId = table.Column(nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_PostTag", x => new { x.PostId, x.TagId }); - table.ForeignKey( - name: "FK_PostTag_Blog_PostId", - column: x => x.PostId, - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - }); - migrationBuilder.AlterColumn( - name: "icon", - table: "Notification", - nullable: true); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Schedule_ApplicationUser_OwnerId", - table: "Schedule", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Connection_ApplicationUser_ApplicationUserId", - table: "Connection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PayPalPayment_ApplicationUser_ExecutorId", - table: "PayPalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20171002023835_bugs.Designer.cs b/src/Yavsc.Server/Migrations/2017/20171002023835_bugs.Designer.cs deleted file mode 100644 index 4e908661..00000000 --- a/src/Yavsc.Server/Migrations/2017/20171002023835_bugs.Designer.cs +++ /dev/null @@ -1,1644 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20171002023835_bugs")] - partial class bugs - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId"); - - b.Property("BlogPostId"); - - b.HasKey("CircleId", "BlogPostId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512) - .HasAnnotation("Relational:DefaultValue", "/images/Users/icon_user.png") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("DiskQuota") - .HasAnnotation("Relational:DefaultValue", "524288000") - .HasAnnotation("Relational:DefaultValueType", "System.Int64"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Count"); - - b.Property("Currency"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 256); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType") - .IsRequired(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("Title"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Period", b => - { - b.Property("Start"); - - b.Property("End"); - - b.HasKey("Start", "End"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Property("OwnerId"); - - b.HasKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PeriodEnd"); - - b.Property("PeriodStart"); - - b.Property("Reccurence"); - - b.Property("ScheduleOwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId") - .IsRequired(); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Cratie.Option", b => - { - b.Property("Code"); - - b.Property("CodeScrutin"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code", "CodeScrutin"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Blue"); - - b.Property("Green"); - - b.Property("Name"); - - b.Property("Red"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id"); - - b.Property("Summary"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId"); - - b.Property("ActionDistance"); - - b.Property("CarePrice"); - - b.Property("FlatFeeDiscount"); - - b.Property("HalfBalayagePrice"); - - b.Property("HalfBrushingPrice"); - - b.Property("HalfColorPrice"); - - b.Property("HalfDefrisPrice"); - - b.Property("HalfFoldingPrice"); - - b.Property("HalfMechPrice"); - - b.Property("HalfMultiColorPrice"); - - b.Property("HalfPermanentPrice"); - - b.Property("KidCutPrice"); - - b.Property("LongBalayagePrice"); - - b.Property("LongBrushingPrice"); - - b.Property("LongColorPrice"); - - b.Property("LongDefrisPrice"); - - b.Property("LongFoldingPrice"); - - b.Property("LongMechPrice"); - - b.Property("LongMultiColorPrice"); - - b.Property("LongPermanentPrice"); - - b.Property("ManBrushPrice"); - - b.Property("ManCutPrice"); - - b.Property("ScheduleOwnerId"); - - b.Property("ShampooPrice"); - - b.Property("ShortBalayagePrice"); - - b.Property("ShortBrushingPrice"); - - b.Property("ShortColorPrice"); - - b.Property("ShortDefrisPrice"); - - b.Property("ShortFoldingPrice"); - - b.Property("ShortMechPrice"); - - b.Property("ShortMultiColorPrice"); - - b.Property("ShortPermanentPrice"); - - b.Property("WomenHalfCutPrice"); - - b.Property("WomenLongCutPrice"); - - b.Property("WomenShortCutPrice"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("AdditionalInfo") - .HasAnnotation("MaxLength", 512); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("PrestationId"); - - b.Property("Previsional"); - - b.Property("SelectedProfileUserId"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Cares"); - - b.Property("Cut"); - - b.Property("Dressing"); - - b.Property("Gender"); - - b.Property("Length"); - - b.Property("Shampoo"); - - b.Property("Tech"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PrestationId"); - - b.Property("QueryId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Brand"); - - b.Property("ColorId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.Property("TaintId"); - - b.Property("PrestationId"); - - b.HasKey("TaintId", "PrestationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FeatureId"); - - b.Property("Status"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Maintaining.Feature", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("ShortName"); - - b.Property("Status"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Depth"); - - b.Property("Description"); - - b.Property("Height"); - - b.Property("Name"); - - b.Property("Price"); - - b.Property("Public"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.Property("UserId"); - - b.Property("NotificationId"); - - b.HasKey("UserId", "NotificationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Target"); - - b.Property("body") - .IsRequired(); - - b.Property("click_action") - .IsRequired(); - - b.Property("color"); - - b.Property("icon") - .HasAnnotation("Relational:DefaultValue", "exclam") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("sound"); - - b.Property("tag"); - - b.Property("title") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId"); - - b.Property("DjSettingsUserId"); - - b.Property("GeneralSettingsUserId"); - - b.Property("Rate"); - - b.Property("TendencyId"); - - b.HasKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId"); - - b.Property("SoundCloudId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId"); - - b.Property("UserId"); - - b.HasKey("InstrumentId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Property("CreationToken"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ExecutorId") - .IsRequired(); - - b.Property("OrderReference"); - - b.Property("PaypalPayerId"); - - b.Property("State"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("CreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.BlogTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId"); - - b.Property("CircleId"); - - b.HasKey("MemberId", "CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.Property("HRef"); - - b.Property("Method"); - - b.Property("BrusherProfileUserId"); - - b.Property("ContentType"); - - b.Property("PayPalPaymentCreationToken"); - - b.Property("Rel"); - - b.HasKey("HRef", "Method"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.LocationType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("Hidden"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("SettingsClassName"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActionName"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FormationSettingsUserId"); - - b.Property("PerformerId"); - - b.Property("WorkingForId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients"); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationTypeId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("DoesCode", "UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("BlogPostId"); - - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Calendar.Period") - .WithMany() - .HasForeignKey("PeriodStart", "PeriodEnd"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("SelectedProfileUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery") - .WithMany() - .HasForeignKey("QueryId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color") - .WithMany() - .HasForeignKey("ColorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairTaint") - .WithMany() - .HasForeignKey("TaintId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("BillingAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.HasOne("Yavsc.Models.Messaging.Notification") - .WithMany() - .HasForeignKey("NotificationId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings") - .WithMany() - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings") - .WithMany() - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ExecutorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.BlogTag", b => - { - b.HasOne("Yavsc.Models.Blog") - .WithMany() - .HasForeignKey("PostId"); - - b.HasOne("Yavsc.Models.Relationship.Tag") - .WithMany() - .HasForeignKey("TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("BrusherProfileUserId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PayPalPaymentCreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings") - .WithMany() - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("WorkingForId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Relationship.LocationType") - .WithMany() - .HasForeignKey("LocationTypeId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20171002023835_bugs.cs b/src/Yavsc.Server/Migrations/2017/20171002023835_bugs.cs deleted file mode 100644 index 06f07d26..00000000 --- a/src/Yavsc.Server/Migrations/2017/20171002023835_bugs.cs +++ /dev/null @@ -1,736 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class bugs : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Schedule_ApplicationUser_OwnerId", table: "Schedule"); - migrationBuilder.DropForeignKey(name: "FK_Connection_ApplicationUser_ApplicationUserId", table: "Connection"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PayPalPayment_ApplicationUser_ExecutorId", table: "PayPalPayment"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_Blog_PostId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_Tag_TagId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.CreateTable( - name: "Bug", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("Npgsql:Serial", true), - FeatureId = table.Column(nullable: false), - Status = table.Column(nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Bug", x => x.Id); - }); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Schedule_ApplicationUser_OwnerId", - table: "Schedule", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Connection_ApplicationUser_ApplicationUserId", - table: "Connection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PayPalPayment_ApplicationUser_ExecutorId", - table: "PayPalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_Blog_PostId", - table: "BlogTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_Tag_TagId", - table: "BlogTag", - column: "TagId", - principalTable: "Tag", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Schedule_ApplicationUser_OwnerId", table: "Schedule"); - migrationBuilder.DropForeignKey(name: "FK_Connection_ApplicationUser_ApplicationUserId", table: "Connection"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PayPalPayment_ApplicationUser_ExecutorId", table: "PayPalPayment"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_Blog_PostId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_Tag_TagId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropTable("Bug"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Schedule_ApplicationUser_OwnerId", - table: "Schedule", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Connection_ApplicationUser_ApplicationUserId", - table: "Connection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PayPalPayment_ApplicationUser_ExecutorId", - table: "PayPalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_Blog_PostId", - table: "BlogTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_Tag_TagId", - table: "BlogTag", - column: "TagId", - principalTable: "Tag", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20171003195221_BlogRename.Designer.cs b/src/Yavsc.Server/Migrations/2017/20171003195221_BlogRename.Designer.cs deleted file mode 100644 index 0da98f2c..00000000 --- a/src/Yavsc.Server/Migrations/2017/20171003195221_BlogRename.Designer.cs +++ /dev/null @@ -1,1647 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20171003195221_BlogRename")] - partial class BlogRename - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId"); - - b.Property("BlogPostId"); - - b.HasKey("CircleId", "BlogPostId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512) - .HasAnnotation("Relational:DefaultValue", "/images/Users/icon_user.png") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("DiskQuota") - .HasAnnotation("Relational:DefaultValue", "524288000") - .HasAnnotation("Relational:DefaultValueType", "System.Int64"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Count"); - - b.Property("Currency"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 256); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType") - .IsRequired(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content") - .HasAnnotation("MaxLength", 57344); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Photo"); - - b.Property("Rate") - .HasAnnotation("MaxLength", 1024); - - b.Property("Title") - .HasAnnotation("MaxLength", 1024); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Period", b => - { - b.Property("Start"); - - b.Property("End"); - - b.HasKey("Start", "End"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Property("OwnerId"); - - b.HasKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PeriodEnd"); - - b.Property("PeriodStart"); - - b.Property("Reccurence"); - - b.Property("ScheduleOwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId") - .IsRequired(); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Cratie.Option", b => - { - b.Property("Code"); - - b.Property("CodeScrutin"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code", "CodeScrutin"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Blue"); - - b.Property("Green"); - - b.Property("Name"); - - b.Property("Red"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id"); - - b.Property("Summary"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId"); - - b.Property("ActionDistance"); - - b.Property("CarePrice"); - - b.Property("FlatFeeDiscount"); - - b.Property("HalfBalayagePrice"); - - b.Property("HalfBrushingPrice"); - - b.Property("HalfColorPrice"); - - b.Property("HalfDefrisPrice"); - - b.Property("HalfFoldingPrice"); - - b.Property("HalfMechPrice"); - - b.Property("HalfMultiColorPrice"); - - b.Property("HalfPermanentPrice"); - - b.Property("KidCutPrice"); - - b.Property("LongBalayagePrice"); - - b.Property("LongBrushingPrice"); - - b.Property("LongColorPrice"); - - b.Property("LongDefrisPrice"); - - b.Property("LongFoldingPrice"); - - b.Property("LongMechPrice"); - - b.Property("LongMultiColorPrice"); - - b.Property("LongPermanentPrice"); - - b.Property("ManBrushPrice"); - - b.Property("ManCutPrice"); - - b.Property("ScheduleOwnerId"); - - b.Property("ShampooPrice"); - - b.Property("ShortBalayagePrice"); - - b.Property("ShortBrushingPrice"); - - b.Property("ShortColorPrice"); - - b.Property("ShortDefrisPrice"); - - b.Property("ShortFoldingPrice"); - - b.Property("ShortMechPrice"); - - b.Property("ShortMultiColorPrice"); - - b.Property("ShortPermanentPrice"); - - b.Property("WomenHalfCutPrice"); - - b.Property("WomenLongCutPrice"); - - b.Property("WomenShortCutPrice"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("AdditionalInfo") - .HasAnnotation("MaxLength", 512); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("PrestationId"); - - b.Property("Previsional"); - - b.Property("SelectedProfileUserId"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Cares"); - - b.Property("Cut"); - - b.Property("Dressing"); - - b.Property("Gender"); - - b.Property("Length"); - - b.Property("Shampoo"); - - b.Property("Tech"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PrestationId"); - - b.Property("QueryId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Brand"); - - b.Property("ColorId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.Property("TaintId"); - - b.Property("PrestationId"); - - b.HasKey("TaintId", "PrestationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FeatureId"); - - b.Property("Status"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Maintaining.Feature", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("ShortName"); - - b.Property("Status"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Depth"); - - b.Property("Description"); - - b.Property("Height"); - - b.Property("Name"); - - b.Property("Price"); - - b.Property("Public"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.Property("UserId"); - - b.Property("NotificationId"); - - b.HasKey("UserId", "NotificationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Target"); - - b.Property("body") - .IsRequired(); - - b.Property("click_action") - .IsRequired(); - - b.Property("color"); - - b.Property("icon") - .HasAnnotation("Relational:DefaultValue", "exclam") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("sound"); - - b.Property("tag"); - - b.Property("title") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId"); - - b.Property("DjSettingsUserId"); - - b.Property("GeneralSettingsUserId"); - - b.Property("Rate"); - - b.Property("TendencyId"); - - b.HasKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId"); - - b.Property("SoundCloudId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId"); - - b.Property("UserId"); - - b.HasKey("InstrumentId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Property("CreationToken"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ExecutorId") - .IsRequired(); - - b.Property("OrderReference"); - - b.Property("PaypalPayerId"); - - b.Property("State"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("CreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId"); - - b.Property("CircleId"); - - b.HasKey("MemberId", "CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.Property("HRef"); - - b.Property("Method"); - - b.Property("BrusherProfileUserId"); - - b.Property("ContentType"); - - b.Property("PayPalPaymentCreationToken"); - - b.Property("Rel"); - - b.HasKey("HRef", "Method"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.LocationType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("Hidden"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("SettingsClassName"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActionName"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FormationSettingsUserId"); - - b.Property("PerformerId"); - - b.Property("WorkingForId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients"); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationTypeId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("DoesCode", "UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("BlogPostId"); - - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("PostId"); - - b.HasOne("Yavsc.Models.Relationship.Tag") - .WithMany() - .HasForeignKey("TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Calendar.Period") - .WithMany() - .HasForeignKey("PeriodStart", "PeriodEnd"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("SelectedProfileUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery") - .WithMany() - .HasForeignKey("QueryId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color") - .WithMany() - .HasForeignKey("ColorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairTaint") - .WithMany() - .HasForeignKey("TaintId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("BillingAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.HasOne("Yavsc.Models.Messaging.Notification") - .WithMany() - .HasForeignKey("NotificationId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings") - .WithMany() - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings") - .WithMany() - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ExecutorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("BrusherProfileUserId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PayPalPaymentCreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings") - .WithMany() - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("WorkingForId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Relationship.LocationType") - .WithMany() - .HasForeignKey("LocationTypeId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20171003195221_BlogRename.cs b/src/Yavsc.Server/Migrations/2017/20171003195221_BlogRename.cs deleted file mode 100644 index 3dcd48d0..00000000 --- a/src/Yavsc.Server/Migrations/2017/20171003195221_BlogRename.cs +++ /dev/null @@ -1,726 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -namespace Yavsc.Migrations -{ - public partial class BlogRename : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Schedule_ApplicationUser_OwnerId", table: "Schedule"); - migrationBuilder.DropForeignKey(name: "FK_Connection_ApplicationUser_ApplicationUserId", table: "Connection"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PayPalPayment_ApplicationUser_ExecutorId", table: "PayPalPayment"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_Blog_PostId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_Tag_TagId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - - migrationBuilder.RenameTable("Blog",null,"BlogPost",null); - - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_BlogPost_PostId", - table: "BlogTag", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_Tag_TagId", - table: "BlogTag", - column: "TagId", - principalTable: "Tag", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Schedule_ApplicationUser_OwnerId", - table: "Schedule", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Connection_ApplicationUser_ApplicationUserId", - table: "Connection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PayPalPayment_ApplicationUser_ExecutorId", - table: "PayPalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_BlogPost_PostId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_Tag_TagId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_Schedule_ApplicationUser_OwnerId", table: "Schedule"); - migrationBuilder.DropForeignKey(name: "FK_Connection_ApplicationUser_ApplicationUserId", table: "Connection"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PayPalPayment_ApplicationUser_ExecutorId", table: "PayPalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.RenameTable("BlogPost",null,"Blog",null); - - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blog_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Schedule_ApplicationUser_OwnerId", - table: "Schedule", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Connection_ApplicationUser_ApplicationUserId", - table: "Connection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PayPalPayment_ApplicationUser_ExecutorId", - table: "PayPalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_Blog_PostId", - table: "BlogTag", - column: "PostId", - principalTable: "Blog", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_Tag_TagId", - table: "BlogTag", - column: "TagId", - principalTable: "Tag", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20171003203721_BlogComment.Designer.cs b/src/Yavsc.Server/Migrations/2017/20171003203721_BlogComment.Designer.cs deleted file mode 100644 index 81fc9df2..00000000 --- a/src/Yavsc.Server/Migrations/2017/20171003203721_BlogComment.Designer.cs +++ /dev/null @@ -1,1677 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20171003203721_BlogComment")] - partial class BlogComment - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId"); - - b.Property("BlogPostId"); - - b.HasKey("CircleId", "BlogPostId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512) - .HasAnnotation("Relational:DefaultValue", "/images/Users/icon_user.png") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("DiskQuota") - .HasAnnotation("Relational:DefaultValue", "524288000") - .HasAnnotation("Relational:DefaultValueType", "System.Int64"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Count"); - - b.Property("Currency"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 256); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType") - .IsRequired(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content") - .HasAnnotation("MaxLength", 57344); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Photo"); - - b.Property("Rate") - .HasAnnotation("MaxLength", 1024); - - b.Property("Title") - .HasAnnotation("MaxLength", 1024); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Content") - .HasAnnotation("MaxLength", 1024); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("PostId"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Period", b => - { - b.Property("Start"); - - b.Property("End"); - - b.HasKey("Start", "End"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Property("OwnerId"); - - b.HasKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PeriodEnd"); - - b.Property("PeriodStart"); - - b.Property("Reccurence"); - - b.Property("ScheduleOwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId") - .IsRequired(); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Cratie.Option", b => - { - b.Property("Code"); - - b.Property("CodeScrutin"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code", "CodeScrutin"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Blue"); - - b.Property("Green"); - - b.Property("Name"); - - b.Property("Red"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id"); - - b.Property("Summary"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId"); - - b.Property("ActionDistance"); - - b.Property("CarePrice"); - - b.Property("FlatFeeDiscount"); - - b.Property("HalfBalayagePrice"); - - b.Property("HalfBrushingPrice"); - - b.Property("HalfColorPrice"); - - b.Property("HalfDefrisPrice"); - - b.Property("HalfFoldingPrice"); - - b.Property("HalfMechPrice"); - - b.Property("HalfMultiColorPrice"); - - b.Property("HalfPermanentPrice"); - - b.Property("KidCutPrice"); - - b.Property("LongBalayagePrice"); - - b.Property("LongBrushingPrice"); - - b.Property("LongColorPrice"); - - b.Property("LongDefrisPrice"); - - b.Property("LongFoldingPrice"); - - b.Property("LongMechPrice"); - - b.Property("LongMultiColorPrice"); - - b.Property("LongPermanentPrice"); - - b.Property("ManBrushPrice"); - - b.Property("ManCutPrice"); - - b.Property("ScheduleOwnerId"); - - b.Property("ShampooPrice"); - - b.Property("ShortBalayagePrice"); - - b.Property("ShortBrushingPrice"); - - b.Property("ShortColorPrice"); - - b.Property("ShortDefrisPrice"); - - b.Property("ShortFoldingPrice"); - - b.Property("ShortMechPrice"); - - b.Property("ShortMultiColorPrice"); - - b.Property("ShortPermanentPrice"); - - b.Property("WomenHalfCutPrice"); - - b.Property("WomenLongCutPrice"); - - b.Property("WomenShortCutPrice"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("AdditionalInfo") - .HasAnnotation("MaxLength", 512); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("PrestationId"); - - b.Property("Previsional"); - - b.Property("SelectedProfileUserId"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Cares"); - - b.Property("Cut"); - - b.Property("Dressing"); - - b.Property("Gender"); - - b.Property("Length"); - - b.Property("Shampoo"); - - b.Property("Tech"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PrestationId"); - - b.Property("QueryId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Brand"); - - b.Property("ColorId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.Property("TaintId"); - - b.Property("PrestationId"); - - b.HasKey("TaintId", "PrestationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FeatureId"); - - b.Property("Status"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Maintaining.Feature", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("ShortName"); - - b.Property("Status"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Depth"); - - b.Property("Description"); - - b.Property("Height"); - - b.Property("Name"); - - b.Property("Price"); - - b.Property("Public"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.Property("UserId"); - - b.Property("NotificationId"); - - b.HasKey("UserId", "NotificationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Target"); - - b.Property("body") - .IsRequired(); - - b.Property("click_action") - .IsRequired(); - - b.Property("color"); - - b.Property("icon") - .HasAnnotation("Relational:DefaultValue", "exclam") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("sound"); - - b.Property("tag"); - - b.Property("title") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId"); - - b.Property("DjSettingsUserId"); - - b.Property("GeneralSettingsUserId"); - - b.Property("Rate"); - - b.Property("TendencyId"); - - b.HasKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId"); - - b.Property("SoundCloudId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId"); - - b.Property("UserId"); - - b.HasKey("InstrumentId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Property("CreationToken"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ExecutorId") - .IsRequired(); - - b.Property("OrderReference"); - - b.Property("PaypalPayerId"); - - b.Property("State"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("CreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId"); - - b.Property("CircleId"); - - b.HasKey("MemberId", "CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.Property("HRef"); - - b.Property("Method"); - - b.Property("BrusherProfileUserId"); - - b.Property("ContentType"); - - b.Property("PayPalPaymentCreationToken"); - - b.Property("Rel"); - - b.HasKey("HRef", "Method"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.LocationType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("Hidden"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("SettingsClassName"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActionName"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FormationSettingsUserId"); - - b.Property("PerformerId"); - - b.Property("WorkingForId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients"); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationTypeId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("DoesCode", "UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("BlogPostId"); - - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("PostId"); - - b.HasOne("Yavsc.Models.Relationship.Tag") - .WithMany() - .HasForeignKey("TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Calendar.Period") - .WithMany() - .HasForeignKey("PeriodStart", "PeriodEnd"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("SelectedProfileUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery") - .WithMany() - .HasForeignKey("QueryId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color") - .WithMany() - .HasForeignKey("ColorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairTaint") - .WithMany() - .HasForeignKey("TaintId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("BillingAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.HasOne("Yavsc.Models.Messaging.Notification") - .WithMany() - .HasForeignKey("NotificationId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings") - .WithMany() - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings") - .WithMany() - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ExecutorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("BrusherProfileUserId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PayPalPaymentCreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings") - .WithMany() - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("WorkingForId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Relationship.LocationType") - .WithMany() - .HasForeignKey("LocationTypeId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20171003203721_BlogComment.cs b/src/Yavsc.Server/Migrations/2017/20171003203721_BlogComment.cs deleted file mode 100644 index 8adcf8f3..00000000 --- a/src/Yavsc.Server/Migrations/2017/20171003203721_BlogComment.cs +++ /dev/null @@ -1,746 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -namespace Yavsc.Migrations -{ - public partial class BlogComment : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_BlogPost_PostId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_Tag_TagId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_Schedule_ApplicationUser_OwnerId", table: "Schedule"); - migrationBuilder.DropForeignKey(name: "FK_Connection_ApplicationUser_ApplicationUserId", table: "Connection"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PayPalPayment_ApplicationUser_ExecutorId", table: "PayPalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.CreateTable( - name: "Comment", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("Npgsql:Serial", true), - Content = table.Column(nullable: true), - DateCreated = table.Column(nullable: false), - DateModified = table.Column(nullable: false), - PostId = table.Column(nullable: false), - UserCreated = table.Column(nullable: true), - UserModified = table.Column(nullable: true), - Visible = table.Column(nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Comment", x => x.Id); - table.ForeignKey( - name: "FK_Comment_BlogPost_PostId", - column: x => x.PostId, - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_BlogPost_PostId", - table: "BlogTag", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_Tag_TagId", - table: "BlogTag", - column: "TagId", - principalTable: "Tag", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Schedule_ApplicationUser_OwnerId", - table: "Schedule", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Connection_ApplicationUser_ApplicationUserId", - table: "Connection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PayPalPayment_ApplicationUser_ExecutorId", - table: "PayPalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_BlogPost_PostId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_Tag_TagId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_Schedule_ApplicationUser_OwnerId", table: "Schedule"); - migrationBuilder.DropForeignKey(name: "FK_Connection_ApplicationUser_ApplicationUserId", table: "Connection"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PayPalPayment_ApplicationUser_ExecutorId", table: "PayPalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropTable("Comment"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_BlogPost_PostId", - table: "BlogTag", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_Tag_TagId", - table: "BlogTag", - column: "TagId", - principalTable: "Tag", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Schedule_ApplicationUser_OwnerId", - table: "Schedule", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Connection_ApplicationUser_ApplicationUserId", - table: "Connection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PayPalPayment_ApplicationUser_ExecutorId", - table: "PayPalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20171008184908_annouce.Designer.cs b/src/Yavsc.Server/Migrations/2017/20171008184908_annouce.Designer.cs deleted file mode 100644 index 94d444f8..00000000 --- a/src/Yavsc.Server/Migrations/2017/20171008184908_annouce.Designer.cs +++ /dev/null @@ -1,1697 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20171008184908_annouce")] - partial class annouce - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId"); - - b.Property("BlogPostId"); - - b.HasKey("CircleId", "BlogPostId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512) - .HasAnnotation("Relational:DefaultValue", "/images/Users/icon_user.png") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("DiskQuota") - .HasAnnotation("Relational:DefaultValue", "524288000") - .HasAnnotation("Relational:DefaultValueType", "System.Int64"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Count"); - - b.Property("Currency"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 256); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType") - .IsRequired(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content") - .HasAnnotation("MaxLength", 56224); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Photo") - .HasAnnotation("MaxLength", 1024); - - b.Property("Rate"); - - b.Property("Title") - .HasAnnotation("MaxLength", 1024); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Content"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("PostId"); - - b.Property("UserCreated") - .IsRequired(); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Period", b => - { - b.Property("Start"); - - b.Property("End"); - - b.HasKey("Start", "End"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Property("OwnerId"); - - b.HasKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PeriodEnd"); - - b.Property("PeriodStart"); - - b.Property("Reccurence"); - - b.Property("ScheduleOwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId") - .IsRequired(); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Cratie.Option", b => - { - b.Property("Code"); - - b.Property("CodeScrutin"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code", "CodeScrutin"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Blue"); - - b.Property("Green"); - - b.Property("Name"); - - b.Property("Red"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id"); - - b.Property("Summary"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId"); - - b.Property("ActionDistance"); - - b.Property("CarePrice"); - - b.Property("FlatFeeDiscount"); - - b.Property("HalfBalayagePrice"); - - b.Property("HalfBrushingPrice"); - - b.Property("HalfColorPrice"); - - b.Property("HalfDefrisPrice"); - - b.Property("HalfFoldingPrice"); - - b.Property("HalfMechPrice"); - - b.Property("HalfMultiColorPrice"); - - b.Property("HalfPermanentPrice"); - - b.Property("KidCutPrice"); - - b.Property("LongBalayagePrice"); - - b.Property("LongBrushingPrice"); - - b.Property("LongColorPrice"); - - b.Property("LongDefrisPrice"); - - b.Property("LongFoldingPrice"); - - b.Property("LongMechPrice"); - - b.Property("LongMultiColorPrice"); - - b.Property("LongPermanentPrice"); - - b.Property("ManBrushPrice"); - - b.Property("ManCutPrice"); - - b.Property("ScheduleOwnerId"); - - b.Property("ShampooPrice"); - - b.Property("ShortBalayagePrice"); - - b.Property("ShortBrushingPrice"); - - b.Property("ShortColorPrice"); - - b.Property("ShortDefrisPrice"); - - b.Property("ShortFoldingPrice"); - - b.Property("ShortMechPrice"); - - b.Property("ShortMultiColorPrice"); - - b.Property("ShortPermanentPrice"); - - b.Property("WomenHalfCutPrice"); - - b.Property("WomenLongCutPrice"); - - b.Property("WomenShortCutPrice"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("AdditionalInfo") - .HasAnnotation("MaxLength", 512); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("PrestationId"); - - b.Property("Previsional"); - - b.Property("SelectedProfileUserId"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Cares"); - - b.Property("Cut"); - - b.Property("Dressing"); - - b.Property("Gender"); - - b.Property("Length"); - - b.Property("Shampoo"); - - b.Property("Tech"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PrestationId"); - - b.Property("QueryId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Brand"); - - b.Property("ColorId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.Property("TaintId"); - - b.Property("PrestationId"); - - b.HasKey("TaintId", "PrestationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FeatureId"); - - b.Property("Status"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Maintaining.Feature", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("ShortName"); - - b.Property("Status"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Depth"); - - b.Property("Description"); - - b.Property("Height"); - - b.Property("Name"); - - b.Property("Price"); - - b.Property("Public"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("For"); - - b.Property("Message"); - - b.Property("Sender"); - - b.Property("Topic"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.Property("UserId"); - - b.Property("NotificationId"); - - b.HasKey("UserId", "NotificationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Target"); - - b.Property("body") - .IsRequired(); - - b.Property("click_action") - .IsRequired(); - - b.Property("color"); - - b.Property("icon") - .HasAnnotation("Relational:DefaultValue", "exclam") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("sound"); - - b.Property("tag"); - - b.Property("title") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId"); - - b.Property("DjSettingsUserId"); - - b.Property("GeneralSettingsUserId"); - - b.Property("Rate"); - - b.Property("TendencyId"); - - b.HasKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId"); - - b.Property("SoundCloudId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId"); - - b.Property("UserId"); - - b.HasKey("InstrumentId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Property("CreationToken"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ExecutorId") - .IsRequired(); - - b.Property("OrderReference"); - - b.Property("PaypalPayerId"); - - b.Property("State"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("CreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId"); - - b.Property("CircleId"); - - b.HasKey("MemberId", "CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.Property("HRef"); - - b.Property("Method"); - - b.Property("BrusherProfileUserId"); - - b.Property("ContentType"); - - b.Property("PayPalPaymentCreationToken"); - - b.Property("Rel"); - - b.HasKey("HRef", "Method"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.LocationType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("Hidden"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("SettingsClassName"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActionName"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FormationSettingsUserId"); - - b.Property("PerformerId"); - - b.Property("WorkingForId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients"); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationTypeId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("DoesCode", "UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("BlogPostId"); - - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("PostId"); - - b.HasOne("Yavsc.Models.Relationship.Tag") - .WithMany() - .HasForeignKey("TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("PostId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserCreated"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Calendar.Period") - .WithMany() - .HasForeignKey("PeriodStart", "PeriodEnd"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("SelectedProfileUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery") - .WithMany() - .HasForeignKey("QueryId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color") - .WithMany() - .HasForeignKey("ColorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairTaint") - .WithMany() - .HasForeignKey("TaintId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("BillingAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.HasOne("Yavsc.Models.Messaging.Notification") - .WithMany() - .HasForeignKey("NotificationId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings") - .WithMany() - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings") - .WithMany() - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ExecutorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("BrusherProfileUserId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PayPalPaymentCreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings") - .WithMany() - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("WorkingForId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Relationship.LocationType") - .WithMany() - .HasForeignKey("LocationTypeId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20171008184908_annouce.cs b/src/Yavsc.Server/Migrations/2017/20171008184908_annouce.cs deleted file mode 100644 index 8e757460..00000000 --- a/src/Yavsc.Server/Migrations/2017/20171008184908_annouce.cs +++ /dev/null @@ -1,770 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class annouce : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_BlogPost_PostId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_Tag_TagId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_Comment_BlogPost_PostId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Schedule_ApplicationUser_OwnerId", table: "Schedule"); - migrationBuilder.DropForeignKey(name: "FK_Connection_ApplicationUser_ApplicationUserId", table: "Connection"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PayPalPayment_ApplicationUser_ExecutorId", table: "PayPalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.CreateTable( - name: "Announce", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("Npgsql:Serial", true), - For = table.Column(nullable: false), - Message = table.Column(nullable: true), - Sender = table.Column(nullable: true), - Topic = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Announce", x => x.Id); - }); - migrationBuilder.AlterColumn( - name: "UserCreated", - table: "Comment", - nullable: false); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_BlogPost_PostId", - table: "BlogTag", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_Tag_TagId", - table: "BlogTag", - column: "TagId", - principalTable: "Tag", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Comment_BlogPost_PostId", - table: "Comment", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Comment_ApplicationUser_UserCreated", - table: "Comment", - column: "UserCreated", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Schedule_ApplicationUser_OwnerId", - table: "Schedule", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Connection_ApplicationUser_ApplicationUserId", - table: "Connection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PayPalPayment_ApplicationUser_ExecutorId", - table: "PayPalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_BlogPost_PostId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_Tag_TagId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_Comment_BlogPost_PostId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Comment_ApplicationUser_UserCreated", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Schedule_ApplicationUser_OwnerId", table: "Schedule"); - migrationBuilder.DropForeignKey(name: "FK_Connection_ApplicationUser_ApplicationUserId", table: "Connection"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PayPalPayment_ApplicationUser_ExecutorId", table: "PayPalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropTable("Announce"); - migrationBuilder.AlterColumn( - name: "UserCreated", - table: "Comment", - nullable: true); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_BlogPost_PostId", - table: "BlogTag", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_Tag_TagId", - table: "BlogTag", - column: "TagId", - principalTable: "Tag", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Comment_BlogPost_PostId", - table: "Comment", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Schedule_ApplicationUser_OwnerId", - table: "Schedule", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Connection_ApplicationUser_ApplicationUserId", - table: "Connection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PayPalPayment_ApplicationUser_ExecutorId", - table: "PayPalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20171008190234_announceAnwer.Designer.cs b/src/Yavsc.Server/Migrations/2017/20171008190234_announceAnwer.Designer.cs deleted file mode 100644 index f0081eba..00000000 --- a/src/Yavsc.Server/Migrations/2017/20171008190234_announceAnwer.Designer.cs +++ /dev/null @@ -1,1706 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20171008190234_announceAnwer")] - partial class announceAnwer - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId"); - - b.Property("BlogPostId"); - - b.HasKey("CircleId", "BlogPostId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512) - .HasAnnotation("Relational:DefaultValue", "/images/Users/icon_user.png") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("DiskQuota") - .HasAnnotation("Relational:DefaultValue", "524288000") - .HasAnnotation("Relational:DefaultValueType", "System.Int64"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Count"); - - b.Property("Currency"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 256); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType") - .IsRequired(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content") - .HasAnnotation("MaxLength", 56224); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Photo") - .HasAnnotation("MaxLength", 1024); - - b.Property("Rate"); - - b.Property("Title") - .HasAnnotation("MaxLength", 1024); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Content"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("PostId"); - - b.Property("UserCreated") - .IsRequired(); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Period", b => - { - b.Property("Start"); - - b.Property("End"); - - b.HasKey("Start", "End"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Property("OwnerId"); - - b.HasKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PeriodEnd"); - - b.Property("PeriodStart"); - - b.Property("Reccurence"); - - b.Property("ScheduleOwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId") - .IsRequired(); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Cratie.Option", b => - { - b.Property("Code"); - - b.Property("CodeScrutin"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code", "CodeScrutin"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Blue"); - - b.Property("Green"); - - b.Property("Name"); - - b.Property("Red"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id"); - - b.Property("Summary"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId"); - - b.Property("ActionDistance"); - - b.Property("CarePrice"); - - b.Property("FlatFeeDiscount"); - - b.Property("HalfBalayagePrice"); - - b.Property("HalfBrushingPrice"); - - b.Property("HalfColorPrice"); - - b.Property("HalfDefrisPrice"); - - b.Property("HalfFoldingPrice"); - - b.Property("HalfMechPrice"); - - b.Property("HalfMultiColorPrice"); - - b.Property("HalfPermanentPrice"); - - b.Property("KidCutPrice"); - - b.Property("LongBalayagePrice"); - - b.Property("LongBrushingPrice"); - - b.Property("LongColorPrice"); - - b.Property("LongDefrisPrice"); - - b.Property("LongFoldingPrice"); - - b.Property("LongMechPrice"); - - b.Property("LongMultiColorPrice"); - - b.Property("LongPermanentPrice"); - - b.Property("ManBrushPrice"); - - b.Property("ManCutPrice"); - - b.Property("ScheduleOwnerId"); - - b.Property("ShampooPrice"); - - b.Property("ShortBalayagePrice"); - - b.Property("ShortBrushingPrice"); - - b.Property("ShortColorPrice"); - - b.Property("ShortDefrisPrice"); - - b.Property("ShortFoldingPrice"); - - b.Property("ShortMechPrice"); - - b.Property("ShortMultiColorPrice"); - - b.Property("ShortPermanentPrice"); - - b.Property("WomenHalfCutPrice"); - - b.Property("WomenLongCutPrice"); - - b.Property("WomenShortCutPrice"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("AdditionalInfo") - .HasAnnotation("MaxLength", 512); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("PrestationId"); - - b.Property("Previsional"); - - b.Property("SelectedProfileUserId"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Cares"); - - b.Property("Cut"); - - b.Property("Dressing"); - - b.Property("Gender"); - - b.Property("Length"); - - b.Property("Shampoo"); - - b.Property("Tech"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PrestationId"); - - b.Property("QueryId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Brand"); - - b.Property("ColorId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.Property("TaintId"); - - b.Property("PrestationId"); - - b.HasKey("TaintId", "PrestationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FeatureId"); - - b.Property("Status"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Maintaining.Feature", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("ShortName"); - - b.Property("Status"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Depth"); - - b.Property("Description"); - - b.Property("Height"); - - b.Property("Name"); - - b.Property("Price"); - - b.Property("Public"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("For"); - - b.Property("Message"); - - b.Property("OwnerId"); - - b.Property("Sender"); - - b.Property("Topic"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.Property("UserId"); - - b.Property("NotificationId"); - - b.HasKey("UserId", "NotificationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Target"); - - b.Property("body") - .IsRequired(); - - b.Property("click_action") - .IsRequired(); - - b.Property("color"); - - b.Property("icon") - .HasAnnotation("Relational:DefaultValue", "exclam") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("sound"); - - b.Property("tag"); - - b.Property("title") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId"); - - b.Property("DjSettingsUserId"); - - b.Property("GeneralSettingsUserId"); - - b.Property("Rate"); - - b.Property("TendencyId"); - - b.HasKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId"); - - b.Property("SoundCloudId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId"); - - b.Property("UserId"); - - b.HasKey("InstrumentId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Property("CreationToken"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ExecutorId") - .IsRequired(); - - b.Property("OrderReference"); - - b.Property("PaypalPayerId"); - - b.Property("State"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("CreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId"); - - b.Property("CircleId"); - - b.HasKey("MemberId", "CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.Property("HRef"); - - b.Property("Method"); - - b.Property("BrusherProfileUserId"); - - b.Property("ContentType"); - - b.Property("PayPalPaymentCreationToken"); - - b.Property("Rel"); - - b.HasKey("HRef", "Method"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.LocationType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("Hidden"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("SettingsClassName"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActionName"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FormationSettingsUserId"); - - b.Property("PerformerId"); - - b.Property("WorkingForId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients"); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationTypeId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("DoesCode", "UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("BlogPostId"); - - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("PostId"); - - b.HasOne("Yavsc.Models.Relationship.Tag") - .WithMany() - .HasForeignKey("TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("PostId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserCreated"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Calendar.Period") - .WithMany() - .HasForeignKey("PeriodStart", "PeriodEnd"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("SelectedProfileUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery") - .WithMany() - .HasForeignKey("QueryId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color") - .WithMany() - .HasForeignKey("ColorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairTaint") - .WithMany() - .HasForeignKey("TaintId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("BillingAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.HasOne("Yavsc.Models.Messaging.Notification") - .WithMany() - .HasForeignKey("NotificationId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings") - .WithMany() - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings") - .WithMany() - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ExecutorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("BrusherProfileUserId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PayPalPaymentCreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings") - .WithMany() - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("WorkingForId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Relationship.LocationType") - .WithMany() - .HasForeignKey("LocationTypeId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20171008190234_announceAnwer.cs b/src/Yavsc.Server/Migrations/2017/20171008190234_announceAnwer.cs deleted file mode 100644 index 5f6b8806..00000000 --- a/src/Yavsc.Server/Migrations/2017/20171008190234_announceAnwer.cs +++ /dev/null @@ -1,767 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class announceAnwer : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_BlogPost_PostId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_Tag_TagId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_Comment_BlogPost_PostId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Comment_ApplicationUser_UserCreated", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Schedule_ApplicationUser_OwnerId", table: "Schedule"); - migrationBuilder.DropForeignKey(name: "FK_Connection_ApplicationUser_ApplicationUserId", table: "Connection"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PayPalPayment_ApplicationUser_ExecutorId", table: "PayPalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.AddColumn( - name: "OwnerId", - table: "Announce", - nullable: true); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_BlogPost_PostId", - table: "BlogTag", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_Tag_TagId", - table: "BlogTag", - column: "TagId", - principalTable: "Tag", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Comment_BlogPost_PostId", - table: "Comment", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Comment_ApplicationUser_UserCreated", - table: "Comment", - column: "UserCreated", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Schedule_ApplicationUser_OwnerId", - table: "Schedule", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Connection_ApplicationUser_ApplicationUserId", - table: "Connection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Announce_ApplicationUser_OwnerId", - table: "Announce", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PayPalPayment_ApplicationUser_ExecutorId", - table: "PayPalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_BlogPost_PostId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_Tag_TagId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_Comment_BlogPost_PostId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Comment_ApplicationUser_UserCreated", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Schedule_ApplicationUser_OwnerId", table: "Schedule"); - migrationBuilder.DropForeignKey(name: "FK_Connection_ApplicationUser_ApplicationUserId", table: "Connection"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_Announce_ApplicationUser_OwnerId", table: "Announce"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PayPalPayment_ApplicationUser_ExecutorId", table: "PayPalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropColumn(name: "OwnerId", table: "Announce"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_BlogPost_PostId", - table: "BlogTag", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_Tag_TagId", - table: "BlogTag", - column: "TagId", - principalTable: "Tag", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Comment_BlogPost_PostId", - table: "Comment", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Comment_ApplicationUser_UserCreated", - table: "Comment", - column: "UserCreated", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Schedule_ApplicationUser_OwnerId", - table: "Schedule", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Connection_ApplicationUser_ApplicationUserId", - table: "Connection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PayPalPayment_ApplicationUser_ExecutorId", - table: "PayPalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20171016090837_bugDescription.Designer.cs b/src/Yavsc.Server/Migrations/2017/20171016090837_bugDescription.Designer.cs deleted file mode 100644 index d9165562..00000000 --- a/src/Yavsc.Server/Migrations/2017/20171016090837_bugDescription.Designer.cs +++ /dev/null @@ -1,1708 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20171016090837_bugDescription")] - partial class bugDescription - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId"); - - b.Property("BlogPostId"); - - b.HasKey("CircleId", "BlogPostId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512) - .HasAnnotation("Relational:DefaultValue", "/images/Users/icon_user.png") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("DiskQuota") - .HasAnnotation("Relational:DefaultValue", "524288000") - .HasAnnotation("Relational:DefaultValueType", "System.Int64"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Count"); - - b.Property("Currency"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 256); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType") - .IsRequired(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content") - .HasAnnotation("MaxLength", 56224); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Photo") - .HasAnnotation("MaxLength", 1024); - - b.Property("Rate"); - - b.Property("Title") - .HasAnnotation("MaxLength", 1024); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Content"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("PostId"); - - b.Property("UserCreated") - .IsRequired(); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Period", b => - { - b.Property("Start"); - - b.Property("End"); - - b.HasKey("Start", "End"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Property("OwnerId"); - - b.HasKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PeriodEnd"); - - b.Property("PeriodStart"); - - b.Property("Reccurence"); - - b.Property("ScheduleOwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId") - .IsRequired(); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Cratie.Option", b => - { - b.Property("Code"); - - b.Property("CodeScrutin"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code", "CodeScrutin"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Blue"); - - b.Property("Green"); - - b.Property("Name"); - - b.Property("Red"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id"); - - b.Property("Summary"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId"); - - b.Property("ActionDistance"); - - b.Property("CarePrice"); - - b.Property("FlatFeeDiscount"); - - b.Property("HalfBalayagePrice"); - - b.Property("HalfBrushingPrice"); - - b.Property("HalfColorPrice"); - - b.Property("HalfDefrisPrice"); - - b.Property("HalfFoldingPrice"); - - b.Property("HalfMechPrice"); - - b.Property("HalfMultiColorPrice"); - - b.Property("HalfPermanentPrice"); - - b.Property("KidCutPrice"); - - b.Property("LongBalayagePrice"); - - b.Property("LongBrushingPrice"); - - b.Property("LongColorPrice"); - - b.Property("LongDefrisPrice"); - - b.Property("LongFoldingPrice"); - - b.Property("LongMechPrice"); - - b.Property("LongMultiColorPrice"); - - b.Property("LongPermanentPrice"); - - b.Property("ManBrushPrice"); - - b.Property("ManCutPrice"); - - b.Property("ScheduleOwnerId"); - - b.Property("ShampooPrice"); - - b.Property("ShortBalayagePrice"); - - b.Property("ShortBrushingPrice"); - - b.Property("ShortColorPrice"); - - b.Property("ShortDefrisPrice"); - - b.Property("ShortFoldingPrice"); - - b.Property("ShortMechPrice"); - - b.Property("ShortMultiColorPrice"); - - b.Property("ShortPermanentPrice"); - - b.Property("WomenHalfCutPrice"); - - b.Property("WomenLongCutPrice"); - - b.Property("WomenShortCutPrice"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("AdditionalInfo") - .HasAnnotation("MaxLength", 512); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("PrestationId"); - - b.Property("Previsional"); - - b.Property("SelectedProfileUserId"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Cares"); - - b.Property("Cut"); - - b.Property("Dressing"); - - b.Property("Gender"); - - b.Property("Length"); - - b.Property("Shampoo"); - - b.Property("Tech"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PrestationId"); - - b.Property("QueryId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Brand"); - - b.Property("ColorId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.Property("TaintId"); - - b.Property("PrestationId"); - - b.HasKey("TaintId", "PrestationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("FeatureId"); - - b.Property("Status"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Maintaining.Feature", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("ShortName"); - - b.Property("Status"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Depth"); - - b.Property("Description"); - - b.Property("Height"); - - b.Property("Name"); - - b.Property("Price"); - - b.Property("Public"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("For"); - - b.Property("Message"); - - b.Property("OwnerId"); - - b.Property("Sender"); - - b.Property("Topic"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.Property("UserId"); - - b.Property("NotificationId"); - - b.HasKey("UserId", "NotificationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Target"); - - b.Property("body") - .IsRequired(); - - b.Property("click_action") - .IsRequired(); - - b.Property("color"); - - b.Property("icon") - .HasAnnotation("Relational:DefaultValue", "exclam") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("sound"); - - b.Property("tag"); - - b.Property("title") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId"); - - b.Property("DjSettingsUserId"); - - b.Property("GeneralSettingsUserId"); - - b.Property("Rate"); - - b.Property("TendencyId"); - - b.HasKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId"); - - b.Property("SoundCloudId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId"); - - b.Property("UserId"); - - b.HasKey("InstrumentId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Property("CreationToken"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ExecutorId") - .IsRequired(); - - b.Property("OrderReference"); - - b.Property("PaypalPayerId"); - - b.Property("State"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("CreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId"); - - b.Property("CircleId"); - - b.HasKey("MemberId", "CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.Property("HRef"); - - b.Property("Method"); - - b.Property("BrusherProfileUserId"); - - b.Property("ContentType"); - - b.Property("PayPalPaymentCreationToken"); - - b.Property("Rel"); - - b.HasKey("HRef", "Method"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.LocationType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("Hidden"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("SettingsClassName"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActionName"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FormationSettingsUserId"); - - b.Property("PerformerId"); - - b.Property("WorkingForId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients"); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationTypeId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("DoesCode", "UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("BlogPostId"); - - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("PostId"); - - b.HasOne("Yavsc.Models.Relationship.Tag") - .WithMany() - .HasForeignKey("TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("PostId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserCreated"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Calendar.Period") - .WithMany() - .HasForeignKey("PeriodStart", "PeriodEnd"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("SelectedProfileUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery") - .WithMany() - .HasForeignKey("QueryId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color") - .WithMany() - .HasForeignKey("ColorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairTaint") - .WithMany() - .HasForeignKey("TaintId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("BillingAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.HasOne("Yavsc.Models.Messaging.Notification") - .WithMany() - .HasForeignKey("NotificationId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings") - .WithMany() - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings") - .WithMany() - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ExecutorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("BrusherProfileUserId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PayPalPaymentCreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings") - .WithMany() - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("WorkingForId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Relationship.LocationType") - .WithMany() - .HasForeignKey("LocationTypeId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20171016090837_bugDescription.cs b/src/Yavsc.Server/Migrations/2017/20171016090837_bugDescription.cs deleted file mode 100644 index ab3c2c10..00000000 --- a/src/Yavsc.Server/Migrations/2017/20171016090837_bugDescription.cs +++ /dev/null @@ -1,759 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class bugDescription : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_BlogPost_PostId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_Tag_TagId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_Comment_BlogPost_PostId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Comment_ApplicationUser_UserCreated", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Schedule_ApplicationUser_OwnerId", table: "Schedule"); - migrationBuilder.DropForeignKey(name: "FK_Connection_ApplicationUser_ApplicationUserId", table: "Connection"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PayPalPayment_ApplicationUser_ExecutorId", table: "PayPalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.AddColumn( - name: "Description", - table: "Bug", - nullable: true); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_BlogPost_PostId", - table: "BlogTag", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_Tag_TagId", - table: "BlogTag", - column: "TagId", - principalTable: "Tag", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Comment_BlogPost_PostId", - table: "Comment", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Comment_ApplicationUser_UserCreated", - table: "Comment", - column: "UserCreated", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Schedule_ApplicationUser_OwnerId", - table: "Schedule", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Connection_ApplicationUser_ApplicationUserId", - table: "Connection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PayPalPayment_ApplicationUser_ExecutorId", - table: "PayPalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_BlogPost_PostId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_Tag_TagId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_Comment_BlogPost_PostId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Comment_ApplicationUser_UserCreated", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Schedule_ApplicationUser_OwnerId", table: "Schedule"); - migrationBuilder.DropForeignKey(name: "FK_Connection_ApplicationUser_ApplicationUserId", table: "Connection"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PayPalPayment_ApplicationUser_ExecutorId", table: "PayPalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropColumn(name: "Description", table: "Bug"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_BlogPost_PostId", - table: "BlogTag", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_Tag_TagId", - table: "BlogTag", - column: "TagId", - principalTable: "Tag", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Comment_BlogPost_PostId", - table: "Comment", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Comment_ApplicationUser_UserCreated", - table: "Comment", - column: "UserCreated", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Schedule_ApplicationUser_OwnerId", - table: "Schedule", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Connection_ApplicationUser_ApplicationUserId", - table: "Connection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PayPalPayment_ApplicationUser_ExecutorId", - table: "PayPalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20171019130120_subComment.Designer.cs b/src/Yavsc.Server/Migrations/2017/20171019130120_subComment.Designer.cs deleted file mode 100644 index c33504ae..00000000 --- a/src/Yavsc.Server/Migrations/2017/20171019130120_subComment.Designer.cs +++ /dev/null @@ -1,1714 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20171019130120_subComment")] - partial class subComment - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId"); - - b.Property("BlogPostId"); - - b.HasKey("CircleId", "BlogPostId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512) - .HasAnnotation("Relational:DefaultValue", "/images/Users/icon_user.png") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("DiskQuota") - .HasAnnotation("Relational:DefaultValue", "524288000") - .HasAnnotation("Relational:DefaultValueType", "System.Int64"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Count"); - - b.Property("Currency"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 256); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType") - .IsRequired(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content") - .HasAnnotation("MaxLength", 56224); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Photo") - .HasAnnotation("MaxLength", 1024); - - b.Property("Rate"); - - b.Property("Title") - .HasAnnotation("MaxLength", 1024); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Content"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ParentId"); - - b.Property("PostId"); - - b.Property("UserCreated") - .IsRequired(); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Period", b => - { - b.Property("Start"); - - b.Property("End"); - - b.HasKey("Start", "End"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Property("OwnerId"); - - b.HasKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PeriodEnd"); - - b.Property("PeriodStart"); - - b.Property("Reccurence"); - - b.Property("ScheduleOwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId") - .IsRequired(); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Cratie.Option", b => - { - b.Property("Code"); - - b.Property("CodeScrutin"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code", "CodeScrutin"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Blue"); - - b.Property("Green"); - - b.Property("Name"); - - b.Property("Red"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id"); - - b.Property("Summary"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId"); - - b.Property("ActionDistance"); - - b.Property("CarePrice"); - - b.Property("FlatFeeDiscount"); - - b.Property("HalfBalayagePrice"); - - b.Property("HalfBrushingPrice"); - - b.Property("HalfColorPrice"); - - b.Property("HalfDefrisPrice"); - - b.Property("HalfFoldingPrice"); - - b.Property("HalfMechPrice"); - - b.Property("HalfMultiColorPrice"); - - b.Property("HalfPermanentPrice"); - - b.Property("KidCutPrice"); - - b.Property("LongBalayagePrice"); - - b.Property("LongBrushingPrice"); - - b.Property("LongColorPrice"); - - b.Property("LongDefrisPrice"); - - b.Property("LongFoldingPrice"); - - b.Property("LongMechPrice"); - - b.Property("LongMultiColorPrice"); - - b.Property("LongPermanentPrice"); - - b.Property("ManBrushPrice"); - - b.Property("ManCutPrice"); - - b.Property("ScheduleOwnerId"); - - b.Property("ShampooPrice"); - - b.Property("ShortBalayagePrice"); - - b.Property("ShortBrushingPrice"); - - b.Property("ShortColorPrice"); - - b.Property("ShortDefrisPrice"); - - b.Property("ShortFoldingPrice"); - - b.Property("ShortMechPrice"); - - b.Property("ShortMultiColorPrice"); - - b.Property("ShortPermanentPrice"); - - b.Property("WomenHalfCutPrice"); - - b.Property("WomenLongCutPrice"); - - b.Property("WomenShortCutPrice"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("AdditionalInfo") - .HasAnnotation("MaxLength", 512); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("PrestationId"); - - b.Property("Previsional"); - - b.Property("SelectedProfileUserId"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Cares"); - - b.Property("Cut"); - - b.Property("Dressing"); - - b.Property("Gender"); - - b.Property("Length"); - - b.Property("Shampoo"); - - b.Property("Tech"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PrestationId"); - - b.Property("QueryId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Brand"); - - b.Property("ColorId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.Property("TaintId"); - - b.Property("PrestationId"); - - b.HasKey("TaintId", "PrestationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("FeatureId"); - - b.Property("Status"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Maintaining.Feature", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("ShortName"); - - b.Property("Status"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Depth"); - - b.Property("Description"); - - b.Property("Height"); - - b.Property("Name"); - - b.Property("Price"); - - b.Property("Public"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("For"); - - b.Property("Message"); - - b.Property("OwnerId"); - - b.Property("Sender"); - - b.Property("Topic"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.Property("UserId"); - - b.Property("NotificationId"); - - b.HasKey("UserId", "NotificationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Target"); - - b.Property("body") - .IsRequired(); - - b.Property("click_action") - .IsRequired(); - - b.Property("color"); - - b.Property("icon") - .HasAnnotation("Relational:DefaultValue", "exclam") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("sound"); - - b.Property("tag"); - - b.Property("title") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId"); - - b.Property("DjSettingsUserId"); - - b.Property("GeneralSettingsUserId"); - - b.Property("Rate"); - - b.Property("TendencyId"); - - b.HasKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId"); - - b.Property("SoundCloudId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId"); - - b.Property("UserId"); - - b.HasKey("InstrumentId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Property("CreationToken"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ExecutorId") - .IsRequired(); - - b.Property("OrderReference"); - - b.Property("PaypalPayerId"); - - b.Property("State"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("CreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId"); - - b.Property("CircleId"); - - b.HasKey("MemberId", "CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.Property("HRef"); - - b.Property("Method"); - - b.Property("BrusherProfileUserId"); - - b.Property("ContentType"); - - b.Property("PayPalPaymentCreationToken"); - - b.Property("Rel"); - - b.HasKey("HRef", "Method"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.LocationType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("Hidden"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("SettingsClassName"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActionName"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FormationSettingsUserId"); - - b.Property("PerformerId"); - - b.Property("WorkingForId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients"); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationTypeId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("DoesCode", "UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("BlogPostId"); - - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("PostId"); - - b.HasOne("Yavsc.Models.Relationship.Tag") - .WithMany() - .HasForeignKey("TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.HasOne("Yavsc.Models.Blog.Comment") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("PostId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserCreated"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Calendar.Period") - .WithMany() - .HasForeignKey("PeriodStart", "PeriodEnd"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("SelectedProfileUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery") - .WithMany() - .HasForeignKey("QueryId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color") - .WithMany() - .HasForeignKey("ColorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairTaint") - .WithMany() - .HasForeignKey("TaintId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("BillingAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.HasOne("Yavsc.Models.Messaging.Notification") - .WithMany() - .HasForeignKey("NotificationId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings") - .WithMany() - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings") - .WithMany() - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ExecutorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("BrusherProfileUserId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PayPalPaymentCreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings") - .WithMany() - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("WorkingForId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Relationship.LocationType") - .WithMany() - .HasForeignKey("LocationTypeId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20171019130120_subComment.cs b/src/Yavsc.Server/Migrations/2017/20171019130120_subComment.cs deleted file mode 100644 index 1d424d0a..00000000 --- a/src/Yavsc.Server/Migrations/2017/20171019130120_subComment.cs +++ /dev/null @@ -1,766 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -namespace Yavsc.Migrations -{ - public partial class subComment : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_BlogPost_PostId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_Tag_TagId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_Comment_BlogPost_PostId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Comment_ApplicationUser_UserCreated", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Schedule_ApplicationUser_OwnerId", table: "Schedule"); - migrationBuilder.DropForeignKey(name: "FK_Connection_ApplicationUser_ApplicationUserId", table: "Connection"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PayPalPayment_ApplicationUser_ExecutorId", table: "PayPalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.AddColumn( - name: "ParentId", - table: "Comment", - nullable: true); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_BlogPost_PostId", - table: "BlogTag", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_Tag_TagId", - table: "BlogTag", - column: "TagId", - principalTable: "Tag", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Comment_Comment_ParentId", - table: "Comment", - column: "ParentId", - principalTable: "Comment", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Comment_BlogPost_PostId", - table: "Comment", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Comment_ApplicationUser_UserCreated", - table: "Comment", - column: "UserCreated", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Schedule_ApplicationUser_OwnerId", - table: "Schedule", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Connection_ApplicationUser_ApplicationUserId", - table: "Connection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PayPalPayment_ApplicationUser_ExecutorId", - table: "PayPalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_BlogPost_PostId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_Tag_TagId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_Comment_Comment_ParentId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Comment_BlogPost_PostId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Comment_ApplicationUser_UserCreated", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Schedule_ApplicationUser_OwnerId", table: "Schedule"); - migrationBuilder.DropForeignKey(name: "FK_Connection_ApplicationUser_ApplicationUserId", table: "Connection"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PayPalPayment_ApplicationUser_ExecutorId", table: "PayPalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropColumn(name: "ParentId", table: "Comment"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_BlogPost_PostId", - table: "BlogTag", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_Tag_TagId", - table: "BlogTag", - column: "TagId", - principalTable: "Tag", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Comment_BlogPost_PostId", - table: "Comment", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Comment_ApplicationUser_UserCreated", - table: "Comment", - column: "UserCreated", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Schedule_ApplicationUser_OwnerId", - table: "Schedule", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Connection_ApplicationUser_ApplicationUserId", - table: "Connection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PayPalPayment_ApplicationUser_ExecutorId", - table: "PayPalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20171020090944_commentAuthor.Designer.cs b/src/Yavsc.Server/Migrations/2017/20171020090944_commentAuthor.Designer.cs deleted file mode 100644 index 8c03389f..00000000 --- a/src/Yavsc.Server/Migrations/2017/20171020090944_commentAuthor.Designer.cs +++ /dev/null @@ -1,1716 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20171020090944_commentAuthor")] - partial class commentAuthor - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId"); - - b.Property("BlogPostId"); - - b.HasKey("CircleId", "BlogPostId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512) - .HasAnnotation("Relational:DefaultValue", "/images/Users/icon_user.png") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("DiskQuota") - .HasAnnotation("Relational:DefaultValue", "524288000") - .HasAnnotation("Relational:DefaultValueType", "System.Int64"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Count"); - - b.Property("Currency"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 256); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType") - .IsRequired(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content") - .HasAnnotation("MaxLength", 56224); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Photo") - .HasAnnotation("MaxLength", 1024); - - b.Property("Rate"); - - b.Property("Title") - .HasAnnotation("MaxLength", 1024); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId") - .IsRequired(); - - b.Property("Content"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ParentId"); - - b.Property("PostId"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Period", b => - { - b.Property("Start"); - - b.Property("End"); - - b.HasKey("Start", "End"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Property("OwnerId"); - - b.HasKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PeriodEnd"); - - b.Property("PeriodStart"); - - b.Property("Reccurence"); - - b.Property("ScheduleOwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId") - .IsRequired(); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Cratie.Option", b => - { - b.Property("Code"); - - b.Property("CodeScrutin"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code", "CodeScrutin"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Blue"); - - b.Property("Green"); - - b.Property("Name"); - - b.Property("Red"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id"); - - b.Property("Summary"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId"); - - b.Property("ActionDistance"); - - b.Property("CarePrice"); - - b.Property("FlatFeeDiscount"); - - b.Property("HalfBalayagePrice"); - - b.Property("HalfBrushingPrice"); - - b.Property("HalfColorPrice"); - - b.Property("HalfDefrisPrice"); - - b.Property("HalfFoldingPrice"); - - b.Property("HalfMechPrice"); - - b.Property("HalfMultiColorPrice"); - - b.Property("HalfPermanentPrice"); - - b.Property("KidCutPrice"); - - b.Property("LongBalayagePrice"); - - b.Property("LongBrushingPrice"); - - b.Property("LongColorPrice"); - - b.Property("LongDefrisPrice"); - - b.Property("LongFoldingPrice"); - - b.Property("LongMechPrice"); - - b.Property("LongMultiColorPrice"); - - b.Property("LongPermanentPrice"); - - b.Property("ManBrushPrice"); - - b.Property("ManCutPrice"); - - b.Property("ScheduleOwnerId"); - - b.Property("ShampooPrice"); - - b.Property("ShortBalayagePrice"); - - b.Property("ShortBrushingPrice"); - - b.Property("ShortColorPrice"); - - b.Property("ShortDefrisPrice"); - - b.Property("ShortFoldingPrice"); - - b.Property("ShortMechPrice"); - - b.Property("ShortMultiColorPrice"); - - b.Property("ShortPermanentPrice"); - - b.Property("WomenHalfCutPrice"); - - b.Property("WomenLongCutPrice"); - - b.Property("WomenShortCutPrice"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("AdditionalInfo") - .HasAnnotation("MaxLength", 512); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("PrestationId"); - - b.Property("Previsional"); - - b.Property("SelectedProfileUserId"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Cares"); - - b.Property("Cut"); - - b.Property("Dressing"); - - b.Property("Gender"); - - b.Property("Length"); - - b.Property("Shampoo"); - - b.Property("Tech"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PrestationId"); - - b.Property("QueryId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Brand"); - - b.Property("ColorId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.Property("TaintId"); - - b.Property("PrestationId"); - - b.HasKey("TaintId", "PrestationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("FeatureId"); - - b.Property("Status"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Maintaining.Feature", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("ShortName"); - - b.Property("Status"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Depth"); - - b.Property("Description"); - - b.Property("Height"); - - b.Property("Name"); - - b.Property("Price"); - - b.Property("Public"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("For"); - - b.Property("Message"); - - b.Property("OwnerId"); - - b.Property("Sender"); - - b.Property("Topic"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.Property("UserId"); - - b.Property("NotificationId"); - - b.HasKey("UserId", "NotificationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Target"); - - b.Property("body") - .IsRequired(); - - b.Property("click_action") - .IsRequired(); - - b.Property("color"); - - b.Property("icon") - .HasAnnotation("Relational:DefaultValue", "exclam") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("sound"); - - b.Property("tag"); - - b.Property("title") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId"); - - b.Property("DjSettingsUserId"); - - b.Property("GeneralSettingsUserId"); - - b.Property("Rate"); - - b.Property("TendencyId"); - - b.HasKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId"); - - b.Property("SoundCloudId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId"); - - b.Property("UserId"); - - b.HasKey("InstrumentId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Property("CreationToken"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ExecutorId") - .IsRequired(); - - b.Property("OrderReference"); - - b.Property("PaypalPayerId"); - - b.Property("State"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("CreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId"); - - b.Property("CircleId"); - - b.HasKey("MemberId", "CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.Property("HRef"); - - b.Property("Method"); - - b.Property("BrusherProfileUserId"); - - b.Property("ContentType"); - - b.Property("PayPalPaymentCreationToken"); - - b.Property("Rel"); - - b.HasKey("HRef", "Method"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.LocationType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("Hidden"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("SettingsClassName"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActionName"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FormationSettingsUserId"); - - b.Property("PerformerId"); - - b.Property("WorkingForId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients"); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationTypeId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("DoesCode", "UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("BlogPostId"); - - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("PostId"); - - b.HasOne("Yavsc.Models.Relationship.Tag") - .WithMany() - .HasForeignKey("TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - - b.HasOne("Yavsc.Models.Blog.Comment") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Calendar.Period") - .WithMany() - .HasForeignKey("PeriodStart", "PeriodEnd"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("SelectedProfileUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery") - .WithMany() - .HasForeignKey("QueryId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color") - .WithMany() - .HasForeignKey("ColorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairTaint") - .WithMany() - .HasForeignKey("TaintId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("BillingAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.HasOne("Yavsc.Models.Messaging.Notification") - .WithMany() - .HasForeignKey("NotificationId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings") - .WithMany() - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings") - .WithMany() - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ExecutorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("BrusherProfileUserId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PayPalPaymentCreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings") - .WithMany() - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("WorkingForId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Relationship.LocationType") - .WithMany() - .HasForeignKey("LocationTypeId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20171020090944_commentAuthor.cs b/src/Yavsc.Server/Migrations/2017/20171020090944_commentAuthor.cs deleted file mode 100644 index 2ee656ee..00000000 --- a/src/Yavsc.Server/Migrations/2017/20171020090944_commentAuthor.cs +++ /dev/null @@ -1,768 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class commentAuthor : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_BlogPost_PostId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_Tag_TagId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_Comment_BlogPost_PostId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Comment_ApplicationUser_UserCreated", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Schedule_ApplicationUser_OwnerId", table: "Schedule"); - migrationBuilder.DropForeignKey(name: "FK_Connection_ApplicationUser_ApplicationUserId", table: "Connection"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PayPalPayment_ApplicationUser_ExecutorId", table: "PayPalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.AlterColumn( - name: "UserCreated", - table: "Comment", - nullable: true); - migrationBuilder.AddColumn( - name: "AuthorId", - table: "Comment", - nullable: false, - defaultValue: ""); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_BlogPost_PostId", - table: "BlogTag", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_Tag_TagId", - table: "BlogTag", - column: "TagId", - principalTable: "Tag", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Comment_ApplicationUser_AuthorId", - table: "Comment", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Comment_BlogPost_PostId", - table: "Comment", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Schedule_ApplicationUser_OwnerId", - table: "Schedule", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Connection_ApplicationUser_ApplicationUserId", - table: "Connection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PayPalPayment_ApplicationUser_ExecutorId", - table: "PayPalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_BlogPost_PostId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_Tag_TagId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_Comment_ApplicationUser_AuthorId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Comment_BlogPost_PostId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Schedule_ApplicationUser_OwnerId", table: "Schedule"); - migrationBuilder.DropForeignKey(name: "FK_Connection_ApplicationUser_ApplicationUserId", table: "Connection"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PayPalPayment_ApplicationUser_ExecutorId", table: "PayPalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropColumn(name: "AuthorId", table: "Comment"); - migrationBuilder.AlterColumn( - name: "UserCreated", - table: "Comment", - nullable: false); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_BlogPost_PostId", - table: "BlogTag", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_Tag_TagId", - table: "BlogTag", - column: "TagId", - principalTable: "Tag", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Comment_BlogPost_PostId", - table: "Comment", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Comment_ApplicationUser_UserCreated", - table: "Comment", - column: "UserCreated", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Schedule_ApplicationUser_OwnerId", - table: "Schedule", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Connection_ApplicationUser_ApplicationUserId", - table: "Connection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PayPalPayment_ApplicationUser_ExecutorId", - table: "PayPalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20171020173835_commentAuthorId.Designer.cs b/src/Yavsc.Server/Migrations/2017/20171020173835_commentAuthorId.Designer.cs deleted file mode 100644 index 887f5b3f..00000000 --- a/src/Yavsc.Server/Migrations/2017/20171020173835_commentAuthorId.Designer.cs +++ /dev/null @@ -1,1717 +0,0 @@ -using System; - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20171020173835_commentAuthorId")] - partial class commentAuthorId - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId"); - - b.Property("BlogPostId"); - - b.HasKey("CircleId", "BlogPostId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512) - .HasAnnotation("Relational:DefaultValue", "/images/Users/icon_user.png") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("DiskQuota") - .HasAnnotation("Relational:DefaultValue", "524288000") - .HasAnnotation("Relational:DefaultValueType", "System.Int64"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Count"); - - b.Property("Currency"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 256); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType") - .IsRequired(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content") - .HasAnnotation("MaxLength", 56224); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Photo") - .HasAnnotation("MaxLength", 1024); - - b.Property("Rate"); - - b.Property("Title") - .HasAnnotation("MaxLength", 1024); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId") - .IsRequired(); - - b.Property("Content"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ParentId"); - - b.Property("PostId"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Period", b => - { - b.Property("Start"); - - b.Property("End"); - - b.HasKey("Start", "End"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Property("OwnerId"); - - b.HasKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PeriodEnd"); - - b.Property("PeriodStart"); - - b.Property("Reccurence"); - - b.Property("ScheduleOwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId") - .IsRequired(); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Cratie.Option", b => - { - b.Property("Code"); - - b.Property("CodeScrutin"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code", "CodeScrutin"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Blue"); - - b.Property("Green"); - - b.Property("Name"); - - b.Property("Red"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id"); - - b.Property("Summary"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId"); - - b.Property("ActionDistance"); - - b.Property("CarePrice"); - - b.Property("FlatFeeDiscount"); - - b.Property("HalfBalayagePrice"); - - b.Property("HalfBrushingPrice"); - - b.Property("HalfColorPrice"); - - b.Property("HalfDefrisPrice"); - - b.Property("HalfFoldingPrice"); - - b.Property("HalfMechPrice"); - - b.Property("HalfMultiColorPrice"); - - b.Property("HalfPermanentPrice"); - - b.Property("KidCutPrice"); - - b.Property("LongBalayagePrice"); - - b.Property("LongBrushingPrice"); - - b.Property("LongColorPrice"); - - b.Property("LongDefrisPrice"); - - b.Property("LongFoldingPrice"); - - b.Property("LongMechPrice"); - - b.Property("LongMultiColorPrice"); - - b.Property("LongPermanentPrice"); - - b.Property("ManBrushPrice"); - - b.Property("ManCutPrice"); - - b.Property("ScheduleOwnerId"); - - b.Property("ShampooPrice"); - - b.Property("ShortBalayagePrice"); - - b.Property("ShortBrushingPrice"); - - b.Property("ShortColorPrice"); - - b.Property("ShortDefrisPrice"); - - b.Property("ShortFoldingPrice"); - - b.Property("ShortMechPrice"); - - b.Property("ShortMultiColorPrice"); - - b.Property("ShortPermanentPrice"); - - b.Property("WomenHalfCutPrice"); - - b.Property("WomenLongCutPrice"); - - b.Property("WomenShortCutPrice"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("AdditionalInfo") - .HasAnnotation("MaxLength", 512); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("PrestationId"); - - b.Property("Previsional"); - - b.Property("SelectedProfileUserId"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Cares"); - - b.Property("Cut"); - - b.Property("Dressing"); - - b.Property("Gender"); - - b.Property("Length"); - - b.Property("Shampoo"); - - b.Property("Tech"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PrestationId"); - - b.Property("QueryId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Brand"); - - b.Property("ColorId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.Property("TaintId"); - - b.Property("PrestationId"); - - b.HasKey("TaintId", "PrestationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("FeatureId"); - - b.Property("Status"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Maintaining.Feature", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("ShortName"); - - b.Property("Status"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Depth"); - - b.Property("Description"); - - b.Property("Height"); - - b.Property("Name"); - - b.Property("Price"); - - b.Property("Public"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("For"); - - b.Property("Message"); - - b.Property("OwnerId"); - - b.Property("Sender"); - - b.Property("Topic"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.Property("UserId"); - - b.Property("NotificationId"); - - b.HasKey("UserId", "NotificationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Target"); - - b.Property("body") - .IsRequired(); - - b.Property("click_action") - .IsRequired(); - - b.Property("color"); - - b.Property("icon") - .HasAnnotation("Relational:DefaultValue", "exclam") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("sound"); - - b.Property("tag"); - - b.Property("title") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId"); - - b.Property("DjSettingsUserId"); - - b.Property("GeneralSettingsUserId"); - - b.Property("Rate"); - - b.Property("TendencyId"); - - b.HasKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId"); - - b.Property("SoundCloudId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId"); - - b.Property("UserId"); - - b.HasKey("InstrumentId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Property("CreationToken"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ExecutorId") - .IsRequired(); - - b.Property("OrderReference"); - - b.Property("PaypalPayerId"); - - b.Property("State"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("CreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId"); - - b.Property("CircleId"); - - b.HasKey("MemberId", "CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.Property("HRef"); - - b.Property("Method"); - - b.Property("BrusherProfileUserId"); - - b.Property("ContentType"); - - b.Property("PayPalPaymentCreationToken"); - - b.Property("Rel"); - - b.HasKey("HRef", "Method"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.LocationType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("Hidden"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("SettingsClassName"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActionName"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FormationSettingsUserId"); - - b.Property("PerformerId"); - - b.Property("WorkingForId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients"); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationTypeId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("DoesCode", "UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("BlogPostId"); - - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("PostId"); - - b.HasOne("Yavsc.Models.Relationship.Tag") - .WithMany() - .HasForeignKey("TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - - b.HasOne("Yavsc.Models.Blog.Comment") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Calendar.Period") - .WithMany() - .HasForeignKey("PeriodStart", "PeriodEnd"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.Connection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("SelectedProfileUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery") - .WithMany() - .HasForeignKey("QueryId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color") - .WithMany() - .HasForeignKey("ColorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairTaint") - .WithMany() - .HasForeignKey("TaintId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("BillingAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.HasOne("Yavsc.Models.Messaging.Notification") - .WithMany() - .HasForeignKey("NotificationId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings") - .WithMany() - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings") - .WithMany() - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ExecutorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("BrusherProfileUserId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PayPalPaymentCreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings") - .WithMany() - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("WorkingForId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Relationship.LocationType") - .WithMany() - .HasForeignKey("LocationTypeId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2017/20171020173835_commentAuthorId.cs b/src/Yavsc.Server/Migrations/2017/20171020173835_commentAuthorId.cs deleted file mode 100644 index cced9121..00000000 --- a/src/Yavsc.Server/Migrations/2017/20171020173835_commentAuthorId.cs +++ /dev/null @@ -1,756 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class commentAuthorId : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_BlogPost_PostId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_Tag_TagId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_Comment_ApplicationUser_AuthorId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Comment_BlogPost_PostId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Schedule_ApplicationUser_OwnerId", table: "Schedule"); - migrationBuilder.DropForeignKey(name: "FK_Connection_ApplicationUser_ApplicationUserId", table: "Connection"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PayPalPayment_ApplicationUser_ExecutorId", table: "PayPalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.Sql("update \"Comment\" set \"AuthorId\"=\"UserModified\" where \"AuthorId\" is null"); - migrationBuilder.Sql("update \"Comment\" set \"AuthorId\"=\"UserCreated\" where \"AuthorId\" is null"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_BlogPost_PostId", - table: "BlogTag", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_Tag_TagId", - table: "BlogTag", - column: "TagId", - principalTable: "Tag", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Comment_ApplicationUser_AuthorId", - table: "Comment", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Comment_BlogPost_PostId", - table: "Comment", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Schedule_ApplicationUser_OwnerId", - table: "Schedule", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Connection_ApplicationUser_ApplicationUserId", - table: "Connection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PayPalPayment_ApplicationUser_ExecutorId", - table: "PayPalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_BlogPost_PostId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_Tag_TagId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_Comment_ApplicationUser_AuthorId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Comment_BlogPost_PostId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Schedule_ApplicationUser_OwnerId", table: "Schedule"); - migrationBuilder.DropForeignKey(name: "FK_Connection_ApplicationUser_ApplicationUserId", table: "Connection"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PayPalPayment_ApplicationUser_ExecutorId", table: "PayPalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_BlogPost_PostId", - table: "BlogTag", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_Tag_TagId", - table: "BlogTag", - column: "TagId", - principalTable: "Tag", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Comment_ApplicationUser_AuthorId", - table: "Comment", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Comment_BlogPost_PostId", - table: "Comment", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Schedule_ApplicationUser_OwnerId", - table: "Schedule", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Connection_ApplicationUser_ApplicationUserId", - table: "Connection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PayPalPayment_ApplicationUser_ExecutorId", - table: "PayPalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2018/20180102153009_chatRooms.Designer.cs b/src/Yavsc.Server/Migrations/2018/20180102153009_chatRooms.Designer.cs deleted file mode 100644 index 6810d5bb..00000000 --- a/src/Yavsc.Server/Migrations/2018/20180102153009_chatRooms.Designer.cs +++ /dev/null @@ -1,1767 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20180102153009_chatRooms")] - partial class chatRooms - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId"); - - b.Property("BlogPostId"); - - b.HasKey("CircleId", "BlogPostId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512) - .HasAnnotation("Relational:DefaultValue", "/images/Users/icon_user.png") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("DiskQuota") - .HasAnnotation("Relational:DefaultValue", "524288000") - .HasAnnotation("Relational:DefaultValueType", "System.Int64"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("MaxFileSize"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Count"); - - b.Property("Currency"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 256); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType") - .IsRequired(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content") - .HasAnnotation("MaxLength", 56224); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Photo") - .HasAnnotation("MaxLength", 1024); - - b.Property("Rate"); - - b.Property("Title") - .HasAnnotation("MaxLength", 1024); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId") - .IsRequired(); - - b.Property("Content"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ParentId"); - - b.Property("PostId"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Period", b => - { - b.Property("Start"); - - b.Property("End"); - - b.HasKey("Start", "End"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Property("OwnerId"); - - b.HasKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PeriodEnd"); - - b.Property("PeriodStart"); - - b.Property("Reccurence"); - - b.Property("ScheduleOwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId") - .IsRequired(); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.Property("Name") - .HasAnnotation("MaxLength", 255); - - b.Property("ApplicationUserId"); - - b.Property("Topic") - .HasAnnotation("MaxLength", 1023); - - b.HasKey("Name"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomPresence", b => - { - b.Property("ChannelName"); - - b.Property("ChatUserConnectionId"); - - b.Property("Level"); - - b.HasKey("ChannelName", "ChatUserConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Cratie.Option", b => - { - b.Property("Code"); - - b.Property("CodeScrutin"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code", "CodeScrutin"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Blue"); - - b.Property("Green"); - - b.Property("Name"); - - b.Property("Red"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id"); - - b.Property("Summary"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId"); - - b.Property("ActionDistance"); - - b.Property("CarePrice"); - - b.Property("FlatFeeDiscount"); - - b.Property("HalfBalayagePrice"); - - b.Property("HalfBrushingPrice"); - - b.Property("HalfColorPrice"); - - b.Property("HalfDefrisPrice"); - - b.Property("HalfFoldingPrice"); - - b.Property("HalfMechPrice"); - - b.Property("HalfMultiColorPrice"); - - b.Property("HalfPermanentPrice"); - - b.Property("KidCutPrice"); - - b.Property("LongBalayagePrice"); - - b.Property("LongBrushingPrice"); - - b.Property("LongColorPrice"); - - b.Property("LongDefrisPrice"); - - b.Property("LongFoldingPrice"); - - b.Property("LongMechPrice"); - - b.Property("LongMultiColorPrice"); - - b.Property("LongPermanentPrice"); - - b.Property("ManBrushPrice"); - - b.Property("ManCutPrice"); - - b.Property("ScheduleOwnerId"); - - b.Property("ShampooPrice"); - - b.Property("ShortBalayagePrice"); - - b.Property("ShortBrushingPrice"); - - b.Property("ShortColorPrice"); - - b.Property("ShortDefrisPrice"); - - b.Property("ShortFoldingPrice"); - - b.Property("ShortMechPrice"); - - b.Property("ShortMultiColorPrice"); - - b.Property("ShortPermanentPrice"); - - b.Property("WomenHalfCutPrice"); - - b.Property("WomenLongCutPrice"); - - b.Property("WomenShortCutPrice"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("AdditionalInfo") - .HasAnnotation("MaxLength", 512); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("PrestationId"); - - b.Property("Previsional"); - - b.Property("SelectedProfileUserId"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Cares"); - - b.Property("Cut"); - - b.Property("Dressing"); - - b.Property("Gender"); - - b.Property("Length"); - - b.Property("Shampoo"); - - b.Property("Tech"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PrestationId"); - - b.Property("QueryId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Brand"); - - b.Property("ColorId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.Property("TaintId"); - - b.Property("PrestationId"); - - b.HasKey("TaintId", "PrestationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("FeatureId"); - - b.Property("Status"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Maintaining.Feature", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("ShortName"); - - b.Property("Status"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Depth"); - - b.Property("Description"); - - b.Property("Height"); - - b.Property("Name"); - - b.Property("Price"); - - b.Property("Public"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("For"); - - b.Property("Message"); - - b.Property("OwnerId"); - - b.Property("Sender"); - - b.Property("Topic"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.Property("UserId"); - - b.Property("NotificationId"); - - b.HasKey("UserId", "NotificationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Target"); - - b.Property("body") - .IsRequired(); - - b.Property("click_action") - .IsRequired(); - - b.Property("color"); - - b.Property("icon") - .HasAnnotation("Relational:DefaultValue", "exclam") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("sound"); - - b.Property("tag"); - - b.Property("title") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId"); - - b.Property("DjSettingsUserId"); - - b.Property("GeneralSettingsUserId"); - - b.Property("Rate"); - - b.Property("TendencyId"); - - b.HasKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId"); - - b.Property("SoundCloudId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId"); - - b.Property("UserId"); - - b.HasKey("InstrumentId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Property("CreationToken"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ExecutorId") - .IsRequired(); - - b.Property("OrderReference"); - - b.Property("PaypalPayerId"); - - b.Property("State"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("CreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId"); - - b.Property("CircleId"); - - b.HasKey("MemberId", "CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.Property("HRef"); - - b.Property("Method"); - - b.Property("BrusherProfileUserId"); - - b.Property("ContentType"); - - b.Property("PayPalPaymentCreationToken"); - - b.Property("Rel"); - - b.HasKey("HRef", "Method"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.LocationType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("Hidden"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("SettingsClassName"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActionName"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FormationSettingsUserId"); - - b.Property("PerformerId"); - - b.Property("WorkingForId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients"); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationTypeId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("DoesCode", "UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("BlogPostId"); - - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("PostId"); - - b.HasOne("Yavsc.Models.Relationship.Tag") - .WithMany() - .HasForeignKey("TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - - b.HasOne("Yavsc.Models.Blog.Comment") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Calendar.Period") - .WithMany() - .HasForeignKey("PeriodStart", "PeriodEnd"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomPresence", b => - { - b.HasOne("Yavsc.Models.Chat.ChatRoom") - .WithMany() - .HasForeignKey("ChannelName"); - - b.HasOne("Yavsc.Models.Chat.ChatConnection") - .WithMany() - .HasForeignKey("ChatUserConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("SelectedProfileUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery") - .WithMany() - .HasForeignKey("QueryId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color") - .WithMany() - .HasForeignKey("ColorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairTaint") - .WithMany() - .HasForeignKey("TaintId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.HasOne("Yavsc.Models.IT.Maintaining.Feature") - .WithMany() - .HasForeignKey("FeatureId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("BillingAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.HasOne("Yavsc.Models.Messaging.Notification") - .WithMany() - .HasForeignKey("NotificationId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings") - .WithMany() - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings") - .WithMany() - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ExecutorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("BrusherProfileUserId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PayPalPaymentCreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings") - .WithMany() - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("WorkingForId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Relationship.LocationType") - .WithMany() - .HasForeignKey("LocationTypeId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2018/20180102153009_chatRooms.cs b/src/Yavsc.Server/Migrations/2018/20180102153009_chatRooms.cs deleted file mode 100644 index 00811b46..00000000 --- a/src/Yavsc.Server/Migrations/2018/20180102153009_chatRooms.cs +++ /dev/null @@ -1,844 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class chatRooms : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_BlogPost_PostId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_Tag_TagId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_Comment_ApplicationUser_AuthorId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Comment_BlogPost_PostId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Schedule_ApplicationUser_OwnerId", table: "Schedule"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PayPalPayment_ApplicationUser_ExecutorId", table: "PayPalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropTable("Connection"); - migrationBuilder.CreateTable( - name: "ChatConnection", - columns: table => new - { - ConnectionId = table.Column(nullable: false), - ApplicationUserId = table.Column(nullable: false), - Connected = table.Column(nullable: false), - UserAgent = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_ChatConnection", x => x.ConnectionId); - table.ForeignKey( - name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", - column: x => x.ApplicationUserId, - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - migrationBuilder.CreateTable( - name: "ChatRoom", - columns: table => new - { - Name = table.Column(nullable: false), - ApplicationUserId = table.Column(nullable: true), - Topic = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_ChatRoom", x => x.Name); - table.ForeignKey( - name: "FK_ChatRoom_ApplicationUser_ApplicationUserId", - column: x => x.ApplicationUserId, - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - }); - migrationBuilder.CreateTable( - name: "ChatRoomPresence", - columns: table => new - { - ChannelName = table.Column(nullable: false), - ChatUserConnectionId = table.Column(nullable: false), - Level = table.Column(nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_ChatRoomPresence", x => new { x.ChannelName, x.ChatUserConnectionId }); - table.ForeignKey( - name: "FK_ChatRoomPresence_ChatRoom_ChannelName", - column: x => x.ChannelName, - principalTable: "ChatRoom", - principalColumn: "Name", - onDelete: ReferentialAction.Restrict); - table.ForeignKey( - name: "FK_ChatRoomPresence_ChatConnection_ChatUserConnectionId", - column: x => x.ChatUserConnectionId, - principalTable: "ChatConnection", - principalColumn: "ConnectionId", - onDelete: ReferentialAction.Restrict); - }); - migrationBuilder.AlterColumn( - name: "FeatureId", - table: "Bug", - nullable: true); - migrationBuilder.AddColumn( - name: "MaxFileSize", - table: "AspNetUsers", - nullable: false, - defaultValue: 0L); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_BlogPost_PostId", - table: "BlogTag", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_Tag_TagId", - table: "BlogTag", - column: "TagId", - principalTable: "Tag", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Comment_ApplicationUser_AuthorId", - table: "Comment", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Comment_BlogPost_PostId", - table: "Comment", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Schedule_ApplicationUser_OwnerId", - table: "Schedule", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Bug_Feature_FeatureId", - table: "Bug", - column: "FeatureId", - principalTable: "Feature", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PayPalPayment_ApplicationUser_ExecutorId", - table: "PayPalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_PerformerProfile_OwnerId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_BlogPost_PostId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_Tag_TagId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_Comment_ApplicationUser_AuthorId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Comment_BlogPost_PostId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Schedule_ApplicationUser_OwnerId", table: "Schedule"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_Bug_Feature_FeatureId", table: "Bug"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PayPalPayment_ApplicationUser_ExecutorId", table: "PayPalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropColumn(name: "MaxFileSize", table: "AspNetUsers"); - migrationBuilder.DropTable("ChatRoomPresence"); - migrationBuilder.DropTable("ChatRoom"); - migrationBuilder.DropTable("ChatConnection"); - migrationBuilder.CreateTable( - name: "Connection", - columns: table => new - { - ConnectionId = table.Column(nullable: false), - ApplicationUserId = table.Column(nullable: false), - Connected = table.Column(nullable: false), - UserAgent = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Connection", x => x.ConnectionId); - table.ForeignKey( - name: "FK_Connection_ApplicationUser_ApplicationUserId", - column: x => x.ApplicationUserId, - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - }); - migrationBuilder.AlterColumn( - name: "FeatureId", - table: "Bug", - nullable: false); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_BlogPost_PostId", - table: "BlogTag", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_Tag_TagId", - table: "BlogTag", - column: "TagId", - principalTable: "Tag", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Comment_ApplicationUser_AuthorId", - table: "Comment", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Comment_BlogPost_PostId", - table: "Comment", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Schedule_ApplicationUser_OwnerId", - table: "Schedule", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PayPalPayment_ApplicationUser_ExecutorId", - table: "PayPalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2018/20180209144114_rejectQuery.Designer.cs b/src/Yavsc.Server/Migrations/2018/20180209144114_rejectQuery.Designer.cs deleted file mode 100644 index 9181dfe4..00000000 --- a/src/Yavsc.Server/Migrations/2018/20180209144114_rejectQuery.Designer.cs +++ /dev/null @@ -1,1771 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20180209144114_rejectQuery")] - partial class rejectQuery - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId"); - - b.Property("BlogPostId"); - - b.HasKey("CircleId", "BlogPostId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512) - .HasAnnotation("Relational:DefaultValue", "/images/Users/icon_user.png") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar"); - - b.Property("DiskQuota") - .HasAnnotation("Relational:DefaultValue", "524288000") - .HasAnnotation("Relational:DefaultValueType", "System.Int64"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("MaxFileSize"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Count"); - - b.Property("Currency"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 256); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType") - .IsRequired(); - - b.Property("Description"); - - b.Property("OwnerId"); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content") - .HasAnnotation("MaxLength", 56224); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Photo") - .HasAnnotation("MaxLength", 1024); - - b.Property("Rate"); - - b.Property("Title") - .HasAnnotation("MaxLength", 1024); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId") - .IsRequired(); - - b.Property("Content"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ParentId"); - - b.Property("PostId"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Period", b => - { - b.Property("Start"); - - b.Property("End"); - - b.HasKey("Start", "End"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Property("OwnerId"); - - b.HasKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PeriodEnd"); - - b.Property("PeriodStart"); - - b.Property("Reccurence"); - - b.Property("ScheduleOwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId") - .IsRequired(); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.Property("Name") - .HasAnnotation("MaxLength", 255); - - b.Property("ApplicationUserId"); - - b.Property("Topic") - .HasAnnotation("MaxLength", 1023); - - b.HasKey("Name"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomPresence", b => - { - b.Property("ChannelName"); - - b.Property("ChatUserConnectionId"); - - b.Property("Level"); - - b.HasKey("ChannelName", "ChatUserConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Cratie.Option", b => - { - b.Property("Code"); - - b.Property("CodeScrutin"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code", "CodeScrutin"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Blue"); - - b.Property("Green"); - - b.Property("Name"); - - b.Property("Red"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id"); - - b.Property("Summary"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId"); - - b.Property("ActionDistance"); - - b.Property("CarePrice"); - - b.Property("FlatFeeDiscount"); - - b.Property("HalfBalayagePrice"); - - b.Property("HalfBrushingPrice"); - - b.Property("HalfColorPrice"); - - b.Property("HalfDefrisPrice"); - - b.Property("HalfFoldingPrice"); - - b.Property("HalfMechPrice"); - - b.Property("HalfMultiColorPrice"); - - b.Property("HalfPermanentPrice"); - - b.Property("KidCutPrice"); - - b.Property("LongBalayagePrice"); - - b.Property("LongBrushingPrice"); - - b.Property("LongColorPrice"); - - b.Property("LongDefrisPrice"); - - b.Property("LongFoldingPrice"); - - b.Property("LongMechPrice"); - - b.Property("LongMultiColorPrice"); - - b.Property("LongPermanentPrice"); - - b.Property("ManBrushPrice"); - - b.Property("ManCutPrice"); - - b.Property("ScheduleOwnerId"); - - b.Property("ShampooPrice"); - - b.Property("ShortBalayagePrice"); - - b.Property("ShortBrushingPrice"); - - b.Property("ShortColorPrice"); - - b.Property("ShortDefrisPrice"); - - b.Property("ShortFoldingPrice"); - - b.Property("ShortMechPrice"); - - b.Property("ShortMultiColorPrice"); - - b.Property("ShortPermanentPrice"); - - b.Property("WomenHalfCutPrice"); - - b.Property("WomenLongCutPrice"); - - b.Property("WomenShortCutPrice"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("AdditionalInfo") - .HasAnnotation("MaxLength", 512); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("PrestationId"); - - b.Property("Previsional"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("SelectedProfileUserId"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Cares"); - - b.Property("Cut"); - - b.Property("Dressing"); - - b.Property("Gender"); - - b.Property("Length"); - - b.Property("Shampoo"); - - b.Property("Tech"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PrestationId"); - - b.Property("QueryId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Brand"); - - b.Property("ColorId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.Property("TaintId"); - - b.Property("PrestationId"); - - b.HasKey("TaintId", "PrestationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("FeatureId"); - - b.Property("Status"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Maintaining.Feature", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("ShortName"); - - b.Property("Status"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Depth"); - - b.Property("Description"); - - b.Property("Height"); - - b.Property("Name"); - - b.Property("Price"); - - b.Property("Public"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("For"); - - b.Property("Message"); - - b.Property("OwnerId"); - - b.Property("Sender"); - - b.Property("Topic"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.Property("UserId"); - - b.Property("NotificationId"); - - b.HasKey("UserId", "NotificationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Target"); - - b.Property("body") - .IsRequired(); - - b.Property("click_action") - .IsRequired(); - - b.Property("color"); - - b.Property("icon") - .HasAnnotation("Relational:DefaultValue", "exclam") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("sound"); - - b.Property("tag"); - - b.Property("title") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId"); - - b.Property("DjSettingsUserId"); - - b.Property("GeneralSettingsUserId"); - - b.Property("Rate"); - - b.Property("TendencyId"); - - b.HasKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId"); - - b.Property("SoundCloudId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId"); - - b.Property("UserId"); - - b.HasKey("InstrumentId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Property("CreationToken"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ExecutorId") - .IsRequired(); - - b.Property("OrderReference"); - - b.Property("PaypalPayerId"); - - b.Property("State"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("CreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId"); - - b.Property("CircleId"); - - b.HasKey("MemberId", "CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.Property("HRef"); - - b.Property("Method"); - - b.Property("BrusherProfileUserId"); - - b.Property("ContentType"); - - b.Property("PayPalPaymentCreationToken"); - - b.Property("Rel"); - - b.HasKey("HRef", "Method"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.LocationType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("Hidden"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("SettingsClassName"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActionName"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FormationSettingsUserId"); - - b.Property("PerformerId"); - - b.Property("WorkingForId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients"); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationTypeId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("DoesCode", "UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("BlogPostId"); - - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("PostId"); - - b.HasOne("Yavsc.Models.Relationship.Tag") - .WithMany() - .HasForeignKey("TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - - b.HasOne("Yavsc.Models.Blog.Comment") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Calendar.Period") - .WithMany() - .HasForeignKey("PeriodStart", "PeriodEnd"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomPresence", b => - { - b.HasOne("Yavsc.Models.Chat.ChatRoom") - .WithMany() - .HasForeignKey("ChannelName"); - - b.HasOne("Yavsc.Models.Chat.ChatConnection") - .WithMany() - .HasForeignKey("ChatUserConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("SelectedProfileUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery") - .WithMany() - .HasForeignKey("QueryId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color") - .WithMany() - .HasForeignKey("ColorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairTaint") - .WithMany() - .HasForeignKey("TaintId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.HasOne("Yavsc.Models.IT.Maintaining.Feature") - .WithMany() - .HasForeignKey("FeatureId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.HasOne("Yavsc.Models.Messaging.Notification") - .WithMany() - .HasForeignKey("NotificationId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings") - .WithMany() - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings") - .WithMany() - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ExecutorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("BrusherProfileUserId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PayPalPaymentCreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings") - .WithMany() - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("WorkingForId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Relationship.LocationType") - .WithMany() - .HasForeignKey("LocationTypeId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2018/20180209144114_rejectQuery.cs b/src/Yavsc.Server/Migrations/2018/20180209144114_rejectQuery.cs deleted file mode 100644 index 3df81cae..00000000 --- a/src/Yavsc.Server/Migrations/2018/20180209144114_rejectQuery.cs +++ /dev/null @@ -1,806 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class rejectQuery : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_BlogPost_PostId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_Tag_TagId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_Comment_ApplicationUser_AuthorId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Comment_BlogPost_PostId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Schedule_ApplicationUser_OwnerId", table: "Schedule"); - migrationBuilder.DropForeignKey(name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", table: "ChatConnection"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_ClientProviderInfo_Location_BillingAddressId", table: "ClientProviderInfo"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PayPalPayment_ApplicationUser_ExecutorId", table: "PayPalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.AddColumn( - name: "Rejected", - table: "RdvQuery", - nullable: false, - defaultValue: false); - migrationBuilder.AddColumn( - name: "RejectedAt", - table: "RdvQuery", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - migrationBuilder.AlterColumn( - name: "BillingAddressId", - table: "ClientProviderInfo", - nullable: false); - migrationBuilder.AlterColumn( - name: "For", - table: "Announce", - nullable: false); - migrationBuilder.AddColumn( - name: "Rejected", - table: "HairMultiCutQuery", - nullable: false, - defaultValue: false); - migrationBuilder.AddColumn( - name: "RejectedAt", - table: "HairMultiCutQuery", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - migrationBuilder.AddColumn( - name: "Rejected", - table: "HairCutQuery", - nullable: false, - defaultValue: false); - migrationBuilder.AddColumn( - name: "RejectedAt", - table: "HairCutQuery", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - migrationBuilder.AlterColumn( - name: "OwnerId", - table: "Estimate", - nullable: true); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_BlogPost_PostId", - table: "BlogTag", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_Tag_TagId", - table: "BlogTag", - column: "TagId", - principalTable: "Tag", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Comment_ApplicationUser_AuthorId", - table: "Comment", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Comment_BlogPost_PostId", - table: "Comment", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Schedule_ApplicationUser_OwnerId", - table: "Schedule", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", - table: "ChatConnection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PayPalPayment_ApplicationUser_ExecutorId", - table: "PayPalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_BlogPost_PostId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_Tag_TagId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_Comment_ApplicationUser_AuthorId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Comment_BlogPost_PostId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Schedule_ApplicationUser_OwnerId", table: "Schedule"); - migrationBuilder.DropForeignKey(name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", table: "ChatConnection"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PayPalPayment_ApplicationUser_ExecutorId", table: "PayPalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropColumn(name: "Rejected", table: "RdvQuery"); - migrationBuilder.DropColumn(name: "RejectedAt", table: "RdvQuery"); - migrationBuilder.DropColumn(name: "Rejected", table: "HairMultiCutQuery"); - migrationBuilder.DropColumn(name: "RejectedAt", table: "HairMultiCutQuery"); - migrationBuilder.DropColumn(name: "Rejected", table: "HairCutQuery"); - migrationBuilder.DropColumn(name: "RejectedAt", table: "HairCutQuery"); - migrationBuilder.AlterColumn( - name: "BillingAddressId", - table: "ClientProviderInfo", - nullable: true); - migrationBuilder.AlterColumn( - name: "For", - table: "Announce", - nullable: false); - migrationBuilder.AlterColumn( - name: "OwnerId", - table: "Estimate", - nullable: false); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_BlogPost_PostId", - table: "BlogTag", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_Tag_TagId", - table: "BlogTag", - column: "TagId", - principalTable: "Tag", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Comment_ApplicationUser_AuthorId", - table: "Comment", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Comment_BlogPost_PostId", - table: "Comment", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Schedule_ApplicationUser_OwnerId", - table: "Schedule", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", - table: "ChatConnection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_ClientProviderInfo_Location_BillingAddressId", - table: "ClientProviderInfo", - column: "BillingAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PayPalPayment_ApplicationUser_ExecutorId", - table: "PayPalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2018/20180420213912_mailingTemplates.Designer.cs b/src/Yavsc.Server/Migrations/2018/20180420213912_mailingTemplates.Designer.cs deleted file mode 100644 index 662e2e54..00000000 --- a/src/Yavsc.Server/Migrations/2018/20180420213912_mailingTemplates.Designer.cs +++ /dev/null @@ -1,1807 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20180420213912_mailingTemplates")] - partial class mailingTemplates - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId"); - - b.Property("BlogPostId"); - - b.HasKey("CircleId", "BlogPostId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512) - .HasAnnotation("Relational:DefaultValue", "/images/Users/icon_user.png") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar") - .HasAnnotation("MaxLength", 512); - - b.Property("DiskQuota") - .HasAnnotation("Relational:DefaultValue", "524288000") - .HasAnnotation("Relational:DefaultValueType", "System.Int64"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("MaxFileSize"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Count"); - - b.Property("Currency"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 256); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType") - .IsRequired(); - - b.Property("Description"); - - b.Property("OwnerId"); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content") - .HasAnnotation("MaxLength", 56224); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Photo") - .HasAnnotation("MaxLength", 1024); - - b.Property("Rate"); - - b.Property("Title") - .HasAnnotation("MaxLength", 1024); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId") - .IsRequired(); - - b.Property("Content"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ParentId"); - - b.Property("PostId"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Period", b => - { - b.Property("Start"); - - b.Property("End"); - - b.HasKey("Start", "End"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Property("OwnerId"); - - b.HasKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PeriodEnd"); - - b.Property("PeriodStart"); - - b.Property("Reccurence"); - - b.Property("ScheduleOwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId") - .IsRequired(); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.Property("Name") - .HasAnnotation("MaxLength", 255); - - b.Property("ApplicationUserId"); - - b.Property("Topic") - .HasAnnotation("MaxLength", 1023); - - b.HasKey("Name"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomPresence", b => - { - b.Property("ChannelName"); - - b.Property("ChatUserConnectionId"); - - b.Property("Level"); - - b.HasKey("ChannelName", "ChatUserConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Cratie.Option", b => - { - b.Property("Code"); - - b.Property("CodeScrutin"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code", "CodeScrutin"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Blue"); - - b.Property("Green"); - - b.Property("Name"); - - b.Property("Red"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id"); - - b.Property("Summary"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId"); - - b.Property("ActionDistance"); - - b.Property("CarePrice"); - - b.Property("FlatFeeDiscount"); - - b.Property("HalfBalayagePrice"); - - b.Property("HalfBrushingPrice"); - - b.Property("HalfColorPrice"); - - b.Property("HalfDefrisPrice"); - - b.Property("HalfFoldingPrice"); - - b.Property("HalfMechPrice"); - - b.Property("HalfMultiColorPrice"); - - b.Property("HalfPermanentPrice"); - - b.Property("KidCutPrice"); - - b.Property("LongBalayagePrice"); - - b.Property("LongBrushingPrice"); - - b.Property("LongColorPrice"); - - b.Property("LongDefrisPrice"); - - b.Property("LongFoldingPrice"); - - b.Property("LongMechPrice"); - - b.Property("LongMultiColorPrice"); - - b.Property("LongPermanentPrice"); - - b.Property("ManBrushPrice"); - - b.Property("ManCutPrice"); - - b.Property("ScheduleOwnerId"); - - b.Property("ShampooPrice"); - - b.Property("ShortBalayagePrice"); - - b.Property("ShortBrushingPrice"); - - b.Property("ShortColorPrice"); - - b.Property("ShortDefrisPrice"); - - b.Property("ShortFoldingPrice"); - - b.Property("ShortMechPrice"); - - b.Property("ShortMultiColorPrice"); - - b.Property("ShortPermanentPrice"); - - b.Property("WomenHalfCutPrice"); - - b.Property("WomenLongCutPrice"); - - b.Property("WomenShortCutPrice"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("AdditionalInfo") - .HasAnnotation("MaxLength", 512); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("PrestationId"); - - b.Property("Previsional"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("SelectedProfileUserId"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Cares"); - - b.Property("Cut"); - - b.Property("Dressing"); - - b.Property("Gender"); - - b.Property("Length"); - - b.Property("Shampoo"); - - b.Property("Tech"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PrestationId"); - - b.Property("QueryId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Brand"); - - b.Property("ColorId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.Property("TaintId"); - - b.Property("PrestationId"); - - b.HasKey("TaintId", "PrestationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("FeatureId"); - - b.Property("Status"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Maintaining.Feature", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("ShortName"); - - b.Property("Status"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Depth"); - - b.Property("Description"); - - b.Property("Height"); - - b.Property("Name"); - - b.Property("Price"); - - b.Property("Public"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("For"); - - b.Property("Message"); - - b.Property("OwnerId"); - - b.Property("Sender"); - - b.Property("Topic"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.Property("UserId"); - - b.Property("NotificationId"); - - b.HasKey("UserId", "NotificationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Target"); - - b.Property("body") - .IsRequired(); - - b.Property("click_action") - .IsRequired(); - - b.Property("color"); - - b.Property("icon") - .HasAnnotation("Relational:DefaultValue", "exclam") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("sound"); - - b.Property("tag"); - - b.Property("title") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId"); - - b.Property("DjSettingsUserId"); - - b.Property("GeneralSettingsUserId"); - - b.Property("Rate"); - - b.Property("TendencyId"); - - b.HasKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId"); - - b.Property("SoundCloudId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId"); - - b.Property("UserId"); - - b.HasKey("InstrumentId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Property("CreationToken"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ExecutorId") - .IsRequired(); - - b.Property("OrderReference"); - - b.Property("PaypalPayerId"); - - b.Property("State"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("CreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId"); - - b.Property("CircleId"); - - b.HasKey("MemberId", "CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.Property("HRef"); - - b.Property("Method"); - - b.Property("BrusherProfileUserId"); - - b.Property("ContentType"); - - b.Property("PayPalPaymentCreationToken"); - - b.Property("Rel"); - - b.HasKey("HRef", "Method"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.LocationType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("Hidden"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("SettingsClassName"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActionName"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FormationSettingsUserId"); - - b.Property("PerformerId"); - - b.Property("WorkingForId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients"); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationTypeId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("DoesCode", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.EMailing.MailingTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Body") - .HasAnnotation("MaxLength", 65536); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ManagerId"); - - b.Property("ReplyToAddress"); - - b.Property("ShortName") - .HasAnnotation("MaxLength", 128); - - b.Property("ToSend"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("BlogPostId"); - - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("PostId"); - - b.HasOne("Yavsc.Models.Relationship.Tag") - .WithMany() - .HasForeignKey("TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - - b.HasOne("Yavsc.Models.Blog.Comment") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Calendar.Period") - .WithMany() - .HasForeignKey("PeriodStart", "PeriodEnd"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomPresence", b => - { - b.HasOne("Yavsc.Models.Chat.ChatRoom") - .WithMany() - .HasForeignKey("ChannelName"); - - b.HasOne("Yavsc.Models.Chat.ChatConnection") - .WithMany() - .HasForeignKey("ChatUserConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("SelectedProfileUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery") - .WithMany() - .HasForeignKey("QueryId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color") - .WithMany() - .HasForeignKey("ColorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairTaint") - .WithMany() - .HasForeignKey("TaintId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.HasOne("Yavsc.Models.IT.Maintaining.Feature") - .WithMany() - .HasForeignKey("FeatureId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.HasOne("Yavsc.Models.Messaging.Notification") - .WithMany() - .HasForeignKey("NotificationId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings") - .WithMany() - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings") - .WithMany() - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ExecutorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("BrusherProfileUserId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PayPalPaymentCreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings") - .WithMany() - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("WorkingForId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Relationship.LocationType") - .WithMany() - .HasForeignKey("LocationTypeId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.EMailing.MailingTemplate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ManagerId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2018/20180420213912_mailingTemplates.cs b/src/Yavsc.Server/Migrations/2018/20180420213912_mailingTemplates.cs deleted file mode 100644 index b6c009ee..00000000 --- a/src/Yavsc.Server/Migrations/2018/20180420213912_mailingTemplates.cs +++ /dev/null @@ -1,764 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -namespace Yavsc.Migrations -{ - public partial class mailingTemplates : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_BlogPost_PostId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_Tag_TagId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_Comment_ApplicationUser_AuthorId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Comment_BlogPost_PostId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Schedule_ApplicationUser_OwnerId", table: "Schedule"); - migrationBuilder.DropForeignKey(name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", table: "ChatConnection"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PayPalPayment_ApplicationUser_ExecutorId", table: "PayPalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.CreateTable( - name: "MailingTemplate", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("Npgsql:Serial", true), - Body = table.Column(nullable: true), - DateCreated = table.Column(nullable: false), - DateModified = table.Column(nullable: false), - ManagerId = table.Column(nullable: true), - ReplyToAddress = table.Column(nullable: true), - ShortName = table.Column(nullable: true), - ToSend = table.Column(nullable: false), - UserCreated = table.Column(nullable: true), - UserModified = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_MailingTemplate", x => x.Id); - table.ForeignKey( - name: "FK_MailingTemplate_ApplicationUser_ManagerId", - column: x => x.ManagerId, - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - }); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_BlogPost_PostId", - table: "BlogTag", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_Tag_TagId", - table: "BlogTag", - column: "TagId", - principalTable: "Tag", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Comment_ApplicationUser_AuthorId", - table: "Comment", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Comment_BlogPost_PostId", - table: "Comment", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Schedule_ApplicationUser_OwnerId", - table: "Schedule", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", - table: "ChatConnection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PayPalPayment_ApplicationUser_ExecutorId", - table: "PayPalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_BlogPost_PostId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_Tag_TagId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_Comment_ApplicationUser_AuthorId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Comment_BlogPost_PostId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Schedule_ApplicationUser_OwnerId", table: "Schedule"); - migrationBuilder.DropForeignKey(name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", table: "ChatConnection"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PayPalPayment_ApplicationUser_ExecutorId", table: "PayPalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropTable("MailingTemplate"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_BlogPost_PostId", - table: "BlogTag", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_Tag_TagId", - table: "BlogTag", - column: "TagId", - principalTable: "Tag", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Comment_ApplicationUser_AuthorId", - table: "Comment", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Comment_BlogPost_PostId", - table: "Comment", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Schedule_ApplicationUser_OwnerId", - table: "Schedule", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", - table: "ChatConnection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PayPalPayment_ApplicationUser_ExecutorId", - table: "PayPalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2018/20180503100246_userAllowMonthlyEmail.Designer.cs b/src/Yavsc.Server/Migrations/2018/20180503100246_userAllowMonthlyEmail.Designer.cs deleted file mode 100644 index c8805001..00000000 --- a/src/Yavsc.Server/Migrations/2018/20180503100246_userAllowMonthlyEmail.Designer.cs +++ /dev/null @@ -1,1811 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20180503100246_userAllowMonthlyEmail")] - partial class userAllowMonthlyEmail - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId"); - - b.Property("BlogPostId"); - - b.HasKey("CircleId", "BlogPostId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("AllowMonthlyEmail"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512) - .HasAnnotation("Relational:DefaultValue", "/images/Users/icon_user.png") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar") - .HasAnnotation("MaxLength", 512); - - b.Property("DiskQuota") - .HasAnnotation("Relational:DefaultValue", "524288000") - .HasAnnotation("Relational:DefaultValueType", "System.Int64"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("MaxFileSize"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Count"); - - b.Property("Currency"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 256); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType") - .IsRequired(); - - b.Property("Description"); - - b.Property("OwnerId"); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content") - .HasAnnotation("MaxLength", 56224); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Photo") - .HasAnnotation("MaxLength", 1024); - - b.Property("Rate"); - - b.Property("Title") - .HasAnnotation("MaxLength", 1024); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId") - .IsRequired(); - - b.Property("Content"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ParentId"); - - b.Property("PostId"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Period", b => - { - b.Property("Start"); - - b.Property("End"); - - b.HasKey("Start", "End"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Property("OwnerId"); - - b.HasKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PeriodEnd"); - - b.Property("PeriodStart"); - - b.Property("Reccurence"); - - b.Property("ScheduleOwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId") - .IsRequired(); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.Property("Name") - .HasAnnotation("MaxLength", 255); - - b.Property("ApplicationUserId"); - - b.Property("Topic") - .HasAnnotation("MaxLength", 1023); - - b.HasKey("Name"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomPresence", b => - { - b.Property("ChannelName"); - - b.Property("ChatUserConnectionId"); - - b.Property("Level"); - - b.HasKey("ChannelName", "ChatUserConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Cratie.Option", b => - { - b.Property("Code"); - - b.Property("CodeScrutin"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code", "CodeScrutin"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Blue"); - - b.Property("Green"); - - b.Property("Name"); - - b.Property("Red"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id"); - - b.Property("Summary"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId"); - - b.Property("ActionDistance"); - - b.Property("CarePrice"); - - b.Property("FlatFeeDiscount"); - - b.Property("HalfBalayagePrice"); - - b.Property("HalfBrushingPrice"); - - b.Property("HalfColorPrice"); - - b.Property("HalfDefrisPrice"); - - b.Property("HalfFoldingPrice"); - - b.Property("HalfMechPrice"); - - b.Property("HalfMultiColorPrice"); - - b.Property("HalfPermanentPrice"); - - b.Property("KidCutPrice"); - - b.Property("LongBalayagePrice"); - - b.Property("LongBrushingPrice"); - - b.Property("LongColorPrice"); - - b.Property("LongDefrisPrice"); - - b.Property("LongFoldingPrice"); - - b.Property("LongMechPrice"); - - b.Property("LongMultiColorPrice"); - - b.Property("LongPermanentPrice"); - - b.Property("ManBrushPrice"); - - b.Property("ManCutPrice"); - - b.Property("ScheduleOwnerId"); - - b.Property("ShampooPrice"); - - b.Property("ShortBalayagePrice"); - - b.Property("ShortBrushingPrice"); - - b.Property("ShortColorPrice"); - - b.Property("ShortDefrisPrice"); - - b.Property("ShortFoldingPrice"); - - b.Property("ShortMechPrice"); - - b.Property("ShortMultiColorPrice"); - - b.Property("ShortPermanentPrice"); - - b.Property("WomenHalfCutPrice"); - - b.Property("WomenLongCutPrice"); - - b.Property("WomenShortCutPrice"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("AdditionalInfo") - .HasAnnotation("MaxLength", 512); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("PrestationId"); - - b.Property("Previsional"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("SelectedProfileUserId"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Cares"); - - b.Property("Cut"); - - b.Property("Dressing"); - - b.Property("Gender"); - - b.Property("Length"); - - b.Property("Shampoo"); - - b.Property("Tech"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PrestationId"); - - b.Property("QueryId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Brand"); - - b.Property("ColorId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.Property("TaintId"); - - b.Property("PrestationId"); - - b.HasKey("TaintId", "PrestationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("LatestActivityUpdate"); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("FeatureId"); - - b.Property("Status"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Maintaining.Feature", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("ShortName"); - - b.Property("Status"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Depth"); - - b.Property("Description"); - - b.Property("Height"); - - b.Property("Name"); - - b.Property("Price"); - - b.Property("Public"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("For"); - - b.Property("Message"); - - b.Property("OwnerId"); - - b.Property("Sender"); - - b.Property("Topic"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.Property("UserId"); - - b.Property("NotificationId"); - - b.HasKey("UserId", "NotificationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Target"); - - b.Property("body") - .IsRequired(); - - b.Property("click_action") - .IsRequired(); - - b.Property("color"); - - b.Property("icon") - .HasAnnotation("Relational:DefaultValue", "exclam") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("sound"); - - b.Property("tag"); - - b.Property("title") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId"); - - b.Property("DjSettingsUserId"); - - b.Property("GeneralSettingsUserId"); - - b.Property("Rate"); - - b.Property("TendencyId"); - - b.HasKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId"); - - b.Property("SoundCloudId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId"); - - b.Property("UserId"); - - b.HasKey("InstrumentId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Property("CreationToken"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ExecutorId") - .IsRequired(); - - b.Property("OrderReference"); - - b.Property("PaypalPayerId"); - - b.Property("State"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("CreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId"); - - b.Property("CircleId"); - - b.HasKey("MemberId", "CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.Property("HRef"); - - b.Property("Method"); - - b.Property("BrusherProfileUserId"); - - b.Property("ContentType"); - - b.Property("PayPalPaymentCreationToken"); - - b.Property("Rel"); - - b.HasKey("HRef", "Method"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.LocationType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("Hidden"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("SettingsClassName"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActionName"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FormationSettingsUserId"); - - b.Property("PerformerId"); - - b.Property("WorkingForId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients"); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationTypeId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("DoesCode", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.EMailing.MailingTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Body") - .HasAnnotation("MaxLength", 65536); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ManagerId"); - - b.Property("ReplyToAddress"); - - b.Property("ToSend"); - - b.Property("Topic") - .HasAnnotation("MaxLength", 128); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("BlogPostId"); - - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("PostId"); - - b.HasOne("Yavsc.Models.Relationship.Tag") - .WithMany() - .HasForeignKey("TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - - b.HasOne("Yavsc.Models.Blog.Comment") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Calendar.Period") - .WithMany() - .HasForeignKey("PeriodStart", "PeriodEnd"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomPresence", b => - { - b.HasOne("Yavsc.Models.Chat.ChatRoom") - .WithMany() - .HasForeignKey("ChannelName"); - - b.HasOne("Yavsc.Models.Chat.ChatConnection") - .WithMany() - .HasForeignKey("ChatUserConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("SelectedProfileUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery") - .WithMany() - .HasForeignKey("QueryId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color") - .WithMany() - .HasForeignKey("ColorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairTaint") - .WithMany() - .HasForeignKey("TaintId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.HasOne("Yavsc.Models.IT.Maintaining.Feature") - .WithMany() - .HasForeignKey("FeatureId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.HasOne("Yavsc.Models.Messaging.Notification") - .WithMany() - .HasForeignKey("NotificationId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings") - .WithMany() - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings") - .WithMany() - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ExecutorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("BrusherProfileUserId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PayPalPaymentCreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings") - .WithMany() - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("WorkingForId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Relationship.LocationType") - .WithMany() - .HasForeignKey("LocationTypeId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.EMailing.MailingTemplate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ManagerId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2018/20180503100246_userAllowMonthlyEmail.cs b/src/Yavsc.Server/Migrations/2018/20180503100246_userAllowMonthlyEmail.cs deleted file mode 100644 index 9b9bca91..00000000 --- a/src/Yavsc.Server/Migrations/2018/20180503100246_userAllowMonthlyEmail.cs +++ /dev/null @@ -1,760 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class userAllowMonthlyEmail : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_BlogPost_PostId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_Tag_TagId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_Comment_ApplicationUser_AuthorId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Comment_BlogPost_PostId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Schedule_ApplicationUser_OwnerId", table: "Schedule"); - migrationBuilder.DropForeignKey(name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", table: "ChatConnection"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PayPalPayment_ApplicationUser_ExecutorId", table: "PayPalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropColumn(name: "ShortName", table: "MailingTemplate"); - migrationBuilder.AddColumn( - name: "Topic", - table: "MailingTemplate", - nullable: true); - migrationBuilder.AddColumn( - name: "LatestActivityUpdate", - table: "GoogleCloudMobileDeclaration", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - migrationBuilder.AddColumn( - name: "AllowMonthlyEmail", - table: "AspNetUsers", - nullable: false, - defaultValue: false); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_BlogPost_PostId", - table: "BlogTag", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_Tag_TagId", - table: "BlogTag", - column: "TagId", - principalTable: "Tag", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Comment_ApplicationUser_AuthorId", - table: "Comment", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Comment_BlogPost_PostId", - table: "Comment", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Schedule_ApplicationUser_OwnerId", - table: "Schedule", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", - table: "ChatConnection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PayPalPayment_ApplicationUser_ExecutorId", - table: "PayPalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_BlogPost_PostId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_Tag_TagId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_Comment_ApplicationUser_AuthorId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Comment_BlogPost_PostId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Schedule_ApplicationUser_OwnerId", table: "Schedule"); - migrationBuilder.DropForeignKey(name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", table: "ChatConnection"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PayPalPayment_ApplicationUser_ExecutorId", table: "PayPalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropColumn(name: "Topic", table: "MailingTemplate"); - migrationBuilder.DropColumn(name: "LatestActivityUpdate", table: "GoogleCloudMobileDeclaration"); - migrationBuilder.DropColumn(name: "AllowMonthlyEmail", table: "AspNetUsers"); - migrationBuilder.AddColumn( - name: "ShortName", - table: "MailingTemplate", - nullable: true); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_BlogPost_PostId", - table: "BlogTag", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_Tag_TagId", - table: "BlogTag", - column: "TagId", - principalTable: "Tag", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Comment_ApplicationUser_AuthorId", - table: "Comment", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Comment_BlogPost_PostId", - table: "Comment", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Schedule_ApplicationUser_OwnerId", - table: "Schedule", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", - table: "ChatConnection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PayPalPayment_ApplicationUser_ExecutorId", - table: "PayPalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2018/20180625113528_Git.Designer.cs b/src/Yavsc.Server/Migrations/2018/20180625113528_Git.Designer.cs deleted file mode 100644 index bc62e604..00000000 --- a/src/Yavsc.Server/Migrations/2018/20180625113528_Git.Designer.cs +++ /dev/null @@ -1,1889 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20180625113528_Git")] - partial class Git - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId"); - - b.Property("BlogPostId"); - - b.HasKey("CircleId", "BlogPostId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("AllowMonthlyEmail"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512) - .HasAnnotation("Relational:DefaultValue", "/images/Users/icon_user.png") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar") - .HasAnnotation("MaxLength", 512); - - b.Property("DiskQuota") - .HasAnnotation("Relational:DefaultValue", "524288000") - .HasAnnotation("Relational:DefaultValueType", "System.Int64"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("MaxFileSize"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Count"); - - b.Property("Currency"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 256); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType") - .IsRequired(); - - b.Property("Description"); - - b.Property("OwnerId"); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content") - .HasAnnotation("MaxLength", 56224); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Photo") - .HasAnnotation("MaxLength", 1024); - - b.Property("Rate"); - - b.Property("Title") - .HasAnnotation("MaxLength", 1024); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId") - .IsRequired(); - - b.Property("Content"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ParentId"); - - b.Property("PostId"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Period", b => - { - b.Property("Start"); - - b.Property("End"); - - b.HasKey("Start", "End"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Property("OwnerId"); - - b.HasKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PeriodEnd"); - - b.Property("PeriodStart"); - - b.Property("Reccurence"); - - b.Property("ScheduleOwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId") - .IsRequired(); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.Property("Name") - .HasAnnotation("MaxLength", 255); - - b.Property("ApplicationUserId"); - - b.Property("Topic") - .HasAnnotation("MaxLength", 1023); - - b.HasKey("Name"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomPresence", b => - { - b.Property("ChannelName"); - - b.Property("ChatUserConnectionId"); - - b.Property("Level"); - - b.HasKey("ChannelName", "ChatUserConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Cratie.Option", b => - { - b.Property("Code"); - - b.Property("CodeScrutin"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code", "CodeScrutin"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Blue"); - - b.Property("Green"); - - b.Property("Name"); - - b.Property("Red"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id"); - - b.Property("Summary"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId"); - - b.Property("ActionDistance"); - - b.Property("CarePrice"); - - b.Property("FlatFeeDiscount"); - - b.Property("HalfBalayagePrice"); - - b.Property("HalfBrushingPrice"); - - b.Property("HalfColorPrice"); - - b.Property("HalfDefrisPrice"); - - b.Property("HalfFoldingPrice"); - - b.Property("HalfMechPrice"); - - b.Property("HalfMultiColorPrice"); - - b.Property("HalfPermanentPrice"); - - b.Property("KidCutPrice"); - - b.Property("LongBalayagePrice"); - - b.Property("LongBrushingPrice"); - - b.Property("LongColorPrice"); - - b.Property("LongDefrisPrice"); - - b.Property("LongFoldingPrice"); - - b.Property("LongMechPrice"); - - b.Property("LongMultiColorPrice"); - - b.Property("LongPermanentPrice"); - - b.Property("ManBrushPrice"); - - b.Property("ManCutPrice"); - - b.Property("ScheduleOwnerId"); - - b.Property("ShampooPrice"); - - b.Property("ShortBalayagePrice"); - - b.Property("ShortBrushingPrice"); - - b.Property("ShortColorPrice"); - - b.Property("ShortDefrisPrice"); - - b.Property("ShortFoldingPrice"); - - b.Property("ShortMechPrice"); - - b.Property("ShortMultiColorPrice"); - - b.Property("ShortPermanentPrice"); - - b.Property("WomenHalfCutPrice"); - - b.Property("WomenLongCutPrice"); - - b.Property("WomenShortCutPrice"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("AdditionalInfo") - .HasAnnotation("MaxLength", 512); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("PrestationId"); - - b.Property("Previsional"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("SelectedProfileUserId"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Cares"); - - b.Property("Cut"); - - b.Property("Dressing"); - - b.Property("Gender"); - - b.Property("Length"); - - b.Property("Shampoo"); - - b.Property("Tech"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PrestationId"); - - b.Property("QueryId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Brand"); - - b.Property("ColorId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.Property("TaintId"); - - b.Property("PrestationId"); - - b.HasKey("TaintId", "PrestationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("LatestActivityUpdate"); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("FeatureId"); - - b.Property("Status"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Maintaining.Feature", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("ShortName"); - - b.Property("Status"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Depth"); - - b.Property("Description"); - - b.Property("Height"); - - b.Property("Name"); - - b.Property("Price"); - - b.Property("Public"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("For"); - - b.Property("Message"); - - b.Property("OwnerId"); - - b.Property("Sender"); - - b.Property("Topic"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.Property("UserId"); - - b.Property("NotificationId"); - - b.HasKey("UserId", "NotificationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Target"); - - b.Property("body") - .IsRequired(); - - b.Property("click_action") - .IsRequired(); - - b.Property("color"); - - b.Property("icon") - .HasAnnotation("Relational:DefaultValue", "exclam") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("sound"); - - b.Property("tag"); - - b.Property("title") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId"); - - b.Property("DjSettingsUserId"); - - b.Property("GeneralSettingsUserId"); - - b.Property("Rate"); - - b.Property("TendencyId"); - - b.HasKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId"); - - b.Property("SoundCloudId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId"); - - b.Property("UserId"); - - b.HasKey("InstrumentId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Property("CreationToken"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ExecutorId") - .IsRequired(); - - b.Property("OrderReference"); - - b.Property("PaypalPayerId"); - - b.Property("State"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("CreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId"); - - b.Property("CircleId"); - - b.HasKey("MemberId", "CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.Property("HRef"); - - b.Property("Method"); - - b.Property("BrusherProfileUserId"); - - b.Property("ContentType"); - - b.Property("PayPalPaymentCreationToken"); - - b.Property("Rel"); - - b.HasKey("HRef", "Method"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("Hidden"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("SettingsClassName"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActionName"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FormationSettingsUserId"); - - b.Property("PerformerId"); - - b.Property("WorkingForId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients"); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationType"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("DoesCode", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.EMailing.MailingTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Body") - .HasAnnotation("MaxLength", 65536); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ManagerId"); - - b.Property("ReplyToAddress"); - - b.Property("ToSend"); - - b.Property("Topic") - .HasAnnotation("MaxLength", 128); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("Name") - .IsRequired(); - - b.Property("OwnerId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.Property("Version"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.Property("ProjectId"); - - b.HasKey("Id"); - }); - - - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("BlogPostId"); - - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("PostId"); - - b.HasOne("Yavsc.Models.Relationship.Tag") - .WithMany() - .HasForeignKey("TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - - b.HasOne("Yavsc.Models.Blog.Comment") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Calendar.Period") - .WithMany() - .HasForeignKey("PeriodStart", "PeriodEnd"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomPresence", b => - { - b.HasOne("Yavsc.Models.Chat.ChatRoom") - .WithMany() - .HasForeignKey("ChannelName"); - - b.HasOne("Yavsc.Models.Chat.ChatConnection") - .WithMany() - .HasForeignKey("ChatUserConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("SelectedProfileUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery") - .WithMany() - .HasForeignKey("QueryId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color") - .WithMany() - .HasForeignKey("ColorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairTaint") - .WithMany() - .HasForeignKey("TaintId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.HasOne("Yavsc.Models.IT.Maintaining.Feature") - .WithMany() - .HasForeignKey("FeatureId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.HasOne("Yavsc.Models.Messaging.Notification") - .WithMany() - .HasForeignKey("NotificationId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings") - .WithMany() - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings") - .WithMany() - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ExecutorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("BrusherProfileUserId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PayPalPaymentCreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings") - .WithMany() - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("WorkingForId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.EMailing.MailingTemplate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ManagerId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.HasOne("Yavsc.Server.Models.IT.Project") - .WithMany() - .HasForeignKey("ProjectId"); - }); - - - } - } -} diff --git a/src/Yavsc.Server/Migrations/2018/20180625113528_Git.cs b/src/Yavsc.Server/Migrations/2018/20180625113528_Git.cs deleted file mode 100644 index 4164ac0d..00000000 --- a/src/Yavsc.Server/Migrations/2018/20180625113528_Git.cs +++ /dev/null @@ -1,812 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class Git : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_BlogPost_PostId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_Tag_TagId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_Comment_ApplicationUser_AuthorId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Comment_BlogPost_PostId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Schedule_ApplicationUser_OwnerId", table: "Schedule"); - migrationBuilder.DropForeignKey(name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", table: "ChatConnection"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PayPalPayment_ApplicationUser_ExecutorId", table: "PayPalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.CreateTable( - name: "Project", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("Npgsql:Serial", true), - ActivityCode = table.Column(nullable: false), - ClientId = table.Column(nullable: false), - Consent = table.Column(nullable: false), - DateCreated = table.Column(nullable: false), - DateModified = table.Column(nullable: false), - Description = table.Column(nullable: true), - Name = table.Column(nullable: false), - OwnerId = table.Column(nullable: true), - PaymentId = table.Column(nullable: true), - PerformerId = table.Column(nullable: false), - Previsional = table.Column(nullable: true), - Rejected = table.Column(nullable: false), - RejectedAt = table.Column(nullable: false), - Status = table.Column(nullable: false), - UserCreated = table.Column(nullable: true), - UserModified = table.Column(nullable: true), - ValidationDate = table.Column(nullable: true), - Version = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Project", x => x.Id); - table.ForeignKey( - name: "FK_Project_Activity_ActivityCode", - column: x => x.ActivityCode, - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - table.ForeignKey( - name: "FK_Project_ApplicationUser_ClientId", - column: x => x.ClientId, - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - table.ForeignKey( - name: "FK_Project_PayPalPayment_PaymentId", - column: x => x.PaymentId, - principalTable: "PayPalPayment", - principalColumn: "CreationToken", - onDelete: ReferentialAction.Cascade); - table.ForeignKey( - name: "FK_Project_PerformerProfile_PerformerId", - column: x => x.PerformerId, - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - }); - migrationBuilder.CreateTable( - name: "ProjectBuildConfiguration", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("Npgsql:Serial", true), - Name = table.Column(nullable: false), - ProjectId = table.Column(nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_ProjectBuildConfiguration", x => x.Id); - table.ForeignKey( - name: "FK_ProjectBuildConfiguration_Project_ProjectId", - column: x => x.ProjectId, - principalTable: "Project", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_BlogPost_PostId", - table: "BlogTag", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_Tag_TagId", - table: "BlogTag", - column: "TagId", - principalTable: "Tag", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Comment_ApplicationUser_AuthorId", - table: "Comment", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Comment_BlogPost_PostId", - table: "Comment", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Schedule_ApplicationUser_OwnerId", - table: "Schedule", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", - table: "ChatConnection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PayPalPayment_ApplicationUser_ExecutorId", - table: "PayPalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_BlogPost_PostId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_Tag_TagId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_Comment_ApplicationUser_AuthorId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Comment_BlogPost_PostId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Schedule_ApplicationUser_OwnerId", table: "Schedule"); - migrationBuilder.DropForeignKey(name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", table: "ChatConnection"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PayPalPayment_ApplicationUser_ExecutorId", table: "PayPalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropTable("ProjectBuildConfiguration"); - migrationBuilder.DropTable("Project"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_BlogPost_PostId", - table: "BlogTag", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_Tag_TagId", - table: "BlogTag", - column: "TagId", - principalTable: "Tag", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Comment_ApplicationUser_AuthorId", - table: "Comment", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Comment_BlogPost_PostId", - table: "Comment", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Schedule_ApplicationUser_OwnerId", - table: "Schedule", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", - table: "ChatConnection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PayPalPayment_ApplicationUser_ExecutorId", - table: "PayPalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2018/20180703224638_wrongProjectConfigForeignKey.Designer.cs b/src/Yavsc.Server/Migrations/2018/20180703224638_wrongProjectConfigForeignKey.Designer.cs deleted file mode 100644 index 4bbf55e2..00000000 --- a/src/Yavsc.Server/Migrations/2018/20180703224638_wrongProjectConfigForeignKey.Designer.cs +++ /dev/null @@ -1,1894 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20180703224638_wrongProjectConfigForeignKey")] - partial class wrongProjectConfigForeignKey - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId"); - - b.Property("BlogPostId"); - - b.HasKey("CircleId", "BlogPostId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("AllowMonthlyEmail"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512) - .HasAnnotation("Relational:DefaultValue", "/images/Users/icon_user.png") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar") - .HasAnnotation("MaxLength", 512); - - b.Property("DiskQuota") - .HasAnnotation("Relational:DefaultValue", "524288000") - .HasAnnotation("Relational:DefaultValueType", "System.Int64"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("MaxFileSize"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Count"); - - b.Property("Currency"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 256); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType") - .IsRequired(); - - b.Property("Description"); - - b.Property("OwnerId"); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content") - .HasAnnotation("MaxLength", 56224); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Photo") - .HasAnnotation("MaxLength", 1024); - - b.Property("Rate"); - - b.Property("Title") - .HasAnnotation("MaxLength", 1024); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId") - .IsRequired(); - - b.Property("Content"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ParentId"); - - b.Property("PostId"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Period", b => - { - b.Property("Start"); - - b.Property("End"); - - b.HasKey("Start", "End"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Property("OwnerId"); - - b.HasKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PeriodEnd"); - - b.Property("PeriodStart"); - - b.Property("Reccurence"); - - b.Property("ScheduleOwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId") - .IsRequired(); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.Property("Name") - .HasAnnotation("MaxLength", 255); - - b.Property("ApplicationUserId"); - - b.Property("Topic") - .HasAnnotation("MaxLength", 1023); - - b.HasKey("Name"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomPresence", b => - { - b.Property("ChannelName"); - - b.Property("ChatUserConnectionId"); - - b.Property("Level"); - - b.HasKey("ChannelName", "ChatUserConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Cratie.Option", b => - { - b.Property("Code"); - - b.Property("CodeScrutin"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code", "CodeScrutin"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Blue"); - - b.Property("Green"); - - b.Property("Name"); - - b.Property("Red"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id"); - - b.Property("Summary"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId"); - - b.Property("ActionDistance"); - - b.Property("CarePrice"); - - b.Property("FlatFeeDiscount"); - - b.Property("HalfBalayagePrice"); - - b.Property("HalfBrushingPrice"); - - b.Property("HalfColorPrice"); - - b.Property("HalfDefrisPrice"); - - b.Property("HalfFoldingPrice"); - - b.Property("HalfMechPrice"); - - b.Property("HalfMultiColorPrice"); - - b.Property("HalfPermanentPrice"); - - b.Property("KidCutPrice"); - - b.Property("LongBalayagePrice"); - - b.Property("LongBrushingPrice"); - - b.Property("LongColorPrice"); - - b.Property("LongDefrisPrice"); - - b.Property("LongFoldingPrice"); - - b.Property("LongMechPrice"); - - b.Property("LongMultiColorPrice"); - - b.Property("LongPermanentPrice"); - - b.Property("ManBrushPrice"); - - b.Property("ManCutPrice"); - - b.Property("ScheduleOwnerId"); - - b.Property("ShampooPrice"); - - b.Property("ShortBalayagePrice"); - - b.Property("ShortBrushingPrice"); - - b.Property("ShortColorPrice"); - - b.Property("ShortDefrisPrice"); - - b.Property("ShortFoldingPrice"); - - b.Property("ShortMechPrice"); - - b.Property("ShortMultiColorPrice"); - - b.Property("ShortPermanentPrice"); - - b.Property("WomenHalfCutPrice"); - - b.Property("WomenLongCutPrice"); - - b.Property("WomenShortCutPrice"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("AdditionalInfo") - .HasAnnotation("MaxLength", 512); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("PrestationId"); - - b.Property("Previsional"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("SelectedProfileUserId"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Cares"); - - b.Property("Cut"); - - b.Property("Dressing"); - - b.Property("Gender"); - - b.Property("Length"); - - b.Property("Shampoo"); - - b.Property("Tech"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PrestationId"); - - b.Property("QueryId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Brand"); - - b.Property("ColorId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.Property("TaintId"); - - b.Property("PrestationId"); - - b.HasKey("TaintId", "PrestationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("LatestActivityUpdate"); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("FeatureId"); - - b.Property("Status"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Maintaining.Feature", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("ShortName"); - - b.Property("Status"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Depth"); - - b.Property("Description"); - - b.Property("Height"); - - b.Property("Name"); - - b.Property("Price"); - - b.Property("Public"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("For"); - - b.Property("Message"); - - b.Property("OwnerId"); - - b.Property("Sender"); - - b.Property("Topic"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.Property("UserId"); - - b.Property("NotificationId"); - - b.HasKey("UserId", "NotificationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Target"); - - b.Property("body") - .IsRequired(); - - b.Property("click_action") - .IsRequired(); - - b.Property("color"); - - b.Property("icon") - .HasAnnotation("Relational:DefaultValue", "exclam") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("sound"); - - b.Property("tag"); - - b.Property("title") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId"); - - b.Property("DjSettingsUserId"); - - b.Property("GeneralSettingsUserId"); - - b.Property("Rate"); - - b.Property("TendencyId"); - - b.HasKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId"); - - b.Property("SoundCloudId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId"); - - b.Property("UserId"); - - b.HasKey("InstrumentId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Property("CreationToken"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ExecutorId") - .IsRequired(); - - b.Property("OrderReference"); - - b.Property("PaypalPayerId"); - - b.Property("State"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("CreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId"); - - b.Property("CircleId"); - - b.HasKey("MemberId", "CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.Property("HRef"); - - b.Property("Method"); - - b.Property("BrusherProfileUserId"); - - b.Property("ContentType"); - - b.Property("PayPalPaymentCreationToken"); - - b.Property("Rel"); - - b.HasKey("HRef", "Method"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("Hidden"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("SettingsClassName"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActionName"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FormationSettingsUserId"); - - b.Property("PerformerId"); - - b.Property("WorkingForId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients"); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationType"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("DoesCode", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.EMailing.MailingTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Body") - .HasAnnotation("MaxLength", 65536); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ManagerId"); - - b.Property("ReplyToAddress"); - - b.Property("ToSend"); - - b.Property("Topic") - .HasAnnotation("MaxLength", 128); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("Name") - .IsRequired(); - - b.Property("OwnerId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("ProjectId") - .IsRequired(); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.Property("Version"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.Property("ProjectId"); - - b.HasKey("Id"); - }); - - - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("BlogPostId"); - - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("PostId"); - - b.HasOne("Yavsc.Models.Relationship.Tag") - .WithMany() - .HasForeignKey("TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - - b.HasOne("Yavsc.Models.Blog.Comment") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Calendar.Period") - .WithMany() - .HasForeignKey("PeriodStart", "PeriodEnd"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomPresence", b => - { - b.HasOne("Yavsc.Models.Chat.ChatRoom") - .WithMany() - .HasForeignKey("ChannelName"); - - b.HasOne("Yavsc.Models.Chat.ChatConnection") - .WithMany() - .HasForeignKey("ChatUserConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("SelectedProfileUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery") - .WithMany() - .HasForeignKey("QueryId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color") - .WithMany() - .HasForeignKey("ColorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairTaint") - .WithMany() - .HasForeignKey("TaintId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.HasOne("Yavsc.Models.IT.Maintaining.Feature") - .WithMany() - .HasForeignKey("FeatureId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.HasOne("Yavsc.Models.Messaging.Notification") - .WithMany() - .HasForeignKey("NotificationId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings") - .WithMany() - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings") - .WithMany() - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ExecutorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("BrusherProfileUserId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PayPalPaymentCreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings") - .WithMany() - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("WorkingForId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.EMailing.MailingTemplate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ManagerId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.HasOne("Yavsc.Server.Models.IT.Project") - .WithMany() - .HasForeignKey("ProjectId") - .HasPrincipalKey("ProjectId"); - }); - - - } - } -} diff --git a/src/Yavsc.Server/Migrations/2018/20180703224638_wrongProjectConfigForeignKey.cs b/src/Yavsc.Server/Migrations/2018/20180703224638_wrongProjectConfigForeignKey.cs deleted file mode 100644 index 3bd78230..00000000 --- a/src/Yavsc.Server/Migrations/2018/20180703224638_wrongProjectConfigForeignKey.cs +++ /dev/null @@ -1,822 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class wrongProjectConfigForeignKey : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_BlogPost_PostId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_Tag_TagId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_Comment_ApplicationUser_AuthorId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Comment_BlogPost_PostId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Schedule_ApplicationUser_OwnerId", table: "Schedule"); - migrationBuilder.DropForeignKey(name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", table: "ChatConnection"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PayPalPayment_ApplicationUser_ExecutorId", table: "PayPalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_Project_Activity_ActivityCode", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_ApplicationUser_ClientId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_PerformerProfile_PerformerId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_ProjectBuildConfiguration_Project_ProjectId", table: "ProjectBuildConfiguration"); - migrationBuilder.AlterColumn( - name: "ProjectId", - table: "ProjectBuildConfiguration", - nullable: true); - migrationBuilder.AddColumn( - name: "ProjectId", - table: "Project", - nullable: false, - defaultValue: ""); - migrationBuilder.AddUniqueConstraint( - name: "AK_Project_ProjectId", - table: "Project", - column: "ProjectId"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_BlogPost_PostId", - table: "BlogTag", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_Tag_TagId", - table: "BlogTag", - column: "TagId", - principalTable: "Tag", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Comment_ApplicationUser_AuthorId", - table: "Comment", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Comment_BlogPost_PostId", - table: "Comment", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Schedule_ApplicationUser_OwnerId", - table: "Schedule", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", - table: "ChatConnection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PayPalPayment_ApplicationUser_ExecutorId", - table: "PayPalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_Activity_ActivityCode", - table: "Project", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_ApplicationUser_ClientId", - table: "Project", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_Project_PerformerProfile_PerformerId", - table: "Project", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_ProjectBuildConfiguration_Project_ProjectId", - table: "ProjectBuildConfiguration", - column: "ProjectId", - principalTable: "Project", - principalColumn: "ProjectId", - onDelete: ReferentialAction.Restrict); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_BlogPost_PostId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_Tag_TagId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_Comment_ApplicationUser_AuthorId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Comment_BlogPost_PostId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Schedule_ApplicationUser_OwnerId", table: "Schedule"); - migrationBuilder.DropForeignKey(name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", table: "ChatConnection"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PayPalPayment_ApplicationUser_ExecutorId", table: "PayPalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_Project_Activity_ActivityCode", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_ApplicationUser_ClientId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_PerformerProfile_PerformerId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_ProjectBuildConfiguration_Project_ProjectId", table: "ProjectBuildConfiguration"); - migrationBuilder.DropUniqueConstraint(name: "AK_Project_ProjectId", table: "Project"); - migrationBuilder.DropColumn(name: "ProjectId", table: "Project"); - migrationBuilder.AlterColumn( - name: "ProjectId", - table: "ProjectBuildConfiguration", - nullable: false); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_BlogPost_PostId", - table: "BlogTag", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_Tag_TagId", - table: "BlogTag", - column: "TagId", - principalTable: "Tag", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Comment_ApplicationUser_AuthorId", - table: "Comment", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Comment_BlogPost_PostId", - table: "Comment", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Schedule_ApplicationUser_OwnerId", - table: "Schedule", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", - table: "ChatConnection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PayPalPayment_ApplicationUser_ExecutorId", - table: "PayPalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_Activity_ActivityCode", - table: "Project", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_ApplicationUser_ClientId", - table: "Project", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_PerformerProfile_PerformerId", - table: "Project", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_ProjectBuildConfiguration_Project_ProjectId", - table: "ProjectBuildConfiguration", - column: "ProjectId", - principalTable: "Project", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2018/20180703231814_wrongProjectConfigForeignKeyBis.Designer.cs b/src/Yavsc.Server/Migrations/2018/20180703231814_wrongProjectConfigForeignKeyBis.Designer.cs deleted file mode 100644 index 136dad51..00000000 --- a/src/Yavsc.Server/Migrations/2018/20180703231814_wrongProjectConfigForeignKeyBis.Designer.cs +++ /dev/null @@ -1,1887 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20180703231814_wrongProjectConfigForeignKeyBis")] - partial class wrongProjectConfigForeignKeyBis - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId"); - - b.Property("BlogPostId"); - - b.HasKey("CircleId", "BlogPostId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("AllowMonthlyEmail"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512) - .HasAnnotation("Relational:DefaultValue", "/images/Users/icon_user.png") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar") - .HasAnnotation("MaxLength", 512); - - b.Property("DiskQuota") - .HasAnnotation("Relational:DefaultValue", "524288000") - .HasAnnotation("Relational:DefaultValueType", "System.Int64"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("MaxFileSize"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Count"); - - b.Property("Currency"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 256); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType") - .IsRequired(); - - b.Property("Description"); - - b.Property("OwnerId"); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content") - .HasAnnotation("MaxLength", 56224); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Photo") - .HasAnnotation("MaxLength", 1024); - - b.Property("Rate"); - - b.Property("Title") - .HasAnnotation("MaxLength", 1024); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId") - .IsRequired(); - - b.Property("Content"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ParentId"); - - b.Property("PostId"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Period", b => - { - b.Property("Start"); - - b.Property("End"); - - b.HasKey("Start", "End"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Property("OwnerId"); - - b.HasKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PeriodEnd"); - - b.Property("PeriodStart"); - - b.Property("Reccurence"); - - b.Property("ScheduleOwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId") - .IsRequired(); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.Property("Name") - .HasAnnotation("MaxLength", 255); - - b.Property("ApplicationUserId"); - - b.Property("Topic") - .HasAnnotation("MaxLength", 1023); - - b.HasKey("Name"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomPresence", b => - { - b.Property("ChannelName"); - - b.Property("ChatUserConnectionId"); - - b.Property("Level"); - - b.HasKey("ChannelName", "ChatUserConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Cratie.Option", b => - { - b.Property("Code"); - - b.Property("CodeScrutin"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code", "CodeScrutin"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Blue"); - - b.Property("Green"); - - b.Property("Name"); - - b.Property("Red"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id"); - - b.Property("Summary"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId"); - - b.Property("ActionDistance"); - - b.Property("CarePrice"); - - b.Property("FlatFeeDiscount"); - - b.Property("HalfBalayagePrice"); - - b.Property("HalfBrushingPrice"); - - b.Property("HalfColorPrice"); - - b.Property("HalfDefrisPrice"); - - b.Property("HalfFoldingPrice"); - - b.Property("HalfMechPrice"); - - b.Property("HalfMultiColorPrice"); - - b.Property("HalfPermanentPrice"); - - b.Property("KidCutPrice"); - - b.Property("LongBalayagePrice"); - - b.Property("LongBrushingPrice"); - - b.Property("LongColorPrice"); - - b.Property("LongDefrisPrice"); - - b.Property("LongFoldingPrice"); - - b.Property("LongMechPrice"); - - b.Property("LongMultiColorPrice"); - - b.Property("LongPermanentPrice"); - - b.Property("ManBrushPrice"); - - b.Property("ManCutPrice"); - - b.Property("ScheduleOwnerId"); - - b.Property("ShampooPrice"); - - b.Property("ShortBalayagePrice"); - - b.Property("ShortBrushingPrice"); - - b.Property("ShortColorPrice"); - - b.Property("ShortDefrisPrice"); - - b.Property("ShortFoldingPrice"); - - b.Property("ShortMechPrice"); - - b.Property("ShortMultiColorPrice"); - - b.Property("ShortPermanentPrice"); - - b.Property("WomenHalfCutPrice"); - - b.Property("WomenLongCutPrice"); - - b.Property("WomenShortCutPrice"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("AdditionalInfo") - .HasAnnotation("MaxLength", 512); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("PrestationId"); - - b.Property("Previsional"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("SelectedProfileUserId"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Cares"); - - b.Property("Cut"); - - b.Property("Dressing"); - - b.Property("Gender"); - - b.Property("Length"); - - b.Property("Shampoo"); - - b.Property("Tech"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PrestationId"); - - b.Property("QueryId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Brand"); - - b.Property("ColorId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.Property("TaintId"); - - b.Property("PrestationId"); - - b.HasKey("TaintId", "PrestationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("LatestActivityUpdate"); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("FeatureId"); - - b.Property("Status"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Maintaining.Feature", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("ShortName"); - - b.Property("Status"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Depth"); - - b.Property("Description"); - - b.Property("Height"); - - b.Property("Name"); - - b.Property("Price"); - - b.Property("Public"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("For"); - - b.Property("Message"); - - b.Property("OwnerId"); - - b.Property("Sender"); - - b.Property("Topic"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.Property("UserId"); - - b.Property("NotificationId"); - - b.HasKey("UserId", "NotificationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Target"); - - b.Property("body") - .IsRequired(); - - b.Property("click_action") - .IsRequired(); - - b.Property("color"); - - b.Property("icon") - .HasAnnotation("Relational:DefaultValue", "exclam") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("sound"); - - b.Property("tag"); - - b.Property("title") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId"); - - b.Property("DjSettingsUserId"); - - b.Property("GeneralSettingsUserId"); - - b.Property("Rate"); - - b.Property("TendencyId"); - - b.HasKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId"); - - b.Property("SoundCloudId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId"); - - b.Property("UserId"); - - b.HasKey("InstrumentId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Property("CreationToken"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ExecutorId") - .IsRequired(); - - b.Property("OrderReference"); - - b.Property("PaypalPayerId"); - - b.Property("State"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("CreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId"); - - b.Property("CircleId"); - - b.HasKey("MemberId", "CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.Property("HRef"); - - b.Property("Method"); - - b.Property("BrusherProfileUserId"); - - b.Property("ContentType"); - - b.Property("PayPalPaymentCreationToken"); - - b.Property("Rel"); - - b.HasKey("HRef", "Method"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("Hidden"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("SettingsClassName"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActionName"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FormationSettingsUserId"); - - b.Property("PerformerId"); - - b.Property("WorkingForId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients"); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationType"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("DoesCode", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.EMailing.MailingTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Body") - .HasAnnotation("MaxLength", 65536); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ManagerId"); - - b.Property("ReplyToAddress"); - - b.Property("ToSend"); - - b.Property("Topic") - .HasAnnotation("MaxLength", 128); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("Name") - .IsRequired(); - - b.Property("OwnerId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.Property("Version"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.Property("ProjectId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("BlogPostId"); - - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("PostId"); - - b.HasOne("Yavsc.Models.Relationship.Tag") - .WithMany() - .HasForeignKey("TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - - b.HasOne("Yavsc.Models.Blog.Comment") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Calendar.Period") - .WithMany() - .HasForeignKey("PeriodStart", "PeriodEnd"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomPresence", b => - { - b.HasOne("Yavsc.Models.Chat.ChatRoom") - .WithMany() - .HasForeignKey("ChannelName"); - - b.HasOne("Yavsc.Models.Chat.ChatConnection") - .WithMany() - .HasForeignKey("ChatUserConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("SelectedProfileUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery") - .WithMany() - .HasForeignKey("QueryId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color") - .WithMany() - .HasForeignKey("ColorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairTaint") - .WithMany() - .HasForeignKey("TaintId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.HasOne("Yavsc.Models.IT.Maintaining.Feature") - .WithMany() - .HasForeignKey("FeatureId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.HasOne("Yavsc.Models.Messaging.Notification") - .WithMany() - .HasForeignKey("NotificationId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings") - .WithMany() - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings") - .WithMany() - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ExecutorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("BrusherProfileUserId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PayPalPaymentCreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings") - .WithMany() - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("WorkingForId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.EMailing.MailingTemplate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ManagerId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.HasOne("Yavsc.Server.Models.IT.Project") - .WithMany() - .HasForeignKey("ProjectId"); - }); - - } - } -} diff --git a/src/Yavsc.Server/Migrations/2018/20180703231814_wrongProjectConfigForeignKeyBis.cs b/src/Yavsc.Server/Migrations/2018/20180703231814_wrongProjectConfigForeignKeyBis.cs deleted file mode 100644 index c63a2d54..00000000 --- a/src/Yavsc.Server/Migrations/2018/20180703231814_wrongProjectConfigForeignKeyBis.cs +++ /dev/null @@ -1,823 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class wrongProjectConfigForeignKeyBis : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_BlogPost_PostId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_Tag_TagId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_Comment_ApplicationUser_AuthorId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Comment_BlogPost_PostId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Schedule_ApplicationUser_OwnerId", table: "Schedule"); - migrationBuilder.DropForeignKey(name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", table: "ChatConnection"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PayPalPayment_ApplicationUser_ExecutorId", table: "PayPalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_Project_Activity_ActivityCode", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_ApplicationUser_ClientId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_PerformerProfile_PerformerId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_ProjectBuildConfiguration_Project_ProjectId", table: "ProjectBuildConfiguration"); - migrationBuilder.DropUniqueConstraint(name: "AK_Project_ProjectId", table: "Project"); - migrationBuilder.DropColumn(name: "ProjectId", table: "Project"); - migrationBuilder.DropColumn(name: "ProjectId", table: "ProjectBuildConfiguration"); - migrationBuilder.AddColumn( - name: "ProjectId", - table: "ProjectBuildConfiguration", - nullable: false); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_BlogPost_PostId", - table: "BlogTag", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_Tag_TagId", - table: "BlogTag", - column: "TagId", - principalTable: "Tag", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Comment_ApplicationUser_AuthorId", - table: "Comment", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Comment_BlogPost_PostId", - table: "Comment", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Schedule_ApplicationUser_OwnerId", - table: "Schedule", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", - table: "ChatConnection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PayPalPayment_ApplicationUser_ExecutorId", - table: "PayPalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_Activity_ActivityCode", - table: "Project", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_ApplicationUser_ClientId", - table: "Project", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_Project_PerformerProfile_PerformerId", - table: "Project", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_ProjectBuildConfiguration_Project_ProjectId", - table: "ProjectBuildConfiguration", - column: "ProjectId", - principalTable: "Project", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_BlogPost_PostId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_Tag_TagId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_Comment_ApplicationUser_AuthorId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Comment_BlogPost_PostId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Schedule_ApplicationUser_OwnerId", table: "Schedule"); - migrationBuilder.DropForeignKey(name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", table: "ChatConnection"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PayPalPayment_ApplicationUser_ExecutorId", table: "PayPalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_Project_Activity_ActivityCode", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_ApplicationUser_ClientId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_PerformerProfile_PerformerId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_ProjectBuildConfiguration_Project_ProjectId", table: "ProjectBuildConfiguration"); - migrationBuilder.AlterColumn( - name: "ProjectId", - table: "ProjectBuildConfiguration", - nullable: true); - migrationBuilder.AddColumn( - name: "ProjectId", - table: "Project", - nullable: false, - defaultValue: ""); - migrationBuilder.AddUniqueConstraint( - name: "AK_Project_ProjectId", - table: "Project", - column: "ProjectId"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_BlogPost_PostId", - table: "BlogTag", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_Tag_TagId", - table: "BlogTag", - column: "TagId", - principalTable: "Tag", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Comment_ApplicationUser_AuthorId", - table: "Comment", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Comment_BlogPost_PostId", - table: "Comment", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Schedule_ApplicationUser_OwnerId", - table: "Schedule", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", - table: "ChatConnection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PayPalPayment_ApplicationUser_ExecutorId", - table: "PayPalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_Activity_ActivityCode", - table: "Project", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_ApplicationUser_ClientId", - table: "Project", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_PerformerProfile_PerformerId", - table: "Project", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_ProjectBuildConfiguration_Project_ProjectId", - table: "ProjectBuildConfiguration", - column: "ProjectId", - principalTable: "Project", - principalColumn: "ProjectId", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2018/20180805122812_gitprojectref.Designer.cs b/src/Yavsc.Server/Migrations/2018/20180805122812_gitprojectref.Designer.cs deleted file mode 100644 index 2905014a..00000000 --- a/src/Yavsc.Server/Migrations/2018/20180805122812_gitprojectref.Designer.cs +++ /dev/null @@ -1,1923 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20180805122812_gitprojectref")] - partial class gitprojectref - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Abstract.Identity.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId"); - - b.Property("BlogPostId"); - - b.HasKey("CircleId", "BlogPostId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("AllowMonthlyEmail"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512) - .HasAnnotation("Relational:DefaultValue", "/images/Users/icon_user.png") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar") - .HasAnnotation("MaxLength", 512); - - b.Property("DiskQuota") - .HasAnnotation("Relational:DefaultValue", "524288000") - .HasAnnotation("Relational:DefaultValueType", "System.Int64"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("MaxFileSize"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Count"); - - b.Property("Currency"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 256); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType") - .IsRequired(); - - b.Property("Description"); - - b.Property("OwnerId"); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content") - .HasAnnotation("MaxLength", 56224); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Photo") - .HasAnnotation("MaxLength", 1024); - - b.Property("Rate"); - - b.Property("Title") - .HasAnnotation("MaxLength", 1024); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId") - .IsRequired(); - - b.Property("Content"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ParentId"); - - b.Property("PostId"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Period", b => - { - b.Property("Start"); - - b.Property("End"); - - b.HasKey("Start", "End"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Property("OwnerId"); - - b.HasKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PeriodEnd"); - - b.Property("PeriodStart"); - - b.Property("Reccurence"); - - b.Property("ScheduleOwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId") - .IsRequired(); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.Property("Name") - .HasAnnotation("MaxLength", 255); - - b.Property("ApplicationUserId"); - - b.Property("Topic") - .HasAnnotation("MaxLength", 1023); - - b.HasKey("Name"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomPresence", b => - { - b.Property("ChannelName"); - - b.Property("ChatUserConnectionId"); - - b.Property("Level"); - - b.HasKey("ChannelName", "ChatUserConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Cratie.Option", b => - { - b.Property("Code"); - - b.Property("CodeScrutin"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code", "CodeScrutin"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Blue"); - - b.Property("Green"); - - b.Property("Name"); - - b.Property("Red"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id"); - - b.Property("Summary"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId"); - - b.Property("ActionDistance"); - - b.Property("CarePrice"); - - b.Property("FlatFeeDiscount"); - - b.Property("HalfBalayagePrice"); - - b.Property("HalfBrushingPrice"); - - b.Property("HalfColorPrice"); - - b.Property("HalfDefrisPrice"); - - b.Property("HalfFoldingPrice"); - - b.Property("HalfMechPrice"); - - b.Property("HalfMultiColorPrice"); - - b.Property("HalfPermanentPrice"); - - b.Property("KidCutPrice"); - - b.Property("LongBalayagePrice"); - - b.Property("LongBrushingPrice"); - - b.Property("LongColorPrice"); - - b.Property("LongDefrisPrice"); - - b.Property("LongFoldingPrice"); - - b.Property("LongMechPrice"); - - b.Property("LongMultiColorPrice"); - - b.Property("LongPermanentPrice"); - - b.Property("ManBrushPrice"); - - b.Property("ManCutPrice"); - - b.Property("ScheduleOwnerId"); - - b.Property("ShampooPrice"); - - b.Property("ShortBalayagePrice"); - - b.Property("ShortBrushingPrice"); - - b.Property("ShortColorPrice"); - - b.Property("ShortDefrisPrice"); - - b.Property("ShortFoldingPrice"); - - b.Property("ShortMechPrice"); - - b.Property("ShortMultiColorPrice"); - - b.Property("ShortPermanentPrice"); - - b.Property("WomenHalfCutPrice"); - - b.Property("WomenLongCutPrice"); - - b.Property("WomenShortCutPrice"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("AdditionalInfo") - .HasAnnotation("MaxLength", 512); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("PrestationId"); - - b.Property("Previsional"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("SelectedProfileUserId"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Cares"); - - b.Property("Cut"); - - b.Property("Dressing"); - - b.Property("Gender"); - - b.Property("Length"); - - b.Property("Shampoo"); - - b.Property("Tech"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PrestationId"); - - b.Property("QueryId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Brand"); - - b.Property("ColorId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.Property("TaintId"); - - b.Property("PrestationId"); - - b.HasKey("TaintId", "PrestationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("LatestActivityUpdate"); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("FeatureId"); - - b.Property("Status"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Maintaining.Feature", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("ShortName"); - - b.Property("Status"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Depth"); - - b.Property("Description"); - - b.Property("Height"); - - b.Property("Name"); - - b.Property("Price"); - - b.Property("Public"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("For"); - - b.Property("Message"); - - b.Property("OwnerId"); - - b.Property("Sender"); - - b.Property("Topic"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.Property("UserId"); - - b.Property("NotificationId"); - - b.HasKey("UserId", "NotificationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Target"); - - b.Property("body") - .IsRequired(); - - b.Property("click_action") - .IsRequired(); - - b.Property("color"); - - b.Property("icon") - .HasAnnotation("Relational:DefaultValue", "exclam") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("sound"); - - b.Property("tag"); - - b.Property("title") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId"); - - b.Property("DjSettingsUserId"); - - b.Property("GeneralSettingsUserId"); - - b.Property("Rate"); - - b.Property("TendencyId"); - - b.HasKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId"); - - b.Property("SoundCloudId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId"); - - b.Property("UserId"); - - b.HasKey("InstrumentId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Property("CreationToken"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ExecutorId") - .IsRequired(); - - b.Property("OrderReference"); - - b.Property("PaypalPayerId"); - - b.Property("State"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("CreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId"); - - b.Property("CircleId"); - - b.HasKey("MemberId", "CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.Property("HRef"); - - b.Property("Method"); - - b.Property("BrusherProfileUserId"); - - b.Property("ContentType"); - - b.Property("PayPalPaymentCreationToken"); - - b.Property("Rel"); - - b.HasKey("HRef", "Method"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("Hidden"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("SettingsClassName"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActionName"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FormationSettingsUserId"); - - b.Property("PerformerId"); - - b.Property("WorkingForId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients"); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationType"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("DoesCode", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.EMailing.MailingTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Body") - .HasAnnotation("MaxLength", 65536); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ManagerId"); - - b.Property("ReplyToAddress"); - - b.Property("ToSend"); - - b.Property("Topic") - .HasAnnotation("MaxLength", 128); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("GitId"); - - b.Property("Name") - .IsRequired(); - - b.Property("OwnerId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.Property("Version"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.Property("ProjectId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Branch") - .HasAnnotation("MaxLength", 512); - - b.Property("OwnerId") - .HasAnnotation("MaxLength", 1024); - - b.Property("Path") - .IsRequired(); - - b.Property("Url") - .HasAnnotation("MaxLength", 2048); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("BlogPostId"); - - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("PostId"); - - b.HasOne("Yavsc.Models.Relationship.Tag") - .WithMany() - .HasForeignKey("TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - - b.HasOne("Yavsc.Models.Blog.Comment") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Calendar.Period") - .WithMany() - .HasForeignKey("PeriodStart", "PeriodEnd"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomPresence", b => - { - b.HasOne("Yavsc.Models.Chat.ChatRoom") - .WithMany() - .HasForeignKey("ChannelName"); - - b.HasOne("Yavsc.Models.Chat.ChatConnection") - .WithMany() - .HasForeignKey("ChatUserConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("SelectedProfileUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery") - .WithMany() - .HasForeignKey("QueryId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color") - .WithMany() - .HasForeignKey("ColorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairTaint") - .WithMany() - .HasForeignKey("TaintId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.HasOne("Yavsc.Models.IT.Maintaining.Feature") - .WithMany() - .HasForeignKey("FeatureId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.HasOne("Yavsc.Models.Messaging.Notification") - .WithMany() - .HasForeignKey("NotificationId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings") - .WithMany() - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings") - .WithMany() - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ExecutorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("BrusherProfileUserId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PayPalPaymentCreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings") - .WithMany() - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("WorkingForId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.EMailing.MailingTemplate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ManagerId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference") - .WithMany() - .HasForeignKey("GitId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.HasOne("Yavsc.Server.Models.IT.Project") - .WithMany() - .HasForeignKey("ProjectId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2018/20180805122812_gitprojectref.cs b/src/Yavsc.Server/Migrations/2018/20180805122812_gitprojectref.cs deleted file mode 100644 index 0765909b..00000000 --- a/src/Yavsc.Server/Migrations/2018/20180805122812_gitprojectref.cs +++ /dev/null @@ -1,845 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class gitprojectref : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_BlogPost_PostId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_Tag_TagId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_Comment_ApplicationUser_AuthorId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Comment_BlogPost_PostId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Schedule_ApplicationUser_OwnerId", table: "Schedule"); - migrationBuilder.DropForeignKey(name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", table: "ChatConnection"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PayPalPayment_ApplicationUser_ExecutorId", table: "PayPalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_Project_Activity_ActivityCode", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_ApplicationUser_ClientId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_PerformerProfile_PerformerId", table: "Project"); - migrationBuilder.CreateTable( - name: "GitRepositoryReference", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("Npgsql:Serial", true), - Branch = table.Column(nullable: true), - OwnerId = table.Column(nullable: true), - Path = table.Column(nullable: false), - Url = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_GitRepositoryReference", x => x.Id); - table.ForeignKey( - name: "FK_GitRepositoryReference_ApplicationUser_OwnerId", - column: x => x.OwnerId, - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - }); - migrationBuilder.AddColumn( - name: "GitId", - table: "Project", - nullable: false, - defaultValue: 0L); - migrationBuilder.AddColumn( - name: "Description", - table: "RdvQuery", - nullable: true); - migrationBuilder.AddColumn( - name: "Description", - table: "HairMultiCutQuery", - nullable: true); - migrationBuilder.AddColumn( - name: "Description", - table: "HairCutQuery", - nullable: true); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_BlogPost_PostId", - table: "BlogTag", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_Tag_TagId", - table: "BlogTag", - column: "TagId", - principalTable: "Tag", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Comment_ApplicationUser_AuthorId", - table: "Comment", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Comment_BlogPost_PostId", - table: "Comment", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Schedule_ApplicationUser_OwnerId", - table: "Schedule", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", - table: "ChatConnection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PayPalPayment_ApplicationUser_ExecutorId", - table: "PayPalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_Activity_ActivityCode", - table: "Project", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_ApplicationUser_ClientId", - table: "Project", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_GitRepositoryReference_GitId", - table: "Project", - column: "GitId", - principalTable: "GitRepositoryReference", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_PerformerProfile_PerformerId", - table: "Project", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_BlogPost_PostId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_Tag_TagId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_Comment_ApplicationUser_AuthorId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Comment_BlogPost_PostId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Schedule_ApplicationUser_OwnerId", table: "Schedule"); - migrationBuilder.DropForeignKey(name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", table: "ChatConnection"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PayPalPayment_ApplicationUser_ExecutorId", table: "PayPalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_Project_Activity_ActivityCode", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_ApplicationUser_ClientId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_GitRepositoryReference_GitId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_PerformerProfile_PerformerId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_ProjectBuildConfiguration_Project_ProjectId", table: "ProjectBuildConfiguration"); - migrationBuilder.DropColumn(name: "GitId", table: "Project"); - migrationBuilder.DropColumn(name: "Description", table: "RdvQuery"); - migrationBuilder.DropColumn(name: "Description", table: "HairMultiCutQuery"); - migrationBuilder.DropColumn(name: "Description", table: "HairCutQuery"); - migrationBuilder.DropTable("GitRepositoryReference"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_BlogPost_PostId", - table: "BlogTag", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_Tag_TagId", - table: "BlogTag", - column: "TagId", - principalTable: "Tag", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Comment_ApplicationUser_AuthorId", - table: "Comment", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Comment_BlogPost_PostId", - table: "Comment", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Schedule_ApplicationUser_OwnerId", - table: "Schedule", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", - table: "ChatConnection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PayPalPayment_ApplicationUser_ExecutorId", - table: "PayPalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_Activity_ActivityCode", - table: "Project", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_ApplicationUser_ClientId", - table: "Project", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_PerformerProfile_PerformerId", - table: "Project", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_ProjectBuildConfiguration_Project_ProjectId", - table: "ProjectBuildConfiguration", - column: "ProjectId", - principalTable: "Project", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2018/20181212103501_blogLang.Designer.cs b/src/Yavsc.Server/Migrations/2018/20181212103501_blogLang.Designer.cs deleted file mode 100644 index 8e90d6db..00000000 --- a/src/Yavsc.Server/Migrations/2018/20181212103501_blogLang.Designer.cs +++ /dev/null @@ -1,1926 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20181212103501_blogLang")] - partial class blogLang - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Abstract.Identity.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId"); - - b.Property("BlogPostId"); - - b.HasKey("CircleId", "BlogPostId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("AllowMonthlyEmail"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512) - .HasAnnotation("Relational:DefaultValue", "/images/Users/icon_user.png") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar") - .HasAnnotation("MaxLength", 512); - - b.Property("DiskQuota") - .HasAnnotation("Relational:DefaultValue", "524288000") - .HasAnnotation("Relational:DefaultValueType", "System.Int64"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("MaxFileSize"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Count"); - - b.Property("Currency"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 256); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType") - .IsRequired(); - - b.Property("Description"); - - b.Property("OwnerId"); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content") - .HasAnnotation("MaxLength", 56224); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Lang") - .HasAnnotation("MaxLength", 8); - - b.Property("Photo") - .HasAnnotation("MaxLength", 1024); - - b.Property("Rate"); - - b.Property("Title") - .HasAnnotation("MaxLength", 1024); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId") - .IsRequired(); - - b.Property("Content"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ParentId"); - - b.Property("PostId"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Period", b => - { - b.Property("Start"); - - b.Property("End"); - - b.HasKey("Start", "End"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Property("OwnerId"); - - b.HasKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PeriodEnd"); - - b.Property("PeriodStart"); - - b.Property("Reccurence"); - - b.Property("ScheduleOwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId") - .IsRequired(); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.Property("Name") - .HasAnnotation("MaxLength", 255); - - b.Property("ApplicationUserId"); - - b.Property("Topic") - .HasAnnotation("MaxLength", 1023); - - b.HasKey("Name"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomPresence", b => - { - b.Property("ChannelName"); - - b.Property("ChatUserConnectionId"); - - b.Property("Level"); - - b.HasKey("ChannelName", "ChatUserConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Cratie.Option", b => - { - b.Property("Code"); - - b.Property("CodeScrutin"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code", "CodeScrutin"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Blue"); - - b.Property("Green"); - - b.Property("Name"); - - b.Property("Red"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id"); - - b.Property("Summary"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId"); - - b.Property("ActionDistance"); - - b.Property("CarePrice"); - - b.Property("FlatFeeDiscount"); - - b.Property("HalfBalayagePrice"); - - b.Property("HalfBrushingPrice"); - - b.Property("HalfColorPrice"); - - b.Property("HalfDefrisPrice"); - - b.Property("HalfFoldingPrice"); - - b.Property("HalfMechPrice"); - - b.Property("HalfMultiColorPrice"); - - b.Property("HalfPermanentPrice"); - - b.Property("KidCutPrice"); - - b.Property("LongBalayagePrice"); - - b.Property("LongBrushingPrice"); - - b.Property("LongColorPrice"); - - b.Property("LongDefrisPrice"); - - b.Property("LongFoldingPrice"); - - b.Property("LongMechPrice"); - - b.Property("LongMultiColorPrice"); - - b.Property("LongPermanentPrice"); - - b.Property("ManBrushPrice"); - - b.Property("ManCutPrice"); - - b.Property("ScheduleOwnerId"); - - b.Property("ShampooPrice"); - - b.Property("ShortBalayagePrice"); - - b.Property("ShortBrushingPrice"); - - b.Property("ShortColorPrice"); - - b.Property("ShortDefrisPrice"); - - b.Property("ShortFoldingPrice"); - - b.Property("ShortMechPrice"); - - b.Property("ShortMultiColorPrice"); - - b.Property("ShortPermanentPrice"); - - b.Property("WomenHalfCutPrice"); - - b.Property("WomenLongCutPrice"); - - b.Property("WomenShortCutPrice"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("AdditionalInfo") - .HasAnnotation("MaxLength", 512); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("PrestationId"); - - b.Property("Previsional"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("SelectedProfileUserId"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Cares"); - - b.Property("Cut"); - - b.Property("Dressing"); - - b.Property("Gender"); - - b.Property("Length"); - - b.Property("Shampoo"); - - b.Property("Tech"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PrestationId"); - - b.Property("QueryId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Brand"); - - b.Property("ColorId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.Property("TaintId"); - - b.Property("PrestationId"); - - b.HasKey("TaintId", "PrestationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("LatestActivityUpdate"); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("FeatureId"); - - b.Property("Status"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Maintaining.Feature", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("ShortName"); - - b.Property("Status"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Depth"); - - b.Property("Description"); - - b.Property("Height"); - - b.Property("Name"); - - b.Property("Price"); - - b.Property("Public"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("For"); - - b.Property("Message"); - - b.Property("OwnerId"); - - b.Property("Sender"); - - b.Property("Topic"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.Property("UserId"); - - b.Property("NotificationId"); - - b.HasKey("UserId", "NotificationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Target"); - - b.Property("body") - .IsRequired(); - - b.Property("click_action") - .IsRequired(); - - b.Property("color"); - - b.Property("icon") - .HasAnnotation("Relational:DefaultValue", "exclam") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("sound"); - - b.Property("tag"); - - b.Property("title") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId"); - - b.Property("DjSettingsUserId"); - - b.Property("GeneralSettingsUserId"); - - b.Property("Rate"); - - b.Property("TendencyId"); - - b.HasKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId"); - - b.Property("SoundCloudId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId"); - - b.Property("UserId"); - - b.HasKey("InstrumentId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Property("CreationToken"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ExecutorId") - .IsRequired(); - - b.Property("OrderReference"); - - b.Property("PaypalPayerId"); - - b.Property("State"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("CreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId"); - - b.Property("CircleId"); - - b.HasKey("MemberId", "CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.Property("HRef"); - - b.Property("Method"); - - b.Property("BrusherProfileUserId"); - - b.Property("ContentType"); - - b.Property("PayPalPaymentCreationToken"); - - b.Property("Rel"); - - b.HasKey("HRef", "Method"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("Hidden"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("SettingsClassName"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActionName"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FormationSettingsUserId"); - - b.Property("PerformerId"); - - b.Property("WorkingForId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients"); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationType"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("DoesCode", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.EMailing.MailingTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Body") - .HasAnnotation("MaxLength", 65536); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ManagerId"); - - b.Property("ReplyToAddress"); - - b.Property("ToSend"); - - b.Property("Topic") - .HasAnnotation("MaxLength", 128); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("GitId"); - - b.Property("Name") - .IsRequired(); - - b.Property("OwnerId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.Property("Version"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.Property("ProjectId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Branch") - .HasAnnotation("MaxLength", 512); - - b.Property("OwnerId") - .HasAnnotation("MaxLength", 1024); - - b.Property("Path") - .IsRequired(); - - b.Property("Url") - .HasAnnotation("MaxLength", 2048); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("BlogPostId"); - - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("PostId"); - - b.HasOne("Yavsc.Models.Relationship.Tag") - .WithMany() - .HasForeignKey("TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - - b.HasOne("Yavsc.Models.Blog.Comment") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Calendar.Period") - .WithMany() - .HasForeignKey("PeriodStart", "PeriodEnd"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomPresence", b => - { - b.HasOne("Yavsc.Models.Chat.ChatRoom") - .WithMany() - .HasForeignKey("ChannelName"); - - b.HasOne("Yavsc.Models.Chat.ChatConnection") - .WithMany() - .HasForeignKey("ChatUserConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("SelectedProfileUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery") - .WithMany() - .HasForeignKey("QueryId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color") - .WithMany() - .HasForeignKey("ColorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairTaint") - .WithMany() - .HasForeignKey("TaintId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.HasOne("Yavsc.Models.IT.Maintaining.Feature") - .WithMany() - .HasForeignKey("FeatureId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.HasOne("Yavsc.Models.Messaging.Notification") - .WithMany() - .HasForeignKey("NotificationId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings") - .WithMany() - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings") - .WithMany() - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ExecutorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("BrusherProfileUserId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PayPalPaymentCreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings") - .WithMany() - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("WorkingForId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.EMailing.MailingTemplate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ManagerId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference") - .WithMany() - .HasForeignKey("GitId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.HasOne("Yavsc.Server.Models.IT.Project") - .WithMany() - .HasForeignKey("ProjectId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2018/20181212103501_blogLang.cs b/src/Yavsc.Server/Migrations/2018/20181212103501_blogLang.cs deleted file mode 100644 index 768d3c65..00000000 --- a/src/Yavsc.Server/Migrations/2018/20181212103501_blogLang.cs +++ /dev/null @@ -1,824 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class blogLang : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_BlogPost_PostId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_Tag_TagId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_Comment_ApplicationUser_AuthorId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Comment_BlogPost_PostId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Schedule_ApplicationUser_OwnerId", table: "Schedule"); - migrationBuilder.DropForeignKey(name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", table: "ChatConnection"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PayPalPayment_ApplicationUser_ExecutorId", table: "PayPalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_Project_Activity_ActivityCode", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_ApplicationUser_ClientId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_GitRepositoryReference_GitId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_PerformerProfile_PerformerId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_ProjectBuildConfiguration_Project_ProjectId", table: "ProjectBuildConfiguration"); - migrationBuilder.AddColumn( - name: "Lang", - table: "BlogPost", - nullable: true); - migrationBuilder.Sql("update \"BlogPost\" set \"Lang\"='fr'"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_BlogPost_PostId", - table: "BlogTag", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_Tag_TagId", - table: "BlogTag", - column: "TagId", - principalTable: "Tag", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Comment_ApplicationUser_AuthorId", - table: "Comment", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Comment_BlogPost_PostId", - table: "Comment", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Schedule_ApplicationUser_OwnerId", - table: "Schedule", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", - table: "ChatConnection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PayPalPayment_ApplicationUser_ExecutorId", - table: "PayPalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_Activity_ActivityCode", - table: "Project", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_ApplicationUser_ClientId", - table: "Project", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_GitRepositoryReference_GitId", - table: "Project", - column: "GitId", - principalTable: "GitRepositoryReference", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_PerformerProfile_PerformerId", - table: "Project", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_ProjectBuildConfiguration_Project_ProjectId", - table: "ProjectBuildConfiguration", - column: "ProjectId", - principalTable: "Project", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_BlogPost_PostId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_Tag_TagId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_Comment_ApplicationUser_AuthorId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Comment_BlogPost_PostId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Schedule_ApplicationUser_OwnerId", table: "Schedule"); - migrationBuilder.DropForeignKey(name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", table: "ChatConnection"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PayPalPayment_ApplicationUser_ExecutorId", table: "PayPalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_Project_Activity_ActivityCode", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_ApplicationUser_ClientId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_GitRepositoryReference_GitId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_PerformerProfile_PerformerId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_ProjectBuildConfiguration_Project_ProjectId", table: "ProjectBuildConfiguration"); - migrationBuilder.DropColumn(name: "Lang", table: "BlogPost"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_BlogPost_PostId", - table: "BlogTag", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_Tag_TagId", - table: "BlogTag", - column: "TagId", - principalTable: "Tag", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Comment_ApplicationUser_AuthorId", - table: "Comment", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Comment_BlogPost_PostId", - table: "Comment", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Schedule_ApplicationUser_OwnerId", - table: "Schedule", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", - table: "ChatConnection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PayPalPayment_ApplicationUser_ExecutorId", - table: "PayPalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_Activity_ActivityCode", - table: "Project", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_ApplicationUser_ClientId", - table: "Project", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_GitRepositoryReference_GitId", - table: "Project", - column: "GitId", - principalTable: "GitRepositoryReference", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_PerformerProfile_PerformerId", - table: "Project", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_ProjectBuildConfiguration_Project_ProjectId", - table: "ProjectBuildConfiguration", - column: "ProjectId", - principalTable: "Project", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2018/20181218152420_BlogTradModel.Designer.cs b/src/Yavsc.Server/Migrations/2018/20181218152420_BlogTradModel.Designer.cs deleted file mode 100644 index 56663856..00000000 --- a/src/Yavsc.Server/Migrations/2018/20181218152420_BlogTradModel.Designer.cs +++ /dev/null @@ -1,1948 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20181218152420_BlogTradModel")] - partial class BlogTradModel - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Abstract.Identity.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId"); - - b.Property("BlogPostId"); - - b.HasKey("CircleId", "BlogPostId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("AllowMonthlyEmail"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512) - .HasAnnotation("Relational:DefaultValue", "/images/Users/icon_user.png") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar") - .HasAnnotation("MaxLength", 512); - - b.Property("DiskQuota") - .HasAnnotation("Relational:DefaultValue", "524288000") - .HasAnnotation("Relational:DefaultValueType", "System.Int64"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("MaxFileSize"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Count"); - - b.Property("Currency"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 256); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType") - .IsRequired(); - - b.Property("Description"); - - b.Property("OwnerId"); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content") - .HasAnnotation("MaxLength", 56224); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Lang") - .HasAnnotation("MaxLength", 8); - - b.Property("Photo") - .HasAnnotation("MaxLength", 1024); - - b.Property("Rate"); - - b.Property("Title") - .HasAnnotation("MaxLength", 1024); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId") - .IsRequired(); - - b.Property("Content"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ParentId"); - - b.Property("PostId"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Period", b => - { - b.Property("Start"); - - b.Property("End"); - - b.HasKey("Start", "End"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Property("OwnerId"); - - b.HasKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PeriodEnd"); - - b.Property("PeriodStart"); - - b.Property("Reccurence"); - - b.Property("ScheduleOwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId") - .IsRequired(); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.Property("Name") - .HasAnnotation("MaxLength", 255); - - b.Property("ApplicationUserId"); - - b.Property("Topic") - .HasAnnotation("MaxLength", 1023); - - b.HasKey("Name"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomPresence", b => - { - b.Property("ChannelName"); - - b.Property("ChatUserConnectionId"); - - b.Property("Level"); - - b.HasKey("ChannelName", "ChatUserConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Cratie.Option", b => - { - b.Property("Code"); - - b.Property("CodeScrutin"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code", "CodeScrutin"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Blue"); - - b.Property("Green"); - - b.Property("Name"); - - b.Property("Red"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id"); - - b.Property("Summary"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId"); - - b.Property("ActionDistance"); - - b.Property("CarePrice"); - - b.Property("FlatFeeDiscount"); - - b.Property("HalfBalayagePrice"); - - b.Property("HalfBrushingPrice"); - - b.Property("HalfColorPrice"); - - b.Property("HalfDefrisPrice"); - - b.Property("HalfFoldingPrice"); - - b.Property("HalfMechPrice"); - - b.Property("HalfMultiColorPrice"); - - b.Property("HalfPermanentPrice"); - - b.Property("KidCutPrice"); - - b.Property("LongBalayagePrice"); - - b.Property("LongBrushingPrice"); - - b.Property("LongColorPrice"); - - b.Property("LongDefrisPrice"); - - b.Property("LongFoldingPrice"); - - b.Property("LongMechPrice"); - - b.Property("LongMultiColorPrice"); - - b.Property("LongPermanentPrice"); - - b.Property("ManBrushPrice"); - - b.Property("ManCutPrice"); - - b.Property("ScheduleOwnerId"); - - b.Property("ShampooPrice"); - - b.Property("ShortBalayagePrice"); - - b.Property("ShortBrushingPrice"); - - b.Property("ShortColorPrice"); - - b.Property("ShortDefrisPrice"); - - b.Property("ShortFoldingPrice"); - - b.Property("ShortMechPrice"); - - b.Property("ShortMultiColorPrice"); - - b.Property("ShortPermanentPrice"); - - b.Property("WomenHalfCutPrice"); - - b.Property("WomenLongCutPrice"); - - b.Property("WomenShortCutPrice"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("AdditionalInfo") - .HasAnnotation("MaxLength", 512); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("PrestationId"); - - b.Property("Previsional"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("SelectedProfileUserId"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Cares"); - - b.Property("Cut"); - - b.Property("Dressing"); - - b.Property("Gender"); - - b.Property("Length"); - - b.Property("Shampoo"); - - b.Property("Tech"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PrestationId"); - - b.Property("QueryId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Brand"); - - b.Property("ColorId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.Property("TaintId"); - - b.Property("PrestationId"); - - b.HasKey("TaintId", "PrestationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("LatestActivityUpdate"); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("FeatureId"); - - b.Property("Status"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Maintaining.Feature", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("ShortName"); - - b.Property("Status"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Depth"); - - b.Property("Description"); - - b.Property("Height"); - - b.Property("Name"); - - b.Property("Price"); - - b.Property("Public"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("For"); - - b.Property("Message"); - - b.Property("OwnerId"); - - b.Property("Sender"); - - b.Property("Topic"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.Property("UserId"); - - b.Property("NotificationId"); - - b.HasKey("UserId", "NotificationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Target"); - - b.Property("body") - .IsRequired(); - - b.Property("click_action") - .IsRequired(); - - b.Property("color"); - - b.Property("icon") - .HasAnnotation("Relational:DefaultValue", "exclam") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("sound"); - - b.Property("tag"); - - b.Property("title") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId"); - - b.Property("DjSettingsUserId"); - - b.Property("GeneralSettingsUserId"); - - b.Property("Rate"); - - b.Property("TendencyId"); - - b.HasKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId"); - - b.Property("SoundCloudId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId"); - - b.Property("UserId"); - - b.HasKey("InstrumentId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.OAuth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Property("CreationToken"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ExecutorId") - .IsRequired(); - - b.Property("OrderReference"); - - b.Property("PaypalPayerId"); - - b.Property("State"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("CreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId"); - - b.Property("CircleId"); - - b.HasKey("MemberId", "CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.Property("HRef"); - - b.Property("Method"); - - b.Property("BrusherProfileUserId"); - - b.Property("ContentType"); - - b.Property("PayPalPaymentCreationToken"); - - b.Property("Rel"); - - b.HasKey("HRef", "Method"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("Hidden"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("SettingsClassName"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActionName"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FormationSettingsUserId"); - - b.Property("PerformerId"); - - b.Property("WorkingForId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients"); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationType"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("DoesCode", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Blog.BlogTrad", b => - { - b.Property("PostId"); - - b.Property("Lang"); - - b.Property("Body"); - - b.Property("Title"); - - b.Property("TraducerId"); - - b.HasKey("PostId", "Lang"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.EMailing.MailingTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Body") - .HasAnnotation("MaxLength", 65536); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ManagerId"); - - b.Property("ReplyToAddress"); - - b.Property("ToSend"); - - b.Property("Topic") - .HasAnnotation("MaxLength", 128); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("GitId"); - - b.Property("Name") - .IsRequired(); - - b.Property("OwnerId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.Property("Version"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.Property("ProjectId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Branch") - .HasAnnotation("MaxLength", 512); - - b.Property("OwnerId") - .HasAnnotation("MaxLength", 1024); - - b.Property("Path") - .IsRequired(); - - b.Property("Url") - .HasAnnotation("MaxLength", 2048); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("BlogPostId"); - - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("PostId"); - - b.HasOne("Yavsc.Models.Relationship.Tag") - .WithMany() - .HasForeignKey("TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - - b.HasOne("Yavsc.Models.Blog.Comment") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Calendar.Period") - .WithMany() - .HasForeignKey("PeriodStart", "PeriodEnd"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomPresence", b => - { - b.HasOne("Yavsc.Models.Chat.ChatRoom") - .WithMany() - .HasForeignKey("ChannelName"); - - b.HasOne("Yavsc.Models.Chat.ChatConnection") - .WithMany() - .HasForeignKey("ChatUserConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("SelectedProfileUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery") - .WithMany() - .HasForeignKey("QueryId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color") - .WithMany() - .HasForeignKey("ColorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairTaint") - .WithMany() - .HasForeignKey("TaintId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.HasOne("Yavsc.Models.IT.Maintaining.Feature") - .WithMany() - .HasForeignKey("FeatureId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.HasOne("Yavsc.Models.Messaging.Notification") - .WithMany() - .HasForeignKey("NotificationId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings") - .WithMany() - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings") - .WithMany() - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ExecutorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("BrusherProfileUserId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PayPalPaymentCreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings") - .WithMany() - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("WorkingForId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Blog.BlogTrad", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("TraducerId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.EMailing.MailingTemplate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ManagerId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference") - .WithMany() - .HasForeignKey("GitId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.HasOne("Yavsc.Server.Models.IT.Project") - .WithMany() - .HasForeignKey("ProjectId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2018/20181218152420_BlogTradModel.cs b/src/Yavsc.Server/Migrations/2018/20181218152420_BlogTradModel.cs deleted file mode 100644 index 61f6a809..00000000 --- a/src/Yavsc.Server/Migrations/2018/20181218152420_BlogTradModel.cs +++ /dev/null @@ -1,839 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class BlogTradModel : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_BlogPost_PostId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_Tag_TagId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_Comment_ApplicationUser_AuthorId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Comment_BlogPost_PostId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Schedule_ApplicationUser_OwnerId", table: "Schedule"); - migrationBuilder.DropForeignKey(name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", table: "ChatConnection"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PayPalPayment_ApplicationUser_ExecutorId", table: "PayPalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_Project_Activity_ActivityCode", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_ApplicationUser_ClientId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_GitRepositoryReference_GitId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_PerformerProfile_PerformerId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_ProjectBuildConfiguration_Project_ProjectId", table: "ProjectBuildConfiguration"); - migrationBuilder.CreateTable( - name: "BlogTrad", - columns: table => new - { - PostId = table.Column(nullable: false), - Lang = table.Column(nullable: false), - Body = table.Column(nullable: true), - Title = table.Column(nullable: true), - TraducerId = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_BlogTrad", x => new { x.PostId, x.Lang }); - table.ForeignKey( - name: "FK_BlogTrad_ApplicationUser_TraducerId", - column: x => x.TraducerId, - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - }); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_BlogPost_PostId", - table: "BlogTag", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_Tag_TagId", - table: "BlogTag", - column: "TagId", - principalTable: "Tag", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Comment_ApplicationUser_AuthorId", - table: "Comment", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Comment_BlogPost_PostId", - table: "Comment", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Schedule_ApplicationUser_OwnerId", - table: "Schedule", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", - table: "ChatConnection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PayPalPayment_ApplicationUser_ExecutorId", - table: "PayPalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_Activity_ActivityCode", - table: "Project", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_ApplicationUser_ClientId", - table: "Project", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_GitRepositoryReference_GitId", - table: "Project", - column: "GitId", - principalTable: "GitRepositoryReference", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_PerformerProfile_PerformerId", - table: "Project", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_ProjectBuildConfiguration_Project_ProjectId", - table: "ProjectBuildConfiguration", - column: "ProjectId", - principalTable: "Project", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_BlogPost_PostId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_Tag_TagId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_Comment_ApplicationUser_AuthorId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Comment_BlogPost_PostId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Schedule_ApplicationUser_OwnerId", table: "Schedule"); - migrationBuilder.DropForeignKey(name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", table: "ChatConnection"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PayPalPayment_ApplicationUser_ExecutorId", table: "PayPalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_Project_Activity_ActivityCode", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_ApplicationUser_ClientId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_GitRepositoryReference_GitId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_PerformerProfile_PerformerId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_ProjectBuildConfiguration_Project_ProjectId", table: "ProjectBuildConfiguration"); - migrationBuilder.DropTable("BlogTrad"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_BlogPost_PostId", - table: "BlogTag", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_Tag_TagId", - table: "BlogTag", - column: "TagId", - principalTable: "Tag", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Comment_ApplicationUser_AuthorId", - table: "Comment", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Comment_BlogPost_PostId", - table: "Comment", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Schedule_ApplicationUser_OwnerId", - table: "Schedule", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", - table: "ChatConnection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PayPalPayment_ApplicationUser_ExecutorId", - table: "PayPalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_Activity_ActivityCode", - table: "Project", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_ApplicationUser_ClientId", - table: "Project", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_GitRepositoryReference_GitId", - table: "Project", - column: "GitId", - principalTable: "GitRepositoryReference", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_PerformerProfile_PerformerId", - table: "Project", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_ProjectBuildConfiguration_Project_ProjectId", - table: "ProjectBuildConfiguration", - column: "ProjectId", - principalTable: "Project", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2018/20181231153224_bugTitles.Designer.cs b/src/Yavsc.Server/Migrations/2018/20181231153224_bugTitles.Designer.cs deleted file mode 100644 index 1bc62c04..00000000 --- a/src/Yavsc.Server/Migrations/2018/20181231153224_bugTitles.Designer.cs +++ /dev/null @@ -1,1950 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20181231153224_bugTitles")] - partial class bugTitles - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Abstract.Identity.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId"); - - b.Property("BlogPostId"); - - b.HasKey("CircleId", "BlogPostId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("AllowMonthlyEmail"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512) - .HasAnnotation("Relational:DefaultValue", "/images/Users/icon_user.png") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar") - .HasAnnotation("MaxLength", 512); - - b.Property("DiskQuota") - .HasAnnotation("Relational:DefaultValue", "524288000") - .HasAnnotation("Relational:DefaultValueType", "System.Int64"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("MaxFileSize"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Count"); - - b.Property("Currency"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 256); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType") - .IsRequired(); - - b.Property("Description"); - - b.Property("OwnerId"); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content") - .HasAnnotation("MaxLength", 56224); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Lang") - .HasAnnotation("MaxLength", 8); - - b.Property("Photo") - .HasAnnotation("MaxLength", 1024); - - b.Property("Rate"); - - b.Property("Title") - .HasAnnotation("MaxLength", 1024); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId") - .IsRequired(); - - b.Property("Content"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ParentId"); - - b.Property("PostId"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Period", b => - { - b.Property("Start"); - - b.Property("End"); - - b.HasKey("Start", "End"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Property("OwnerId"); - - b.HasKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PeriodEnd"); - - b.Property("PeriodStart"); - - b.Property("Reccurence"); - - b.Property("ScheduleOwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId") - .IsRequired(); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.Property("Name") - .HasAnnotation("MaxLength", 255); - - b.Property("ApplicationUserId"); - - b.Property("Topic") - .HasAnnotation("MaxLength", 1023); - - b.HasKey("Name"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomPresence", b => - { - b.Property("ChannelName"); - - b.Property("ChatUserConnectionId"); - - b.Property("Level"); - - b.HasKey("ChannelName", "ChatUserConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Cratie.Option", b => - { - b.Property("Code"); - - b.Property("CodeScrutin"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code", "CodeScrutin"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Blue"); - - b.Property("Green"); - - b.Property("Name"); - - b.Property("Red"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id"); - - b.Property("Summary"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId"); - - b.Property("ActionDistance"); - - b.Property("CarePrice"); - - b.Property("FlatFeeDiscount"); - - b.Property("HalfBalayagePrice"); - - b.Property("HalfBrushingPrice"); - - b.Property("HalfColorPrice"); - - b.Property("HalfDefrisPrice"); - - b.Property("HalfFoldingPrice"); - - b.Property("HalfMechPrice"); - - b.Property("HalfMultiColorPrice"); - - b.Property("HalfPermanentPrice"); - - b.Property("KidCutPrice"); - - b.Property("LongBalayagePrice"); - - b.Property("LongBrushingPrice"); - - b.Property("LongColorPrice"); - - b.Property("LongDefrisPrice"); - - b.Property("LongFoldingPrice"); - - b.Property("LongMechPrice"); - - b.Property("LongMultiColorPrice"); - - b.Property("LongPermanentPrice"); - - b.Property("ManBrushPrice"); - - b.Property("ManCutPrice"); - - b.Property("ScheduleOwnerId"); - - b.Property("ShampooPrice"); - - b.Property("ShortBalayagePrice"); - - b.Property("ShortBrushingPrice"); - - b.Property("ShortColorPrice"); - - b.Property("ShortDefrisPrice"); - - b.Property("ShortFoldingPrice"); - - b.Property("ShortMechPrice"); - - b.Property("ShortMultiColorPrice"); - - b.Property("ShortPermanentPrice"); - - b.Property("WomenHalfCutPrice"); - - b.Property("WomenLongCutPrice"); - - b.Property("WomenShortCutPrice"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("AdditionalInfo") - .HasAnnotation("MaxLength", 512); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("PrestationId"); - - b.Property("Previsional"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("SelectedProfileUserId"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Cares"); - - b.Property("Cut"); - - b.Property("Dressing"); - - b.Property("Gender"); - - b.Property("Length"); - - b.Property("Shampoo"); - - b.Property("Tech"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PrestationId"); - - b.Property("QueryId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Brand"); - - b.Property("ColorId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.Property("TaintId"); - - b.Property("PrestationId"); - - b.HasKey("TaintId", "PrestationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("LatestActivityUpdate"); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Evolution.Feature", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("ShortName"); - - b.Property("Status"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("FeatureId"); - - b.Property("Status"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Depth"); - - b.Property("Description"); - - b.Property("Height"); - - b.Property("Name"); - - b.Property("Price"); - - b.Property("Public"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("For"); - - b.Property("Message"); - - b.Property("OwnerId"); - - b.Property("Sender"); - - b.Property("Topic"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.Property("UserId"); - - b.Property("NotificationId"); - - b.HasKey("UserId", "NotificationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Target"); - - b.Property("body") - .IsRequired(); - - b.Property("click_action") - .IsRequired(); - - b.Property("color"); - - b.Property("icon") - .HasAnnotation("Relational:DefaultValue", "exclam") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("sound"); - - b.Property("tag"); - - b.Property("title") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId"); - - b.Property("DjSettingsUserId"); - - b.Property("GeneralSettingsUserId"); - - b.Property("Rate"); - - b.Property("TendencyId"); - - b.HasKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId"); - - b.Property("SoundCloudId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId"); - - b.Property("UserId"); - - b.HasKey("InstrumentId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Property("CreationToken"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ExecutorId") - .IsRequired(); - - b.Property("OrderReference"); - - b.Property("PaypalPayerId"); - - b.Property("State"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("CreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId"); - - b.Property("CircleId"); - - b.HasKey("MemberId", "CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.Property("HRef"); - - b.Property("Method"); - - b.Property("BrusherProfileUserId"); - - b.Property("ContentType"); - - b.Property("PayPalPaymentCreationToken"); - - b.Property("Rel"); - - b.HasKey("HRef", "Method"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("Hidden"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("SettingsClassName"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActionName"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FormationSettingsUserId"); - - b.Property("PerformerId"); - - b.Property("WorkingForId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients"); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationType"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("DoesCode", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Blog.BlogTrad", b => - { - b.Property("PostId"); - - b.Property("Lang"); - - b.Property("Body"); - - b.Property("Title"); - - b.Property("TraducerId"); - - b.HasKey("PostId", "Lang"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.EMailing.MailingTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Body") - .HasAnnotation("MaxLength", 65536); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ManagerId"); - - b.Property("ReplyToAddress"); - - b.Property("ToSend"); - - b.Property("Topic") - .HasAnnotation("MaxLength", 128); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("GitId"); - - b.Property("Name") - .IsRequired(); - - b.Property("OwnerId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.Property("Version"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.Property("ProjectId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Branch") - .HasAnnotation("MaxLength", 512); - - b.Property("OwnerId") - .HasAnnotation("MaxLength", 1024); - - b.Property("Path") - .IsRequired(); - - b.Property("Url") - .HasAnnotation("MaxLength", 2048); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("BlogPostId"); - - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("PostId"); - - b.HasOne("Yavsc.Models.Relationship.Tag") - .WithMany() - .HasForeignKey("TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - - b.HasOne("Yavsc.Models.Blog.Comment") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Calendar.Period") - .WithMany() - .HasForeignKey("PeriodStart", "PeriodEnd"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomPresence", b => - { - b.HasOne("Yavsc.Models.Chat.ChatRoom") - .WithMany() - .HasForeignKey("ChannelName"); - - b.HasOne("Yavsc.Models.Chat.ChatConnection") - .WithMany() - .HasForeignKey("ChatUserConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("SelectedProfileUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery") - .WithMany() - .HasForeignKey("QueryId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color") - .WithMany() - .HasForeignKey("ColorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairTaint") - .WithMany() - .HasForeignKey("TaintId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.HasOne("Yavsc.Models.IT.Evolution.Feature") - .WithMany() - .HasForeignKey("FeatureId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.HasOne("Yavsc.Models.Messaging.Notification") - .WithMany() - .HasForeignKey("NotificationId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings") - .WithMany() - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings") - .WithMany() - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ExecutorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("BrusherProfileUserId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PayPalPaymentCreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings") - .WithMany() - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("WorkingForId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Blog.BlogTrad", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("TraducerId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.EMailing.MailingTemplate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ManagerId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference") - .WithMany() - .HasForeignKey("GitId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.HasOne("Yavsc.Server.Models.IT.Project") - .WithMany() - .HasForeignKey("ProjectId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2018/20181231153224_bugTitles.cs b/src/Yavsc.Server/Migrations/2018/20181231153224_bugTitles.cs deleted file mode 100644 index 1acde92d..00000000 --- a/src/Yavsc.Server/Migrations/2018/20181231153224_bugTitles.cs +++ /dev/null @@ -1,823 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class bugTitles : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_BlogPost_PostId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_Tag_TagId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_Comment_ApplicationUser_AuthorId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Comment_BlogPost_PostId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Schedule_ApplicationUser_OwnerId", table: "Schedule"); - migrationBuilder.DropForeignKey(name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", table: "ChatConnection"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PayPalPayment_ApplicationUser_ExecutorId", table: "PayPalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_Project_Activity_ActivityCode", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_ApplicationUser_ClientId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_GitRepositoryReference_GitId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_PerformerProfile_PerformerId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_ProjectBuildConfiguration_Project_ProjectId", table: "ProjectBuildConfiguration"); - migrationBuilder.AddColumn( - name: "Title", - table: "Bug", - nullable: true); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_BlogPost_PostId", - table: "BlogTag", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_Tag_TagId", - table: "BlogTag", - column: "TagId", - principalTable: "Tag", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Comment_ApplicationUser_AuthorId", - table: "Comment", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Comment_BlogPost_PostId", - table: "Comment", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Schedule_ApplicationUser_OwnerId", - table: "Schedule", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", - table: "ChatConnection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PayPalPayment_ApplicationUser_ExecutorId", - table: "PayPalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_Activity_ActivityCode", - table: "Project", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_ApplicationUser_ClientId", - table: "Project", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_GitRepositoryReference_GitId", - table: "Project", - column: "GitId", - principalTable: "GitRepositoryReference", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_PerformerProfile_PerformerId", - table: "Project", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_ProjectBuildConfiguration_Project_ProjectId", - table: "ProjectBuildConfiguration", - column: "ProjectId", - principalTable: "Project", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_BlogPost_PostId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_Tag_TagId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_Comment_ApplicationUser_AuthorId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Comment_BlogPost_PostId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Schedule_ApplicationUser_OwnerId", table: "Schedule"); - migrationBuilder.DropForeignKey(name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", table: "ChatConnection"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PayPalPayment_ApplicationUser_ExecutorId", table: "PayPalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_Project_Activity_ActivityCode", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_ApplicationUser_ClientId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_GitRepositoryReference_GitId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_PerformerProfile_PerformerId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_ProjectBuildConfiguration_Project_ProjectId", table: "ProjectBuildConfiguration"); - migrationBuilder.DropColumn(name: "Title", table: "Bug"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_BlogPost_PostId", - table: "BlogTag", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_Tag_TagId", - table: "BlogTag", - column: "TagId", - principalTable: "Tag", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Comment_ApplicationUser_AuthorId", - table: "Comment", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Comment_BlogPost_PostId", - table: "Comment", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Schedule_ApplicationUser_OwnerId", - table: "Schedule", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", - table: "ChatConnection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PayPalPayment_ApplicationUser_ExecutorId", - table: "PayPalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_Activity_ActivityCode", - table: "Project", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_ApplicationUser_ClientId", - table: "Project", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_GitRepositoryReference_GitId", - table: "Project", - column: "GitId", - principalTable: "GitRepositoryReference", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_PerformerProfile_PerformerId", - table: "Project", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_ProjectBuildConfiguration_Project_ProjectId", - table: "ProjectBuildConfiguration", - column: "ProjectId", - principalTable: "Project", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2019/20190730164137_publicCircle.Designer.cs b/src/Yavsc.Server/Migrations/2019/20190730164137_publicCircle.Designer.cs deleted file mode 100644 index cea65a93..00000000 --- a/src/Yavsc.Server/Migrations/2019/20190730164137_publicCircle.Designer.cs +++ /dev/null @@ -1,2061 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20190730164137_publicCircle")] - partial class publicCircle - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Abstract.Identity.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Reason") - .IsRequired(); - - b.Property("TargetId") - .IsRequired(); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId"); - - b.Property("BlogPostId"); - - b.HasKey("CircleId", "BlogPostId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("AllowMonthlyEmail"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512) - .HasAnnotation("Relational:DefaultValue", "/images/Users/icon_user.png") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("DedicatedGoogleCalendar") - .HasAnnotation("MaxLength", 512); - - b.Property("DiskQuota") - .HasAnnotation("Relational:DefaultValue", "524288000") - .HasAnnotation("Relational:DefaultValueType", "System.Int64"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("MaxFileSize"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Count"); - - b.Property("Currency"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 256); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType") - .IsRequired(); - - b.Property("Description"); - - b.Property("OwnerId"); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content") - .HasAnnotation("MaxLength", 56224); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Lang") - .HasAnnotation("MaxLength", 8); - - b.Property("Photo") - .HasAnnotation("MaxLength", 1024); - - b.Property("Rate"); - - b.Property("Title") - .HasAnnotation("MaxLength", 1024); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId") - .IsRequired(); - - b.Property("Content") - .HasAnnotation("MaxLength", 1024); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ParentId"); - - b.Property("PostId"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Period", b => - { - b.Property("Start"); - - b.Property("End"); - - b.HasKey("Start", "End"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Property("OwnerId"); - - b.HasKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PeriodEnd"); - - b.Property("PeriodStart"); - - b.Property("Reccurence"); - - b.Property("ScheduleOwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId") - .IsRequired(); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.Property("Name") - .HasAnnotation("MaxLength", 255); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("LatestJoinPart"); - - b.Property("OwnerId"); - - b.Property("Topic"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Name"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomAccess", b => - { - b.Property("ChannelName"); - - b.Property("UserId"); - - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Level"); - - b.HasKey("ChannelName", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Cratie.Option", b => - { - b.Property("Code"); - - b.Property("CodeScrutin"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code", "CodeScrutin"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Blue"); - - b.Property("Green"); - - b.Property("Name"); - - b.Property("Red"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id"); - - b.Property("Summary"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId"); - - b.Property("ActionDistance"); - - b.Property("CarePrice"); - - b.Property("FlatFeeDiscount"); - - b.Property("HalfBalayagePrice"); - - b.Property("HalfBrushingPrice"); - - b.Property("HalfColorPrice"); - - b.Property("HalfDefrisPrice"); - - b.Property("HalfFoldingPrice"); - - b.Property("HalfMechPrice"); - - b.Property("HalfMultiColorPrice"); - - b.Property("HalfPermanentPrice"); - - b.Property("KidCutPrice"); - - b.Property("LongBalayagePrice"); - - b.Property("LongBrushingPrice"); - - b.Property("LongColorPrice"); - - b.Property("LongDefrisPrice"); - - b.Property("LongFoldingPrice"); - - b.Property("LongMechPrice"); - - b.Property("LongMultiColorPrice"); - - b.Property("LongPermanentPrice"); - - b.Property("ManBrushPrice"); - - b.Property("ManCutPrice"); - - b.Property("ScheduleOwnerId"); - - b.Property("ShampooPrice"); - - b.Property("ShortBalayagePrice"); - - b.Property("ShortBrushingPrice"); - - b.Property("ShortColorPrice"); - - b.Property("ShortDefrisPrice"); - - b.Property("ShortFoldingPrice"); - - b.Property("ShortMechPrice"); - - b.Property("ShortMultiColorPrice"); - - b.Property("ShortPermanentPrice"); - - b.Property("WomenHalfCutPrice"); - - b.Property("WomenLongCutPrice"); - - b.Property("WomenShortCutPrice"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("AdditionalInfo") - .HasAnnotation("MaxLength", 512); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("PrestationId"); - - b.Property("Previsional"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("SelectedProfileUserId"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Cares"); - - b.Property("Cut"); - - b.Property("Dressing"); - - b.Property("Gender"); - - b.Property("Length"); - - b.Property("Shampoo"); - - b.Property("Tech"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PrestationId"); - - b.Property("QueryId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Brand"); - - b.Property("ColorId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.Property("TaintId"); - - b.Property("PrestationId"); - - b.HasKey("TaintId", "PrestationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.DeviceDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("LatestActivityUpdate"); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Evolution.Feature", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description") - .HasAnnotation("MaxLength", 10240); - - b.Property("ShortName") - .HasAnnotation("MaxLength", 256); - - b.Property("Status"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("FeatureId"); - - b.Property("Status"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Depth"); - - b.Property("Description"); - - b.Property("Height"); - - b.Property("Name"); - - b.Property("Price"); - - b.Property("Public"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("For"); - - b.Property("Message"); - - b.Property("OwnerId"); - - b.Property("Sender"); - - b.Property("Topic"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.Property("UserId"); - - b.Property("NotificationId"); - - b.HasKey("UserId", "NotificationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Target"); - - b.Property("body") - .IsRequired(); - - b.Property("click_action") - .IsRequired(); - - b.Property("color"); - - b.Property("icon") - .HasAnnotation("Relational:DefaultValue", "exclam") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("sound"); - - b.Property("tag"); - - b.Property("title") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId"); - - b.Property("DjSettingsUserId"); - - b.Property("GeneralSettingsUserId"); - - b.Property("Rate"); - - b.Property("TendencyId"); - - b.HasKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId"); - - b.Property("SoundCloudId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId"); - - b.Property("UserId"); - - b.HasKey("InstrumentId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Property("CreationToken"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ExecutorId") - .IsRequired(); - - b.Property("OrderReference"); - - b.Property("PaypalPayerId"); - - b.Property("State"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("CreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId"); - - b.Property("CircleId"); - - b.HasKey("MemberId", "CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("AddressId"); - - b.Property("ApplicationUserId"); - - b.Property("EMail"); - - b.Property("Name"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.Property("HRef"); - - b.Property("Method"); - - b.Property("BrusherProfileUserId"); - - b.Property("ContentType"); - - b.Property("PayPalPaymentCreationToken"); - - b.Property("Rel"); - - b.HasKey("HRef", "Method"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostalAddress", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("City"); - - b.Property("Country"); - - b.Property("PostalCode"); - - b.Property("Province"); - - b.Property("State"); - - b.Property("Street1"); - - b.Property("Street2"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Streaming.LiveFlow", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DifferedFileName") - .HasAnnotation("MaxLength", 255); - - b.Property("MediaType") - .HasAnnotation("MaxLength", 127); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Pitch") - .HasAnnotation("MaxLength", 1023); - - b.Property("SequenceNumber"); - - b.Property("Title") - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("Hidden"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("SettingsClassName"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActionName"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FormationSettingsUserId"); - - b.Property("PerformerId"); - - b.Property("WorkingForId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients"); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationType"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("DoesCode", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Blog.BlogTrad", b => - { - b.Property("PostId"); - - b.Property("Lang"); - - b.Property("Body"); - - b.Property("Title"); - - b.Property("TraducerId"); - - b.HasKey("PostId", "Lang"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.EMailing.MailingTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Body") - .HasAnnotation("MaxLength", 65536); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ManagerId") - .IsRequired(); - - b.Property("ReplyToAddress"); - - b.Property("SuccessorId") - .IsRequired(); - - b.Property("ToSend"); - - b.Property("Topic") - .HasAnnotation("MaxLength", 128); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("GitId"); - - b.Property("Name") - .IsRequired(); - - b.Property("OwnerId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.Property("Version"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.Property("ProjectId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Branch") - .HasAnnotation("MaxLength", 512); - - b.Property("OwnerId") - .HasAnnotation("MaxLength", 1024); - - b.Property("Path") - .IsRequired(); - - b.Property("Url") - .HasAnnotation("MaxLength", 2048); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("TargetId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("BlogPostId"); - - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("PostId"); - - b.HasOne("Yavsc.Models.Relationship.Tag") - .WithMany() - .HasForeignKey("TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - - b.HasOne("Yavsc.Models.Blog.Comment") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Calendar.Period") - .WithMany() - .HasForeignKey("PeriodStart", "PeriodEnd"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomAccess", b => - { - b.HasOne("Yavsc.Models.Chat.ChatRoom") - .WithMany() - .HasForeignKey("ChannelName"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("SelectedProfileUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery") - .WithMany() - .HasForeignKey("QueryId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color") - .WithMany() - .HasForeignKey("ColorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairTaint") - .WithMany() - .HasForeignKey("TaintId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.DeviceDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.HasOne("Yavsc.Models.IT.Evolution.Feature") - .WithMany() - .HasForeignKey("FeatureId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.HasOne("Yavsc.Models.Messaging.Notification") - .WithMany() - .HasForeignKey("NotificationId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings") - .WithMany() - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings") - .WithMany() - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ExecutorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.Relationship.PostalAddress") - .WithMany() - .HasForeignKey("AddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("BrusherProfileUserId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PayPalPaymentCreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Streaming.LiveFlow", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings") - .WithMany() - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("WorkingForId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Blog.BlogTrad", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("TraducerId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.EMailing.MailingTemplate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ManagerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("SuccessorId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference") - .WithMany() - .HasForeignKey("GitId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.HasOne("Yavsc.Server.Models.IT.Project") - .WithMany() - .HasForeignKey("ProjectId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2019/20190730164137_publicCircle.cs b/src/Yavsc.Server/Migrations/2019/20190730164137_publicCircle.cs deleted file mode 100644 index 06555278..00000000 --- a/src/Yavsc.Server/Migrations/2019/20190730164137_publicCircle.cs +++ /dev/null @@ -1,936 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class publicCircle : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_Ban_ApplicationUser_TargetId", table: "Ban"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_UserId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_BlogPost_PostId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_Tag_TagId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_Comment_ApplicationUser_AuthorId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Comment_BlogPost_PostId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Schedule_ApplicationUser_OwnerId", table: "Schedule"); - migrationBuilder.DropForeignKey(name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", table: "ChatConnection"); - migrationBuilder.DropForeignKey(name: "FK_ChatRoomAccess_ApplicationUser_UserId", table: "ChatRoomAccess"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PayPalPayment_ApplicationUser_ExecutorId", table: "PayPalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Contact_PostalAddress_AddressId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_LiveFlow_ApplicationUser_OwnerId", table: "LiveFlow"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_MailingTemplate_ApplicationUser_ManagerId", table: "MailingTemplate"); - migrationBuilder.DropForeignKey(name: "FK_MailingTemplate_ApplicationUser_SuccessorId", table: "MailingTemplate"); - migrationBuilder.DropForeignKey(name: "FK_Project_Activity_ActivityCode", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_ApplicationUser_ClientId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_GitRepositoryReference_GitId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_PerformerProfile_PerformerId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_ProjectBuildConfiguration_Project_ProjectId", table: "ProjectBuildConfiguration"); - migrationBuilder.AddColumn( - name: "Public", - table: "Circle", - nullable: false, - defaultValue: false); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Ban_ApplicationUser_TargetId", - table: "Ban", - column: "TargetId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_UserId", - table: "BlackListed", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_BlogPost_PostId", - table: "BlogTag", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_Tag_TagId", - table: "BlogTag", - column: "TagId", - principalTable: "Tag", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Comment_ApplicationUser_AuthorId", - table: "Comment", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Comment_BlogPost_PostId", - table: "Comment", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Schedule_ApplicationUser_OwnerId", - table: "Schedule", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", - table: "ChatConnection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_ChatRoomAccess_ApplicationUser_UserId", - table: "ChatRoomAccess", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PayPalPayment_ApplicationUser_ExecutorId", - table: "PayPalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Contact_PostalAddress_AddressId", - table: "Contact", - column: "AddressId", - principalTable: "PostalAddress", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_LiveFlow_ApplicationUser_OwnerId", - table: "LiveFlow", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_MailingTemplate_ApplicationUser_ManagerId", - table: "MailingTemplate", - column: "ManagerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_MailingTemplate_ApplicationUser_SuccessorId", - table: "MailingTemplate", - column: "SuccessorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_Activity_ActivityCode", - table: "Project", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_ApplicationUser_ClientId", - table: "Project", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_GitRepositoryReference_GitId", - table: "Project", - column: "GitId", - principalTable: "GitRepositoryReference", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_PerformerProfile_PerformerId", - table: "Project", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_ProjectBuildConfiguration_Project_ProjectId", - table: "ProjectBuildConfiguration", - column: "ProjectId", - principalTable: "Project", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_Ban_ApplicationUser_TargetId", table: "Ban"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_UserId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_BlogPost_PostId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_Tag_TagId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_Comment_ApplicationUser_AuthorId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Comment_BlogPost_PostId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Schedule_ApplicationUser_OwnerId", table: "Schedule"); - migrationBuilder.DropForeignKey(name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", table: "ChatConnection"); - migrationBuilder.DropForeignKey(name: "FK_ChatRoomAccess_ApplicationUser_UserId", table: "ChatRoomAccess"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PayPalPayment_ApplicationUser_ExecutorId", table: "PayPalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Contact_PostalAddress_AddressId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_LiveFlow_ApplicationUser_OwnerId", table: "LiveFlow"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_MailingTemplate_ApplicationUser_ManagerId", table: "MailingTemplate"); - migrationBuilder.DropForeignKey(name: "FK_MailingTemplate_ApplicationUser_SuccessorId", table: "MailingTemplate"); - migrationBuilder.DropForeignKey(name: "FK_Project_Activity_ActivityCode", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_ApplicationUser_ClientId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_GitRepositoryReference_GitId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_PerformerProfile_PerformerId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_ProjectBuildConfiguration_Project_ProjectId", table: "ProjectBuildConfiguration"); - migrationBuilder.DropColumn(name: "Public", table: "Circle"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Ban_ApplicationUser_TargetId", - table: "Ban", - column: "TargetId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_UserId", - table: "BlackListed", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_BlogPost_PostId", - table: "BlogTag", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_Tag_TagId", - table: "BlogTag", - column: "TagId", - principalTable: "Tag", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Comment_ApplicationUser_AuthorId", - table: "Comment", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Comment_BlogPost_PostId", - table: "Comment", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Schedule_ApplicationUser_OwnerId", - table: "Schedule", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", - table: "ChatConnection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_ChatRoomAccess_ApplicationUser_UserId", - table: "ChatRoomAccess", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PayPalPayment_ApplicationUser_ExecutorId", - table: "PayPalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Contact_PostalAddress_AddressId", - table: "Contact", - column: "AddressId", - principalTable: "PostalAddress", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_LiveFlow_ApplicationUser_OwnerId", - table: "LiveFlow", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_MailingTemplate_ApplicationUser_ManagerId", - table: "MailingTemplate", - column: "ManagerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_MailingTemplate_ApplicationUser_SuccessorId", - table: "MailingTemplate", - column: "SuccessorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_Activity_ActivityCode", - table: "Project", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_ApplicationUser_ClientId", - table: "Project", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_GitRepositoryReference_GitId", - table: "Project", - column: "GitId", - principalTable: "GitRepositoryReference", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_PerformerProfile_PerformerId", - table: "Project", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_ProjectBuildConfiguration_Project_ProjectId", - table: "ProjectBuildConfiguration", - column: "ProjectId", - principalTable: "Project", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2019/20190803204448_fileCircle.Designer.cs b/src/Yavsc.Server/Migrations/2019/20190803204448_fileCircle.Designer.cs deleted file mode 100644 index a8a910d1..00000000 --- a/src/Yavsc.Server/Migrations/2019/20190803204448_fileCircle.Designer.cs +++ /dev/null @@ -1,2077 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20190803204448_fileCircle")] - partial class fileCircle - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Abstract.Identity.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Reason") - .IsRequired(); - - b.Property("TargetId") - .IsRequired(); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId"); - - b.Property("BlogPostId"); - - b.HasKey("CircleId", "BlogPostId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("AllowMonthlyEmail"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512) - .HasAnnotation("Relational:DefaultValue", "/images/Users/icon_user.png") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("DedicatedGoogleCalendar") - .HasAnnotation("MaxLength", 512); - - b.Property("DiskQuota") - .HasAnnotation("Relational:DefaultValue", "524288000") - .HasAnnotation("Relational:DefaultValueType", "System.Int64"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("MaxFileSize"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Count"); - - b.Property("Currency"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 256); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType") - .IsRequired(); - - b.Property("Description"); - - b.Property("OwnerId"); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content") - .HasAnnotation("MaxLength", 56224); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Lang") - .HasAnnotation("MaxLength", 8); - - b.Property("Photo") - .HasAnnotation("MaxLength", 1024); - - b.Property("Rate"); - - b.Property("Title") - .HasAnnotation("MaxLength", 1024); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId") - .IsRequired(); - - b.Property("Content") - .HasAnnotation("MaxLength", 1024); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ParentId"); - - b.Property("PostId"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Period", b => - { - b.Property("Start"); - - b.Property("End"); - - b.HasKey("Start", "End"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Property("OwnerId"); - - b.HasKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PeriodEnd"); - - b.Property("PeriodStart"); - - b.Property("Reccurence"); - - b.Property("ScheduleOwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId") - .IsRequired(); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.Property("Name") - .HasAnnotation("MaxLength", 255); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("LatestJoinPart"); - - b.Property("OwnerId"); - - b.Property("Topic"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Name"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomAccess", b => - { - b.Property("ChannelName"); - - b.Property("UserId"); - - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Level"); - - b.HasKey("ChannelName", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Cratie.Option", b => - { - b.Property("Code"); - - b.Property("CodeScrutin"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code", "CodeScrutin"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Blue"); - - b.Property("Green"); - - b.Property("Name"); - - b.Property("Red"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id"); - - b.Property("Summary"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId"); - - b.Property("ActionDistance"); - - b.Property("CarePrice"); - - b.Property("FlatFeeDiscount"); - - b.Property("HalfBalayagePrice"); - - b.Property("HalfBrushingPrice"); - - b.Property("HalfColorPrice"); - - b.Property("HalfDefrisPrice"); - - b.Property("HalfFoldingPrice"); - - b.Property("HalfMechPrice"); - - b.Property("HalfMultiColorPrice"); - - b.Property("HalfPermanentPrice"); - - b.Property("KidCutPrice"); - - b.Property("LongBalayagePrice"); - - b.Property("LongBrushingPrice"); - - b.Property("LongColorPrice"); - - b.Property("LongDefrisPrice"); - - b.Property("LongFoldingPrice"); - - b.Property("LongMechPrice"); - - b.Property("LongMultiColorPrice"); - - b.Property("LongPermanentPrice"); - - b.Property("ManBrushPrice"); - - b.Property("ManCutPrice"); - - b.Property("ScheduleOwnerId"); - - b.Property("ShampooPrice"); - - b.Property("ShortBalayagePrice"); - - b.Property("ShortBrushingPrice"); - - b.Property("ShortColorPrice"); - - b.Property("ShortDefrisPrice"); - - b.Property("ShortFoldingPrice"); - - b.Property("ShortMechPrice"); - - b.Property("ShortMultiColorPrice"); - - b.Property("ShortPermanentPrice"); - - b.Property("WomenHalfCutPrice"); - - b.Property("WomenLongCutPrice"); - - b.Property("WomenShortCutPrice"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("AdditionalInfo") - .HasAnnotation("MaxLength", 512); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("PrestationId"); - - b.Property("Previsional"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("SelectedProfileUserId"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Cares"); - - b.Property("Cut"); - - b.Property("Dressing"); - - b.Property("Gender"); - - b.Property("Length"); - - b.Property("Shampoo"); - - b.Property("Tech"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PrestationId"); - - b.Property("QueryId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Brand"); - - b.Property("ColorId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.Property("TaintId"); - - b.Property("PrestationId"); - - b.HasKey("TaintId", "PrestationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.DeviceDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("LatestActivityUpdate"); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Evolution.Feature", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description") - .HasAnnotation("MaxLength", 10240); - - b.Property("ShortName") - .HasAnnotation("MaxLength", 256); - - b.Property("Status"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("FeatureId"); - - b.Property("Status"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Depth"); - - b.Property("Description"); - - b.Property("Height"); - - b.Property("Name"); - - b.Property("Price"); - - b.Property("Public"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("For"); - - b.Property("Message"); - - b.Property("OwnerId"); - - b.Property("Sender"); - - b.Property("Topic"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.Property("UserId"); - - b.Property("NotificationId"); - - b.HasKey("UserId", "NotificationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Target"); - - b.Property("body") - .IsRequired(); - - b.Property("click_action") - .IsRequired(); - - b.Property("color"); - - b.Property("icon") - .HasAnnotation("Relational:DefaultValue", "exclam") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("sound"); - - b.Property("tag"); - - b.Property("title") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId"); - - b.Property("DjSettingsUserId"); - - b.Property("GeneralSettingsUserId"); - - b.Property("Rate"); - - b.Property("TendencyId"); - - b.HasKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId"); - - b.Property("SoundCloudId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId"); - - b.Property("UserId"); - - b.HasKey("InstrumentId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Property("CreationToken"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ExecutorId") - .IsRequired(); - - b.Property("OrderReference"); - - b.Property("PaypalPayerId"); - - b.Property("State"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("CreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId"); - - b.Property("CircleId"); - - b.HasKey("MemberId", "CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("AddressId"); - - b.Property("ApplicationUserId"); - - b.Property("EMail"); - - b.Property("Name"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.Property("HRef"); - - b.Property("Method"); - - b.Property("BrusherProfileUserId"); - - b.Property("ContentType"); - - b.Property("PayPalPaymentCreationToken"); - - b.Property("Rel"); - - b.HasKey("HRef", "Method"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostalAddress", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("City"); - - b.Property("Country"); - - b.Property("PostalCode"); - - b.Property("Province"); - - b.Property("State"); - - b.Property("Street1"); - - b.Property("Street2"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Streaming.LiveFlow", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DifferedFileName") - .HasAnnotation("MaxLength", 255); - - b.Property("MediaType") - .HasAnnotation("MaxLength", 127); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Pitch") - .HasAnnotation("MaxLength", 1023); - - b.Property("SequenceNumber"); - - b.Property("Title") - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("Hidden"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("SettingsClassName"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActionName"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FormationSettingsUserId"); - - b.Property("PerformerId"); - - b.Property("WorkingForId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients"); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationType"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("DoesCode", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Access.CircleAuthorizationToFile", b => - { - b.Property("CircleId"); - - b.Property("FullPath"); - - b.HasKey("CircleId", "FullPath"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Blog.BlogTrad", b => - { - b.Property("PostId"); - - b.Property("Lang"); - - b.Property("Body"); - - b.Property("Title"); - - b.Property("TraducerId"); - - b.HasKey("PostId", "Lang"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.EMailing.MailingTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Body") - .HasAnnotation("MaxLength", 65536); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ManagerId") - .IsRequired(); - - b.Property("ReplyToAddress"); - - b.Property("SuccessorId") - .IsRequired(); - - b.Property("ToSend"); - - b.Property("Topic") - .HasAnnotation("MaxLength", 128); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("GitId"); - - b.Property("Name") - .IsRequired(); - - b.Property("OwnerId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.Property("Version"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.Property("ProjectId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Branch") - .HasAnnotation("MaxLength", 512); - - b.Property("OwnerId") - .HasAnnotation("MaxLength", 1024); - - b.Property("Path") - .IsRequired(); - - b.Property("Url") - .HasAnnotation("MaxLength", 2048); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("TargetId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("BlogPostId"); - - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("PostId"); - - b.HasOne("Yavsc.Models.Relationship.Tag") - .WithMany() - .HasForeignKey("TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - - b.HasOne("Yavsc.Models.Blog.Comment") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Calendar.Period") - .WithMany() - .HasForeignKey("PeriodStart", "PeriodEnd"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomAccess", b => - { - b.HasOne("Yavsc.Models.Chat.ChatRoom") - .WithMany() - .HasForeignKey("ChannelName"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("SelectedProfileUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery") - .WithMany() - .HasForeignKey("QueryId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color") - .WithMany() - .HasForeignKey("ColorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairTaint") - .WithMany() - .HasForeignKey("TaintId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.DeviceDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.HasOne("Yavsc.Models.IT.Evolution.Feature") - .WithMany() - .HasForeignKey("FeatureId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.HasOne("Yavsc.Models.Messaging.Notification") - .WithMany() - .HasForeignKey("NotificationId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings") - .WithMany() - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings") - .WithMany() - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ExecutorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.Relationship.PostalAddress") - .WithMany() - .HasForeignKey("AddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("BrusherProfileUserId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PayPalPaymentCreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Streaming.LiveFlow", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings") - .WithMany() - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("WorkingForId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Access.CircleAuthorizationToFile", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Blog.BlogTrad", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("TraducerId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.EMailing.MailingTemplate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ManagerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("SuccessorId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference") - .WithMany() - .HasForeignKey("GitId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.HasOne("Yavsc.Server.Models.IT.Project") - .WithMany() - .HasForeignKey("ProjectId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2019/20190803204448_fileCircle.cs b/src/Yavsc.Server/Migrations/2019/20190803204448_fileCircle.cs deleted file mode 100644 index b21e697b..00000000 --- a/src/Yavsc.Server/Migrations/2019/20190803204448_fileCircle.cs +++ /dev/null @@ -1,948 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class fileCircle : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_Ban_ApplicationUser_TargetId", table: "Ban"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_UserId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_BlogPost_PostId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_Tag_TagId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_Comment_ApplicationUser_AuthorId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Comment_BlogPost_PostId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Schedule_ApplicationUser_OwnerId", table: "Schedule"); - migrationBuilder.DropForeignKey(name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", table: "ChatConnection"); - migrationBuilder.DropForeignKey(name: "FK_ChatRoomAccess_ApplicationUser_UserId", table: "ChatRoomAccess"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PayPalPayment_ApplicationUser_ExecutorId", table: "PayPalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Contact_PostalAddress_AddressId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_LiveFlow_ApplicationUser_OwnerId", table: "LiveFlow"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_MailingTemplate_ApplicationUser_ManagerId", table: "MailingTemplate"); - migrationBuilder.DropForeignKey(name: "FK_MailingTemplate_ApplicationUser_SuccessorId", table: "MailingTemplate"); - migrationBuilder.DropForeignKey(name: "FK_Project_Activity_ActivityCode", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_ApplicationUser_ClientId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_GitRepositoryReference_GitId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_PerformerProfile_PerformerId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_ProjectBuildConfiguration_Project_ProjectId", table: "ProjectBuildConfiguration"); - migrationBuilder.CreateTable( - name: "CircleAuthorizationToFile", - columns: table => new - { - CircleId = table.Column(nullable: false), - FullPath = table.Column(nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_CircleAuthorizationToFile", x => new { x.CircleId, x.FullPath }); - table.ForeignKey( - name: "FK_CircleAuthorizationToFile_Circle_CircleId", - column: x => x.CircleId, - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Ban_ApplicationUser_TargetId", - table: "Ban", - column: "TargetId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_UserId", - table: "BlackListed", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_BlogPost_PostId", - table: "BlogTag", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_Tag_TagId", - table: "BlogTag", - column: "TagId", - principalTable: "Tag", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Comment_ApplicationUser_AuthorId", - table: "Comment", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Comment_BlogPost_PostId", - table: "Comment", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Schedule_ApplicationUser_OwnerId", - table: "Schedule", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", - table: "ChatConnection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_ChatRoomAccess_ApplicationUser_UserId", - table: "ChatRoomAccess", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PayPalPayment_ApplicationUser_ExecutorId", - table: "PayPalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Contact_PostalAddress_AddressId", - table: "Contact", - column: "AddressId", - principalTable: "PostalAddress", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_LiveFlow_ApplicationUser_OwnerId", - table: "LiveFlow", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_MailingTemplate_ApplicationUser_ManagerId", - table: "MailingTemplate", - column: "ManagerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_MailingTemplate_ApplicationUser_SuccessorId", - table: "MailingTemplate", - column: "SuccessorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_Activity_ActivityCode", - table: "Project", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_ApplicationUser_ClientId", - table: "Project", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_GitRepositoryReference_GitId", - table: "Project", - column: "GitId", - principalTable: "GitRepositoryReference", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_PerformerProfile_PerformerId", - table: "Project", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_ProjectBuildConfiguration_Project_ProjectId", - table: "ProjectBuildConfiguration", - column: "ProjectId", - principalTable: "Project", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_Ban_ApplicationUser_TargetId", table: "Ban"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_UserId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_BlogPost_PostId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_Tag_TagId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_Comment_ApplicationUser_AuthorId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Comment_BlogPost_PostId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Schedule_ApplicationUser_OwnerId", table: "Schedule"); - migrationBuilder.DropForeignKey(name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", table: "ChatConnection"); - migrationBuilder.DropForeignKey(name: "FK_ChatRoomAccess_ApplicationUser_UserId", table: "ChatRoomAccess"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PayPalPayment_ApplicationUser_ExecutorId", table: "PayPalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Contact_PostalAddress_AddressId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_LiveFlow_ApplicationUser_OwnerId", table: "LiveFlow"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_MailingTemplate_ApplicationUser_ManagerId", table: "MailingTemplate"); - migrationBuilder.DropForeignKey(name: "FK_MailingTemplate_ApplicationUser_SuccessorId", table: "MailingTemplate"); - migrationBuilder.DropForeignKey(name: "FK_Project_Activity_ActivityCode", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_ApplicationUser_ClientId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_GitRepositoryReference_GitId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_PerformerProfile_PerformerId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_ProjectBuildConfiguration_Project_ProjectId", table: "ProjectBuildConfiguration"); - migrationBuilder.DropTable("CircleAuthorizationToFile"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Ban_ApplicationUser_TargetId", - table: "Ban", - column: "TargetId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_UserId", - table: "BlackListed", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_BlogPost_PostId", - table: "BlogTag", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_Tag_TagId", - table: "BlogTag", - column: "TagId", - principalTable: "Tag", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Comment_ApplicationUser_AuthorId", - table: "Comment", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Comment_BlogPost_PostId", - table: "Comment", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Schedule_ApplicationUser_OwnerId", - table: "Schedule", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", - table: "ChatConnection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_ChatRoomAccess_ApplicationUser_UserId", - table: "ChatRoomAccess", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PayPalPayment_ApplicationUser_ExecutorId", - table: "PayPalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Contact_PostalAddress_AddressId", - table: "Contact", - column: "AddressId", - principalTable: "PostalAddress", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_LiveFlow_ApplicationUser_OwnerId", - table: "LiveFlow", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_MailingTemplate_ApplicationUser_ManagerId", - table: "MailingTemplate", - column: "ManagerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_MailingTemplate_ApplicationUser_SuccessorId", - table: "MailingTemplate", - column: "SuccessorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_Activity_ActivityCode", - table: "Project", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_ApplicationUser_ClientId", - table: "Project", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_GitRepositoryReference_GitId", - table: "Project", - column: "GitId", - principalTable: "GitRepositoryReference", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_PerformerProfile_PerformerId", - table: "Project", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_ProjectBuildConfiguration_Project_ProjectId", - table: "ProjectBuildConfiguration", - column: "ProjectId", - principalTable: "Project", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2019/20190804232432_circleAnnotations.Designer.cs b/src/Yavsc.Server/Migrations/2019/20190804232432_circleAnnotations.Designer.cs deleted file mode 100644 index 4b9d6f46..00000000 --- a/src/Yavsc.Server/Migrations/2019/20190804232432_circleAnnotations.Designer.cs +++ /dev/null @@ -1,2079 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20190804232432_circleAnnotations")] - partial class circleAnnotations - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Abstract.Identity.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Reason") - .IsRequired(); - - b.Property("TargetId") - .IsRequired(); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId"); - - b.Property("BlogPostId"); - - b.HasKey("CircleId", "BlogPostId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("AllowMonthlyEmail"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512) - .HasAnnotation("Relational:DefaultValue", "/images/Users/icon_user.png") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("DedicatedGoogleCalendar") - .HasAnnotation("MaxLength", 512); - - b.Property("DiskQuota") - .HasAnnotation("Relational:DefaultValue", "524288000") - .HasAnnotation("Relational:DefaultValueType", "System.Int64"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("MaxFileSize"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Count"); - - b.Property("Currency"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 256); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType") - .IsRequired(); - - b.Property("Description"); - - b.Property("OwnerId"); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content") - .HasAnnotation("MaxLength", 56224); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Lang") - .HasAnnotation("MaxLength", 8); - - b.Property("Photo") - .HasAnnotation("MaxLength", 1024); - - b.Property("Rate"); - - b.Property("Title") - .HasAnnotation("MaxLength", 1024); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId") - .IsRequired(); - - b.Property("Content") - .HasAnnotation("MaxLength", 1024); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ParentId"); - - b.Property("PostId"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Period", b => - { - b.Property("Start"); - - b.Property("End"); - - b.HasKey("Start", "End"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Property("OwnerId"); - - b.HasKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PeriodEnd"); - - b.Property("PeriodStart"); - - b.Property("Reccurence"); - - b.Property("ScheduleOwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId") - .IsRequired(); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.Property("Name") - .HasAnnotation("MaxLength", 255); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("LatestJoinPart"); - - b.Property("OwnerId"); - - b.Property("Topic"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Name"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomAccess", b => - { - b.Property("ChannelName"); - - b.Property("UserId"); - - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Level"); - - b.HasKey("ChannelName", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Cratie.Option", b => - { - b.Property("Code"); - - b.Property("CodeScrutin"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code", "CodeScrutin"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Blue"); - - b.Property("Green"); - - b.Property("Name"); - - b.Property("Red"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id"); - - b.Property("Summary"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId"); - - b.Property("ActionDistance"); - - b.Property("CarePrice"); - - b.Property("FlatFeeDiscount"); - - b.Property("HalfBalayagePrice"); - - b.Property("HalfBrushingPrice"); - - b.Property("HalfColorPrice"); - - b.Property("HalfDefrisPrice"); - - b.Property("HalfFoldingPrice"); - - b.Property("HalfMechPrice"); - - b.Property("HalfMultiColorPrice"); - - b.Property("HalfPermanentPrice"); - - b.Property("KidCutPrice"); - - b.Property("LongBalayagePrice"); - - b.Property("LongBrushingPrice"); - - b.Property("LongColorPrice"); - - b.Property("LongDefrisPrice"); - - b.Property("LongFoldingPrice"); - - b.Property("LongMechPrice"); - - b.Property("LongMultiColorPrice"); - - b.Property("LongPermanentPrice"); - - b.Property("ManBrushPrice"); - - b.Property("ManCutPrice"); - - b.Property("ScheduleOwnerId"); - - b.Property("ShampooPrice"); - - b.Property("ShortBalayagePrice"); - - b.Property("ShortBrushingPrice"); - - b.Property("ShortColorPrice"); - - b.Property("ShortDefrisPrice"); - - b.Property("ShortFoldingPrice"); - - b.Property("ShortMechPrice"); - - b.Property("ShortMultiColorPrice"); - - b.Property("ShortPermanentPrice"); - - b.Property("WomenHalfCutPrice"); - - b.Property("WomenLongCutPrice"); - - b.Property("WomenShortCutPrice"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("AdditionalInfo") - .HasAnnotation("MaxLength", 512); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("PrestationId"); - - b.Property("Previsional"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("SelectedProfileUserId"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Cares"); - - b.Property("Cut"); - - b.Property("Dressing"); - - b.Property("Gender"); - - b.Property("Length"); - - b.Property("Shampoo"); - - b.Property("Tech"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PrestationId"); - - b.Property("QueryId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Brand"); - - b.Property("ColorId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.Property("TaintId"); - - b.Property("PrestationId"); - - b.HasKey("TaintId", "PrestationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.DeviceDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("LatestActivityUpdate"); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Evolution.Feature", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description") - .HasAnnotation("MaxLength", 10240); - - b.Property("ShortName") - .HasAnnotation("MaxLength", 256); - - b.Property("Status"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("FeatureId"); - - b.Property("Status"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Depth"); - - b.Property("Description"); - - b.Property("Height"); - - b.Property("Name"); - - b.Property("Price"); - - b.Property("Public"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("For"); - - b.Property("Message"); - - b.Property("OwnerId"); - - b.Property("Sender"); - - b.Property("Topic"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.Property("UserId"); - - b.Property("NotificationId"); - - b.HasKey("UserId", "NotificationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Target"); - - b.Property("body") - .IsRequired(); - - b.Property("click_action") - .IsRequired(); - - b.Property("color"); - - b.Property("icon") - .HasAnnotation("Relational:DefaultValue", "exclam") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("sound"); - - b.Property("tag"); - - b.Property("title") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId"); - - b.Property("DjSettingsUserId"); - - b.Property("GeneralSettingsUserId"); - - b.Property("Rate"); - - b.Property("TendencyId"); - - b.HasKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId"); - - b.Property("SoundCloudId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId"); - - b.Property("UserId"); - - b.HasKey("InstrumentId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Property("CreationToken"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ExecutorId") - .IsRequired(); - - b.Property("OrderReference"); - - b.Property("PaypalPayerId"); - - b.Property("State"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("CreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name") - .IsRequired(); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId"); - - b.Property("CircleId"); - - b.HasKey("MemberId", "CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("AddressId"); - - b.Property("ApplicationUserId"); - - b.Property("EMail"); - - b.Property("Name"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.Property("HRef"); - - b.Property("Method"); - - b.Property("BrusherProfileUserId"); - - b.Property("ContentType"); - - b.Property("PayPalPaymentCreationToken"); - - b.Property("Rel"); - - b.HasKey("HRef", "Method"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostalAddress", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("City"); - - b.Property("Country"); - - b.Property("PostalCode"); - - b.Property("Province"); - - b.Property("State"); - - b.Property("Street1"); - - b.Property("Street2"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Streaming.LiveFlow", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DifferedFileName") - .HasAnnotation("MaxLength", 255); - - b.Property("MediaType") - .HasAnnotation("MaxLength", 127); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Pitch") - .HasAnnotation("MaxLength", 1023); - - b.Property("SequenceNumber"); - - b.Property("Title") - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("Hidden"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("SettingsClassName"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActionName"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FormationSettingsUserId"); - - b.Property("PerformerId"); - - b.Property("WorkingForId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients"); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationType"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("DoesCode", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Access.CircleAuthorizationToFile", b => - { - b.Property("CircleId"); - - b.Property("FullPath"); - - b.HasKey("CircleId", "FullPath"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Blog.BlogTrad", b => - { - b.Property("PostId"); - - b.Property("Lang"); - - b.Property("Body"); - - b.Property("Title"); - - b.Property("TraducerId"); - - b.HasKey("PostId", "Lang"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.EMailing.MailingTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Body") - .HasAnnotation("MaxLength", 65536); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ManagerId") - .IsRequired(); - - b.Property("ReplyToAddress"); - - b.Property("SuccessorId") - .IsRequired(); - - b.Property("ToSend"); - - b.Property("Topic") - .HasAnnotation("MaxLength", 128); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("GitId"); - - b.Property("Name") - .IsRequired(); - - b.Property("OwnerId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.Property("Version"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.Property("ProjectId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Branch") - .HasAnnotation("MaxLength", 512); - - b.Property("OwnerId") - .HasAnnotation("MaxLength", 1024); - - b.Property("Path") - .IsRequired(); - - b.Property("Url") - .HasAnnotation("MaxLength", 2048); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("TargetId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("BlogPostId"); - - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("PostId"); - - b.HasOne("Yavsc.Models.Relationship.Tag") - .WithMany() - .HasForeignKey("TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - - b.HasOne("Yavsc.Models.Blog.Comment") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Calendar.Period") - .WithMany() - .HasForeignKey("PeriodStart", "PeriodEnd"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomAccess", b => - { - b.HasOne("Yavsc.Models.Chat.ChatRoom") - .WithMany() - .HasForeignKey("ChannelName"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("SelectedProfileUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery") - .WithMany() - .HasForeignKey("QueryId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color") - .WithMany() - .HasForeignKey("ColorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairTaint") - .WithMany() - .HasForeignKey("TaintId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.DeviceDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.HasOne("Yavsc.Models.IT.Evolution.Feature") - .WithMany() - .HasForeignKey("FeatureId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.HasOne("Yavsc.Models.Messaging.Notification") - .WithMany() - .HasForeignKey("NotificationId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings") - .WithMany() - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings") - .WithMany() - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ExecutorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.Relationship.PostalAddress") - .WithMany() - .HasForeignKey("AddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("BrusherProfileUserId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PayPalPaymentCreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Streaming.LiveFlow", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings") - .WithMany() - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("WorkingForId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Access.CircleAuthorizationToFile", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Blog.BlogTrad", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("TraducerId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.EMailing.MailingTemplate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ManagerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("SuccessorId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference") - .WithMany() - .HasForeignKey("GitId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.HasOne("Yavsc.Server.Models.IT.Project") - .WithMany() - .HasForeignKey("ProjectId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2019/20190804232432_circleAnnotations.cs b/src/Yavsc.Server/Migrations/2019/20190804232432_circleAnnotations.cs deleted file mode 100644 index a2343a58..00000000 --- a/src/Yavsc.Server/Migrations/2019/20190804232432_circleAnnotations.cs +++ /dev/null @@ -1,963 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class circleAnnotations : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_Ban_ApplicationUser_TargetId", table: "Ban"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_UserId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_BlogPost_PostId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_Tag_TagId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_Comment_ApplicationUser_AuthorId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Comment_BlogPost_PostId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Schedule_ApplicationUser_OwnerId", table: "Schedule"); - migrationBuilder.DropForeignKey(name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", table: "ChatConnection"); - migrationBuilder.DropForeignKey(name: "FK_ChatRoomAccess_ApplicationUser_UserId", table: "ChatRoomAccess"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PayPalPayment_ApplicationUser_ExecutorId", table: "PayPalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Contact_PostalAddress_AddressId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_LiveFlow_ApplicationUser_OwnerId", table: "LiveFlow"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToFile_Circle_CircleId", table: "CircleAuthorizationToFile"); - migrationBuilder.DropForeignKey(name: "FK_MailingTemplate_ApplicationUser_ManagerId", table: "MailingTemplate"); - migrationBuilder.DropForeignKey(name: "FK_MailingTemplate_ApplicationUser_SuccessorId", table: "MailingTemplate"); - migrationBuilder.DropForeignKey(name: "FK_Project_Activity_ActivityCode", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_ApplicationUser_ClientId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_GitRepositoryReference_GitId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_PerformerProfile_PerformerId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_ProjectBuildConfiguration_Project_ProjectId", table: "ProjectBuildConfiguration"); - migrationBuilder.Sql("delete from \"Circle\" where \"OwnerId\" is null"); - migrationBuilder.AlterColumn( - name: "OwnerId", - table: "Circle", - nullable: false); - migrationBuilder.AlterColumn( - name: "Name", - table: "Circle", - nullable: false); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Ban_ApplicationUser_TargetId", - table: "Ban", - column: "TargetId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_UserId", - table: "BlackListed", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_BlogPost_PostId", - table: "BlogTag", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_Tag_TagId", - table: "BlogTag", - column: "TagId", - principalTable: "Tag", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Comment_ApplicationUser_AuthorId", - table: "Comment", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Comment_BlogPost_PostId", - table: "Comment", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Schedule_ApplicationUser_OwnerId", - table: "Schedule", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", - table: "ChatConnection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_ChatRoomAccess_ApplicationUser_UserId", - table: "ChatRoomAccess", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PayPalPayment_ApplicationUser_ExecutorId", - table: "PayPalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Contact_PostalAddress_AddressId", - table: "Contact", - column: "AddressId", - principalTable: "PostalAddress", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_LiveFlow_ApplicationUser_OwnerId", - table: "LiveFlow", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToFile_Circle_CircleId", - table: "CircleAuthorizationToFile", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_MailingTemplate_ApplicationUser_ManagerId", - table: "MailingTemplate", - column: "ManagerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_MailingTemplate_ApplicationUser_SuccessorId", - table: "MailingTemplate", - column: "SuccessorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_Activity_ActivityCode", - table: "Project", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_ApplicationUser_ClientId", - table: "Project", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_GitRepositoryReference_GitId", - table: "Project", - column: "GitId", - principalTable: "GitRepositoryReference", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_PerformerProfile_PerformerId", - table: "Project", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_ProjectBuildConfiguration_Project_ProjectId", - table: "ProjectBuildConfiguration", - column: "ProjectId", - principalTable: "Project", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_Ban_ApplicationUser_TargetId", table: "Ban"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_UserId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_BlogPost_PostId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_Tag_TagId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_Comment_ApplicationUser_AuthorId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Comment_BlogPost_PostId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Schedule_ApplicationUser_OwnerId", table: "Schedule"); - migrationBuilder.DropForeignKey(name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", table: "ChatConnection"); - migrationBuilder.DropForeignKey(name: "FK_ChatRoomAccess_ApplicationUser_UserId", table: "ChatRoomAccess"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PayPalPayment_ApplicationUser_ExecutorId", table: "PayPalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Contact_PostalAddress_AddressId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_LiveFlow_ApplicationUser_OwnerId", table: "LiveFlow"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToFile_Circle_CircleId", table: "CircleAuthorizationToFile"); - migrationBuilder.DropForeignKey(name: "FK_MailingTemplate_ApplicationUser_ManagerId", table: "MailingTemplate"); - migrationBuilder.DropForeignKey(name: "FK_MailingTemplate_ApplicationUser_SuccessorId", table: "MailingTemplate"); - migrationBuilder.DropForeignKey(name: "FK_Project_Activity_ActivityCode", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_ApplicationUser_ClientId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_GitRepositoryReference_GitId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_PerformerProfile_PerformerId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_ProjectBuildConfiguration_Project_ProjectId", table: "ProjectBuildConfiguration"); - migrationBuilder.AlterColumn( - name: "OwnerId", - table: "Circle", - nullable: true); - migrationBuilder.AlterColumn( - name: "Name", - table: "Circle", - nullable: true); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Ban_ApplicationUser_TargetId", - table: "Ban", - column: "TargetId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_UserId", - table: "BlackListed", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_BlogPost_PostId", - table: "BlogTag", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_Tag_TagId", - table: "BlogTag", - column: "TagId", - principalTable: "Tag", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Comment_ApplicationUser_AuthorId", - table: "Comment", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Comment_BlogPost_PostId", - table: "Comment", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Schedule_ApplicationUser_OwnerId", - table: "Schedule", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", - table: "ChatConnection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_ChatRoomAccess_ApplicationUser_UserId", - table: "ChatRoomAccess", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PayPalPayment_ApplicationUser_ExecutorId", - table: "PayPalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Contact_PostalAddress_AddressId", - table: "Contact", - column: "AddressId", - principalTable: "PostalAddress", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_LiveFlow_ApplicationUser_OwnerId", - table: "LiveFlow", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToFile_Circle_CircleId", - table: "CircleAuthorizationToFile", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_MailingTemplate_ApplicationUser_ManagerId", - table: "MailingTemplate", - column: "ManagerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_MailingTemplate_ApplicationUser_SuccessorId", - table: "MailingTemplate", - column: "SuccessorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_Activity_ActivityCode", - table: "Project", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_ApplicationUser_ClientId", - table: "Project", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_GitRepositoryReference_GitId", - table: "Project", - column: "GitId", - principalTable: "GitRepositoryReference", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_PerformerProfile_PerformerId", - table: "Project", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_ProjectBuildConfiguration_Project_ProjectId", - table: "ProjectBuildConfiguration", - column: "ProjectId", - principalTable: "Project", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2019/20190819220343_intrumentRatingConstraint.Designer.cs b/src/Yavsc.Server/Migrations/2019/20190819220343_intrumentRatingConstraint.Designer.cs deleted file mode 100644 index 032ad975..00000000 --- a/src/Yavsc.Server/Migrations/2019/20190819220343_intrumentRatingConstraint.Designer.cs +++ /dev/null @@ -1,2106 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20190819220343_intrumentRatingConstraint")] - partial class intrumentRatingConstraint - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Abstract.Identity.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Reason") - .IsRequired(); - - b.Property("TargetId") - .IsRequired(); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId"); - - b.Property("BlogPostId"); - - b.HasKey("CircleId", "BlogPostId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("AllowMonthlyEmail"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512) - .HasAnnotation("Relational:DefaultValue", "/images/Users/icon_user.png") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("DedicatedGoogleCalendar") - .HasAnnotation("MaxLength", 512); - - b.Property("DiskQuota") - .HasAnnotation("Relational:DefaultValue", "524288000") - .HasAnnotation("Relational:DefaultValueType", "System.Int64"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("MaxFileSize"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Count"); - - b.Property("Currency"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 256); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType") - .IsRequired(); - - b.Property("Description"); - - b.Property("OwnerId"); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content") - .HasAnnotation("MaxLength", 56224); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Lang") - .HasAnnotation("MaxLength", 8); - - b.Property("Photo") - .HasAnnotation("MaxLength", 1024); - - b.Property("Rate"); - - b.Property("Title") - .HasAnnotation("MaxLength", 1024); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId") - .IsRequired(); - - b.Property("Content") - .HasAnnotation("MaxLength", 1024); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ParentId"); - - b.Property("PostId"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Period", b => - { - b.Property("Start"); - - b.Property("End"); - - b.HasKey("Start", "End"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Property("OwnerId"); - - b.HasKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PeriodEnd"); - - b.Property("PeriodStart"); - - b.Property("Reccurence"); - - b.Property("ScheduleOwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId") - .IsRequired(); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.Property("Name") - .HasAnnotation("MaxLength", 255); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("LatestJoinPart"); - - b.Property("OwnerId"); - - b.Property("Topic"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Name"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomAccess", b => - { - b.Property("ChannelName"); - - b.Property("UserId"); - - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Level"); - - b.HasKey("ChannelName", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Cratie.Option", b => - { - b.Property("Code"); - - b.Property("CodeScrutin"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code", "CodeScrutin"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Blue"); - - b.Property("Green"); - - b.Property("Name"); - - b.Property("Red"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id"); - - b.Property("Summary"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId"); - - b.Property("ActionDistance"); - - b.Property("CarePrice"); - - b.Property("FlatFeeDiscount"); - - b.Property("HalfBalayagePrice"); - - b.Property("HalfBrushingPrice"); - - b.Property("HalfColorPrice"); - - b.Property("HalfDefrisPrice"); - - b.Property("HalfFoldingPrice"); - - b.Property("HalfMechPrice"); - - b.Property("HalfMultiColorPrice"); - - b.Property("HalfPermanentPrice"); - - b.Property("KidCutPrice"); - - b.Property("LongBalayagePrice"); - - b.Property("LongBrushingPrice"); - - b.Property("LongColorPrice"); - - b.Property("LongDefrisPrice"); - - b.Property("LongFoldingPrice"); - - b.Property("LongMechPrice"); - - b.Property("LongMultiColorPrice"); - - b.Property("LongPermanentPrice"); - - b.Property("ManBrushPrice"); - - b.Property("ManCutPrice"); - - b.Property("ScheduleOwnerId"); - - b.Property("ShampooPrice"); - - b.Property("ShortBalayagePrice"); - - b.Property("ShortBrushingPrice"); - - b.Property("ShortColorPrice"); - - b.Property("ShortDefrisPrice"); - - b.Property("ShortFoldingPrice"); - - b.Property("ShortMechPrice"); - - b.Property("ShortMultiColorPrice"); - - b.Property("ShortPermanentPrice"); - - b.Property("WomenHalfCutPrice"); - - b.Property("WomenLongCutPrice"); - - b.Property("WomenShortCutPrice"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("AdditionalInfo") - .HasAnnotation("MaxLength", 512); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("PrestationId"); - - b.Property("Previsional"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("SelectedProfileUserId"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Cares"); - - b.Property("Cut"); - - b.Property("Dressing"); - - b.Property("Gender"); - - b.Property("Length"); - - b.Property("Shampoo"); - - b.Property("Tech"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PrestationId"); - - b.Property("QueryId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Brand"); - - b.Property("ColorId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.Property("TaintId"); - - b.Property("PrestationId"); - - b.HasKey("TaintId", "PrestationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.DeviceDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("LatestActivityUpdate"); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Evolution.Feature", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description") - .HasAnnotation("MaxLength", 10240); - - b.Property("ShortName") - .HasAnnotation("MaxLength", 256); - - b.Property("Status"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("FeatureId"); - - b.Property("Status"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Depth"); - - b.Property("Description"); - - b.Property("Height"); - - b.Property("Name"); - - b.Property("Price"); - - b.Property("Public"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("For"); - - b.Property("Message"); - - b.Property("OwnerId"); - - b.Property("Sender"); - - b.Property("Topic"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.Property("UserId"); - - b.Property("NotificationId"); - - b.HasKey("UserId", "NotificationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Target"); - - b.Property("body") - .IsRequired(); - - b.Property("click_action") - .IsRequired(); - - b.Property("color"); - - b.Property("icon") - .HasAnnotation("Relational:DefaultValue", "exclam") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("sound"); - - b.Property("tag"); - - b.Property("title") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.InstrumentRating", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("InstrumentId"); - - b.Property("OwnerId"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId"); - - b.Property("DjSettingsUserId"); - - b.Property("GeneralSettingsUserId"); - - b.Property("Rate"); - - b.Property("TendencyId"); - - b.HasKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId"); - - b.Property("SoundCloudId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId"); - - b.Property("UserId"); - - b.HasKey("InstrumentId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Property("CreationToken"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ExecutorId") - .IsRequired(); - - b.Property("OrderReference"); - - b.Property("PaypalPayerId"); - - b.Property("State"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("CreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name") - .IsRequired(); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId"); - - b.Property("CircleId"); - - b.HasKey("MemberId", "CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("AddressId"); - - b.Property("ApplicationUserId"); - - b.Property("EMail"); - - b.Property("Name"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.Property("HRef"); - - b.Property("Method"); - - b.Property("BrusherProfileUserId"); - - b.Property("ContentType"); - - b.Property("PayPalPaymentCreationToken"); - - b.Property("Rel"); - - b.HasKey("HRef", "Method"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostalAddress", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("City"); - - b.Property("Country"); - - b.Property("PostalCode"); - - b.Property("Province"); - - b.Property("State"); - - b.Property("Street1"); - - b.Property("Street2"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Streaming.LiveFlow", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DifferedFileName") - .HasAnnotation("MaxLength", 255); - - b.Property("MediaType") - .HasAnnotation("MaxLength", 127); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Pitch") - .HasAnnotation("MaxLength", 1023); - - b.Property("SequenceNumber"); - - b.Property("Title") - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("Hidden"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("SettingsClassName"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActionName"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FormationSettingsUserId"); - - b.Property("PerformerId"); - - b.Property("WorkingForId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients"); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId"); - - b.Property("DisplayName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationType"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("DoesCode", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Access.CircleAuthorizationToFile", b => - { - b.Property("CircleId"); - - b.Property("FullPath"); - - b.HasKey("CircleId", "FullPath"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Blog.BlogTrad", b => - { - b.Property("PostId"); - - b.Property("Lang"); - - b.Property("Body"); - - b.Property("Title"); - - b.Property("TraducerId"); - - b.HasKey("PostId", "Lang"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.EMailing.MailingTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Body") - .HasAnnotation("MaxLength", 65536); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ManagerId") - .IsRequired(); - - b.Property("ReplyToAddress"); - - b.Property("SuccessorId") - .IsRequired(); - - b.Property("ToSend"); - - b.Property("Topic") - .HasAnnotation("MaxLength", 128); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("GitId"); - - b.Property("Name") - .IsRequired(); - - b.Property("OwnerId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.Property("Version"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.Property("ProjectId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Branch") - .HasAnnotation("MaxLength", 512); - - b.Property("OwnerId") - .HasAnnotation("MaxLength", 1024); - - b.Property("Path") - .IsRequired(); - - b.Property("Url") - .HasAnnotation("MaxLength", 2048); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("TargetId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("BlogPostId"); - - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("PostId"); - - b.HasOne("Yavsc.Models.Relationship.Tag") - .WithMany() - .HasForeignKey("TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - - b.HasOne("Yavsc.Models.Blog.Comment") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Calendar.Period") - .WithMany() - .HasForeignKey("PeriodStart", "PeriodEnd"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomAccess", b => - { - b.HasOne("Yavsc.Models.Chat.ChatRoom") - .WithMany() - .HasForeignKey("ChannelName"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("SelectedProfileUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery") - .WithMany() - .HasForeignKey("QueryId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color") - .WithMany() - .HasForeignKey("ColorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairTaint") - .WithMany() - .HasForeignKey("TaintId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.DeviceDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.HasOne("Yavsc.Models.IT.Evolution.Feature") - .WithMany() - .HasForeignKey("FeatureId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.HasOne("Yavsc.Models.Messaging.Notification") - .WithMany() - .HasForeignKey("NotificationId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.InstrumentRating", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings") - .WithMany() - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings") - .WithMany() - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ExecutorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.Relationship.PostalAddress") - .WithMany() - .HasForeignKey("AddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("BrusherProfileUserId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PayPalPaymentCreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Streaming.LiveFlow", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings") - .WithMany() - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("WorkingForId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Access.CircleAuthorizationToFile", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Blog.BlogTrad", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("TraducerId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.EMailing.MailingTemplate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ManagerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("SuccessorId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference") - .WithMany() - .HasForeignKey("GitId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.HasOne("Yavsc.Server.Models.IT.Project") - .WithMany() - .HasForeignKey("ProjectId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2019/20190819220343_intrumentRatingConstraint.cs b/src/Yavsc.Server/Migrations/2019/20190819220343_intrumentRatingConstraint.cs deleted file mode 100644 index 2ab2665c..00000000 --- a/src/Yavsc.Server/Migrations/2019/20190819220343_intrumentRatingConstraint.cs +++ /dev/null @@ -1,978 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class intrumentRatingConstraint : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_Ban_ApplicationUser_TargetId", table: "Ban"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_UserId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_BlogPost_PostId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_Tag_TagId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_Comment_ApplicationUser_AuthorId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Comment_BlogPost_PostId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Schedule_ApplicationUser_OwnerId", table: "Schedule"); - migrationBuilder.DropForeignKey(name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", table: "ChatConnection"); - migrationBuilder.DropForeignKey(name: "FK_ChatRoomAccess_ApplicationUser_UserId", table: "ChatRoomAccess"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PayPalPayment_ApplicationUser_ExecutorId", table: "PayPalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Contact_PostalAddress_AddressId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_LiveFlow_ApplicationUser_OwnerId", table: "LiveFlow"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToFile_Circle_CircleId", table: "CircleAuthorizationToFile"); - migrationBuilder.DropForeignKey(name: "FK_MailingTemplate_ApplicationUser_ManagerId", table: "MailingTemplate"); - migrationBuilder.DropForeignKey(name: "FK_MailingTemplate_ApplicationUser_SuccessorId", table: "MailingTemplate"); - migrationBuilder.DropForeignKey(name: "FK_Project_Activity_ActivityCode", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_ApplicationUser_ClientId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_GitRepositoryReference_GitId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_PerformerProfile_PerformerId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_ProjectBuildConfiguration_Project_ProjectId", table: "ProjectBuildConfiguration"); - migrationBuilder.CreateTable( - name: "InstrumentRating", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("Npgsql:Serial", true), - InstrumentId = table.Column(nullable: true), - OwnerId = table.Column(nullable: true), - Rate = table.Column(nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_InstrumentRating", x => x.Id); - table.ForeignKey( - name: "FK_InstrumentRating_Instrument_InstrumentId", - column: x => x.InstrumentId, - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - table.ForeignKey( - name: "FK_InstrumentRating_PerformerProfile_OwnerId", - column: x => x.OwnerId, - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - }); - migrationBuilder.AddColumn( - name: "DisplayName", - table: "FormationSettings", - nullable: true); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Ban_ApplicationUser_TargetId", - table: "Ban", - column: "TargetId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_UserId", - table: "BlackListed", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_BlogPost_PostId", - table: "BlogTag", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_Tag_TagId", - table: "BlogTag", - column: "TagId", - principalTable: "Tag", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Comment_ApplicationUser_AuthorId", - table: "Comment", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Comment_BlogPost_PostId", - table: "Comment", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Schedule_ApplicationUser_OwnerId", - table: "Schedule", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", - table: "ChatConnection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_ChatRoomAccess_ApplicationUser_UserId", - table: "ChatRoomAccess", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PayPalPayment_ApplicationUser_ExecutorId", - table: "PayPalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Contact_PostalAddress_AddressId", - table: "Contact", - column: "AddressId", - principalTable: "PostalAddress", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_LiveFlow_ApplicationUser_OwnerId", - table: "LiveFlow", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToFile_Circle_CircleId", - table: "CircleAuthorizationToFile", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_MailingTemplate_ApplicationUser_ManagerId", - table: "MailingTemplate", - column: "ManagerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_MailingTemplate_ApplicationUser_SuccessorId", - table: "MailingTemplate", - column: "SuccessorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_Activity_ActivityCode", - table: "Project", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_ApplicationUser_ClientId", - table: "Project", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_GitRepositoryReference_GitId", - table: "Project", - column: "GitId", - principalTable: "GitRepositoryReference", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_PerformerProfile_PerformerId", - table: "Project", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_ProjectBuildConfiguration_Project_ProjectId", - table: "ProjectBuildConfiguration", - column: "ProjectId", - principalTable: "Project", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_Ban_ApplicationUser_TargetId", table: "Ban"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_UserId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_BlogPost_PostId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_Tag_TagId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_Comment_ApplicationUser_AuthorId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Comment_BlogPost_PostId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Schedule_ApplicationUser_OwnerId", table: "Schedule"); - migrationBuilder.DropForeignKey(name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", table: "ChatConnection"); - migrationBuilder.DropForeignKey(name: "FK_ChatRoomAccess_ApplicationUser_UserId", table: "ChatRoomAccess"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PayPalPayment_ApplicationUser_ExecutorId", table: "PayPalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Contact_PostalAddress_AddressId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_LiveFlow_ApplicationUser_OwnerId", table: "LiveFlow"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToFile_Circle_CircleId", table: "CircleAuthorizationToFile"); - migrationBuilder.DropForeignKey(name: "FK_MailingTemplate_ApplicationUser_ManagerId", table: "MailingTemplate"); - migrationBuilder.DropForeignKey(name: "FK_MailingTemplate_ApplicationUser_SuccessorId", table: "MailingTemplate"); - migrationBuilder.DropForeignKey(name: "FK_Project_Activity_ActivityCode", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_ApplicationUser_ClientId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_GitRepositoryReference_GitId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_PerformerProfile_PerformerId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_ProjectBuildConfiguration_Project_ProjectId", table: "ProjectBuildConfiguration"); - migrationBuilder.DropColumn(name: "DisplayName", table: "FormationSettings"); - migrationBuilder.DropTable("InstrumentRating"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Ban_ApplicationUser_TargetId", - table: "Ban", - column: "TargetId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_UserId", - table: "BlackListed", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_BlogPost_PostId", - table: "BlogTag", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_Tag_TagId", - table: "BlogTag", - column: "TagId", - principalTable: "Tag", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Comment_ApplicationUser_AuthorId", - table: "Comment", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Comment_BlogPost_PostId", - table: "Comment", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Schedule_ApplicationUser_OwnerId", - table: "Schedule", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", - table: "ChatConnection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_ChatRoomAccess_ApplicationUser_UserId", - table: "ChatRoomAccess", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PayPalPayment_ApplicationUser_ExecutorId", - table: "PayPalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Contact_PostalAddress_AddressId", - table: "Contact", - column: "AddressId", - principalTable: "PostalAddress", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_LiveFlow_ApplicationUser_OwnerId", - table: "LiveFlow", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToFile_Circle_CircleId", - table: "CircleAuthorizationToFile", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_MailingTemplate_ApplicationUser_ManagerId", - table: "MailingTemplate", - column: "ManagerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_MailingTemplate_ApplicationUser_SuccessorId", - table: "MailingTemplate", - column: "SuccessorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_Activity_ActivityCode", - table: "Project", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_ApplicationUser_ClientId", - table: "Project", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_GitRepositoryReference_GitId", - table: "Project", - column: "GitId", - principalTable: "GitRepositoryReference", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_PerformerProfile_PerformerId", - table: "Project", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_ProjectBuildConfiguration_Project_ProjectId", - table: "ProjectBuildConfiguration", - column: "ProjectId", - principalTable: "Project", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2019/20190819221632_instRateWInst.Designer.cs b/src/Yavsc.Server/Migrations/2019/20190819221632_instRateWInst.Designer.cs deleted file mode 100644 index 1cb71985..00000000 --- a/src/Yavsc.Server/Migrations/2019/20190819221632_instRateWInst.Designer.cs +++ /dev/null @@ -1,2106 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20190819221632_instRateWInst")] - partial class instRateWInst - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Abstract.Identity.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Reason") - .IsRequired(); - - b.Property("TargetId") - .IsRequired(); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId"); - - b.Property("BlogPostId"); - - b.HasKey("CircleId", "BlogPostId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("AllowMonthlyEmail"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512) - .HasAnnotation("Relational:DefaultValue", "/images/Users/icon_user.png") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("DedicatedGoogleCalendar") - .HasAnnotation("MaxLength", 512); - - b.Property("DiskQuota") - .HasAnnotation("Relational:DefaultValue", "524288000") - .HasAnnotation("Relational:DefaultValueType", "System.Int64"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("MaxFileSize"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Count"); - - b.Property("Currency"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 256); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType") - .IsRequired(); - - b.Property("Description"); - - b.Property("OwnerId"); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content") - .HasAnnotation("MaxLength", 56224); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Lang") - .HasAnnotation("MaxLength", 8); - - b.Property("Photo") - .HasAnnotation("MaxLength", 1024); - - b.Property("Rate"); - - b.Property("Title") - .HasAnnotation("MaxLength", 1024); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId") - .IsRequired(); - - b.Property("Content") - .HasAnnotation("MaxLength", 1024); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ParentId"); - - b.Property("PostId"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Period", b => - { - b.Property("Start"); - - b.Property("End"); - - b.HasKey("Start", "End"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Property("OwnerId"); - - b.HasKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PeriodEnd"); - - b.Property("PeriodStart"); - - b.Property("Reccurence"); - - b.Property("ScheduleOwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId") - .IsRequired(); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.Property("Name") - .HasAnnotation("MaxLength", 255); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("LatestJoinPart"); - - b.Property("OwnerId"); - - b.Property("Topic"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Name"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomAccess", b => - { - b.Property("ChannelName"); - - b.Property("UserId"); - - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Level"); - - b.HasKey("ChannelName", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Cratie.Option", b => - { - b.Property("Code"); - - b.Property("CodeScrutin"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code", "CodeScrutin"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Blue"); - - b.Property("Green"); - - b.Property("Name"); - - b.Property("Red"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id"); - - b.Property("Summary"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId"); - - b.Property("ActionDistance"); - - b.Property("CarePrice"); - - b.Property("FlatFeeDiscount"); - - b.Property("HalfBalayagePrice"); - - b.Property("HalfBrushingPrice"); - - b.Property("HalfColorPrice"); - - b.Property("HalfDefrisPrice"); - - b.Property("HalfFoldingPrice"); - - b.Property("HalfMechPrice"); - - b.Property("HalfMultiColorPrice"); - - b.Property("HalfPermanentPrice"); - - b.Property("KidCutPrice"); - - b.Property("LongBalayagePrice"); - - b.Property("LongBrushingPrice"); - - b.Property("LongColorPrice"); - - b.Property("LongDefrisPrice"); - - b.Property("LongFoldingPrice"); - - b.Property("LongMechPrice"); - - b.Property("LongMultiColorPrice"); - - b.Property("LongPermanentPrice"); - - b.Property("ManBrushPrice"); - - b.Property("ManCutPrice"); - - b.Property("ScheduleOwnerId"); - - b.Property("ShampooPrice"); - - b.Property("ShortBalayagePrice"); - - b.Property("ShortBrushingPrice"); - - b.Property("ShortColorPrice"); - - b.Property("ShortDefrisPrice"); - - b.Property("ShortFoldingPrice"); - - b.Property("ShortMechPrice"); - - b.Property("ShortMultiColorPrice"); - - b.Property("ShortPermanentPrice"); - - b.Property("WomenHalfCutPrice"); - - b.Property("WomenLongCutPrice"); - - b.Property("WomenShortCutPrice"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("AdditionalInfo") - .HasAnnotation("MaxLength", 512); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("PrestationId"); - - b.Property("Previsional"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("SelectedProfileUserId"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Cares"); - - b.Property("Cut"); - - b.Property("Dressing"); - - b.Property("Gender"); - - b.Property("Length"); - - b.Property("Shampoo"); - - b.Property("Tech"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PrestationId"); - - b.Property("QueryId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Brand"); - - b.Property("ColorId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.Property("TaintId"); - - b.Property("PrestationId"); - - b.HasKey("TaintId", "PrestationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.DeviceDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("LatestActivityUpdate"); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Evolution.Feature", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description") - .HasAnnotation("MaxLength", 10240); - - b.Property("ShortName") - .HasAnnotation("MaxLength", 256); - - b.Property("Status"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("FeatureId"); - - b.Property("Status"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Depth"); - - b.Property("Description"); - - b.Property("Height"); - - b.Property("Name"); - - b.Property("Price"); - - b.Property("Public"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("For"); - - b.Property("Message"); - - b.Property("OwnerId"); - - b.Property("Sender"); - - b.Property("Topic"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.Property("UserId"); - - b.Property("NotificationId"); - - b.HasKey("UserId", "NotificationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Target"); - - b.Property("body") - .IsRequired(); - - b.Property("click_action") - .IsRequired(); - - b.Property("color"); - - b.Property("icon") - .HasAnnotation("Relational:DefaultValue", "exclam") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("sound"); - - b.Property("tag"); - - b.Property("title") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.InstrumentRating", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("InstrumentId"); - - b.Property("OwnerId"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId"); - - b.Property("DjSettingsUserId"); - - b.Property("GeneralSettingsUserId"); - - b.Property("Rate"); - - b.Property("TendencyId"); - - b.HasKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId"); - - b.Property("SoundCloudId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId"); - - b.Property("UserId"); - - b.HasKey("InstrumentId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Property("CreationToken"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ExecutorId") - .IsRequired(); - - b.Property("OrderReference"); - - b.Property("PaypalPayerId"); - - b.Property("State"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("CreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name") - .IsRequired(); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId"); - - b.Property("CircleId"); - - b.HasKey("MemberId", "CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("AddressId"); - - b.Property("ApplicationUserId"); - - b.Property("EMail"); - - b.Property("Name"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.Property("HRef"); - - b.Property("Method"); - - b.Property("BrusherProfileUserId"); - - b.Property("ContentType"); - - b.Property("PayPalPaymentCreationToken"); - - b.Property("Rel"); - - b.HasKey("HRef", "Method"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostalAddress", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("City"); - - b.Property("Country"); - - b.Property("PostalCode"); - - b.Property("Province"); - - b.Property("State"); - - b.Property("Street1"); - - b.Property("Street2"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Streaming.LiveFlow", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DifferedFileName") - .HasAnnotation("MaxLength", 255); - - b.Property("MediaType") - .HasAnnotation("MaxLength", 127); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Pitch") - .HasAnnotation("MaxLength", 1023); - - b.Property("SequenceNumber"); - - b.Property("Title") - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("Hidden"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("SettingsClassName"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActionName"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FormationSettingsUserId"); - - b.Property("PerformerId"); - - b.Property("WorkingForId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients"); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId"); - - b.Property("DisplayName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationType"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("DoesCode", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Access.CircleAuthorizationToFile", b => - { - b.Property("CircleId"); - - b.Property("FullPath"); - - b.HasKey("CircleId", "FullPath"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Blog.BlogTrad", b => - { - b.Property("PostId"); - - b.Property("Lang"); - - b.Property("Body"); - - b.Property("Title"); - - b.Property("TraducerId"); - - b.HasKey("PostId", "Lang"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.EMailing.MailingTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Body") - .HasAnnotation("MaxLength", 65536); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ManagerId") - .IsRequired(); - - b.Property("ReplyToAddress"); - - b.Property("SuccessorId") - .IsRequired(); - - b.Property("ToSend"); - - b.Property("Topic") - .HasAnnotation("MaxLength", 128); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("GitId"); - - b.Property("Name") - .IsRequired(); - - b.Property("OwnerId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.Property("Version"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.Property("ProjectId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Branch") - .HasAnnotation("MaxLength", 512); - - b.Property("OwnerId") - .HasAnnotation("MaxLength", 1024); - - b.Property("Path") - .IsRequired(); - - b.Property("Url") - .HasAnnotation("MaxLength", 2048); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("TargetId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("BlogPostId"); - - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("PostId"); - - b.HasOne("Yavsc.Models.Relationship.Tag") - .WithMany() - .HasForeignKey("TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - - b.HasOne("Yavsc.Models.Blog.Comment") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Calendar.Period") - .WithMany() - .HasForeignKey("PeriodStart", "PeriodEnd"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomAccess", b => - { - b.HasOne("Yavsc.Models.Chat.ChatRoom") - .WithMany() - .HasForeignKey("ChannelName"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("SelectedProfileUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery") - .WithMany() - .HasForeignKey("QueryId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color") - .WithMany() - .HasForeignKey("ColorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairTaint") - .WithMany() - .HasForeignKey("TaintId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.DeviceDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.HasOne("Yavsc.Models.IT.Evolution.Feature") - .WithMany() - .HasForeignKey("FeatureId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.HasOne("Yavsc.Models.Messaging.Notification") - .WithMany() - .HasForeignKey("NotificationId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.InstrumentRating", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings") - .WithMany() - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings") - .WithMany() - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ExecutorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.Relationship.PostalAddress") - .WithMany() - .HasForeignKey("AddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("BrusherProfileUserId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PayPalPaymentCreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Streaming.LiveFlow", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings") - .WithMany() - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("WorkingForId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Access.CircleAuthorizationToFile", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Blog.BlogTrad", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("TraducerId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.EMailing.MailingTemplate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ManagerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("SuccessorId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference") - .WithMany() - .HasForeignKey("GitId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.HasOne("Yavsc.Server.Models.IT.Project") - .WithMany() - .HasForeignKey("ProjectId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2019/20190819221632_instRateWInst.cs b/src/Yavsc.Server/Migrations/2019/20190819221632_instRateWInst.cs deleted file mode 100644 index 65b1208d..00000000 --- a/src/Yavsc.Server/Migrations/2019/20190819221632_instRateWInst.cs +++ /dev/null @@ -1,971 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class instRateWInst : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_Ban_ApplicationUser_TargetId", table: "Ban"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_UserId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_BlogPost_PostId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_Tag_TagId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_Comment_ApplicationUser_AuthorId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Comment_BlogPost_PostId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Schedule_ApplicationUser_OwnerId", table: "Schedule"); - migrationBuilder.DropForeignKey(name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", table: "ChatConnection"); - migrationBuilder.DropForeignKey(name: "FK_ChatRoomAccess_ApplicationUser_UserId", table: "ChatRoomAccess"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_InstrumentRating_Instrument_InstrumentId", table: "InstrumentRating"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PayPalPayment_ApplicationUser_ExecutorId", table: "PayPalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Contact_PostalAddress_AddressId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_LiveFlow_ApplicationUser_OwnerId", table: "LiveFlow"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToFile_Circle_CircleId", table: "CircleAuthorizationToFile"); - migrationBuilder.DropForeignKey(name: "FK_MailingTemplate_ApplicationUser_ManagerId", table: "MailingTemplate"); - migrationBuilder.DropForeignKey(name: "FK_MailingTemplate_ApplicationUser_SuccessorId", table: "MailingTemplate"); - migrationBuilder.DropForeignKey(name: "FK_Project_Activity_ActivityCode", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_ApplicationUser_ClientId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_GitRepositoryReference_GitId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_PerformerProfile_PerformerId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_ProjectBuildConfiguration_Project_ProjectId", table: "ProjectBuildConfiguration"); - migrationBuilder.Sql("delete from \"InstrumentRating\" where \"InstrumentId\" is null" ); - migrationBuilder.AlterColumn( - name: "InstrumentId", - table: "InstrumentRating", - nullable: false); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Ban_ApplicationUser_TargetId", - table: "Ban", - column: "TargetId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_UserId", - table: "BlackListed", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_BlogPost_PostId", - table: "BlogTag", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_Tag_TagId", - table: "BlogTag", - column: "TagId", - principalTable: "Tag", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Comment_ApplicationUser_AuthorId", - table: "Comment", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Comment_BlogPost_PostId", - table: "Comment", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Schedule_ApplicationUser_OwnerId", - table: "Schedule", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", - table: "ChatConnection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_ChatRoomAccess_ApplicationUser_UserId", - table: "ChatRoomAccess", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_InstrumentRating_Instrument_InstrumentId", - table: "InstrumentRating", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PayPalPayment_ApplicationUser_ExecutorId", - table: "PayPalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Contact_PostalAddress_AddressId", - table: "Contact", - column: "AddressId", - principalTable: "PostalAddress", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_LiveFlow_ApplicationUser_OwnerId", - table: "LiveFlow", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToFile_Circle_CircleId", - table: "CircleAuthorizationToFile", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_MailingTemplate_ApplicationUser_ManagerId", - table: "MailingTemplate", - column: "ManagerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_MailingTemplate_ApplicationUser_SuccessorId", - table: "MailingTemplate", - column: "SuccessorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_Activity_ActivityCode", - table: "Project", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_ApplicationUser_ClientId", - table: "Project", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_GitRepositoryReference_GitId", - table: "Project", - column: "GitId", - principalTable: "GitRepositoryReference", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_PerformerProfile_PerformerId", - table: "Project", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_ProjectBuildConfiguration_Project_ProjectId", - table: "ProjectBuildConfiguration", - column: "ProjectId", - principalTable: "Project", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_Ban_ApplicationUser_TargetId", table: "Ban"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_UserId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_BlogPost_PostId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_Tag_TagId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_Comment_ApplicationUser_AuthorId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Comment_BlogPost_PostId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Schedule_ApplicationUser_OwnerId", table: "Schedule"); - migrationBuilder.DropForeignKey(name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", table: "ChatConnection"); - migrationBuilder.DropForeignKey(name: "FK_ChatRoomAccess_ApplicationUser_UserId", table: "ChatRoomAccess"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_InstrumentRating_Instrument_InstrumentId", table: "InstrumentRating"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PayPalPayment_ApplicationUser_ExecutorId", table: "PayPalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Contact_PostalAddress_AddressId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_LiveFlow_ApplicationUser_OwnerId", table: "LiveFlow"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToFile_Circle_CircleId", table: "CircleAuthorizationToFile"); - migrationBuilder.DropForeignKey(name: "FK_MailingTemplate_ApplicationUser_ManagerId", table: "MailingTemplate"); - migrationBuilder.DropForeignKey(name: "FK_MailingTemplate_ApplicationUser_SuccessorId", table: "MailingTemplate"); - migrationBuilder.DropForeignKey(name: "FK_Project_Activity_ActivityCode", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_ApplicationUser_ClientId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_GitRepositoryReference_GitId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_PerformerProfile_PerformerId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_ProjectBuildConfiguration_Project_ProjectId", table: "ProjectBuildConfiguration"); - migrationBuilder.AlterColumn( - name: "InstrumentId", - table: "InstrumentRating", - nullable: true); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Ban_ApplicationUser_TargetId", - table: "Ban", - column: "TargetId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_UserId", - table: "BlackListed", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_BlogPost_PostId", - table: "BlogTag", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_Tag_TagId", - table: "BlogTag", - column: "TagId", - principalTable: "Tag", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Comment_ApplicationUser_AuthorId", - table: "Comment", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Comment_BlogPost_PostId", - table: "Comment", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Schedule_ApplicationUser_OwnerId", - table: "Schedule", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", - table: "ChatConnection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_ChatRoomAccess_ApplicationUser_UserId", - table: "ChatRoomAccess", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_InstrumentRating_Instrument_InstrumentId", - table: "InstrumentRating", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PayPalPayment_ApplicationUser_ExecutorId", - table: "PayPalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Contact_PostalAddress_AddressId", - table: "Contact", - column: "AddressId", - principalTable: "PostalAddress", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_LiveFlow_ApplicationUser_OwnerId", - table: "LiveFlow", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToFile_Circle_CircleId", - table: "CircleAuthorizationToFile", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_MailingTemplate_ApplicationUser_ManagerId", - table: "MailingTemplate", - column: "ManagerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_MailingTemplate_ApplicationUser_SuccessorId", - table: "MailingTemplate", - column: "SuccessorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_Activity_ActivityCode", - table: "Project", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_ApplicationUser_ClientId", - table: "Project", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_GitRepositoryReference_GitId", - table: "Project", - column: "GitId", - principalTable: "GitRepositoryReference", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_PerformerProfile_PerformerId", - table: "Project", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_ProjectBuildConfiguration_Project_ProjectId", - table: "ProjectBuildConfiguration", - column: "ProjectId", - principalTable: "Project", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2019/20190826132314_bugDescriptionLength.Designer.cs b/src/Yavsc.Server/Migrations/2019/20190826132314_bugDescriptionLength.Designer.cs deleted file mode 100644 index 32c8f81d..00000000 --- a/src/Yavsc.Server/Migrations/2019/20190826132314_bugDescriptionLength.Designer.cs +++ /dev/null @@ -1,2108 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20190826132314_bugDescriptionLength")] - partial class bugDescriptionLength - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Abstract.Identity.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Reason") - .IsRequired(); - - b.Property("TargetId") - .IsRequired(); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId"); - - b.Property("BlogPostId"); - - b.HasKey("CircleId", "BlogPostId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("AllowMonthlyEmail"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512) - .HasAnnotation("Relational:DefaultValue", "/images/Users/icon_user.png") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("DedicatedGoogleCalendar") - .HasAnnotation("MaxLength", 512); - - b.Property("DiskQuota") - .HasAnnotation("Relational:DefaultValue", "524288000") - .HasAnnotation("Relational:DefaultValueType", "System.Int64"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("MaxFileSize"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Count"); - - b.Property("Currency"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 256); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType") - .IsRequired(); - - b.Property("Description"); - - b.Property("OwnerId"); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content") - .HasAnnotation("MaxLength", 56224); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Lang") - .HasAnnotation("MaxLength", 8); - - b.Property("Photo") - .HasAnnotation("MaxLength", 1024); - - b.Property("Rate"); - - b.Property("Title") - .HasAnnotation("MaxLength", 1024); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId") - .IsRequired(); - - b.Property("Content") - .HasAnnotation("MaxLength", 1024); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ParentId"); - - b.Property("PostId"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Period", b => - { - b.Property("Start"); - - b.Property("End"); - - b.HasKey("Start", "End"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Property("OwnerId"); - - b.HasKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PeriodEnd"); - - b.Property("PeriodStart"); - - b.Property("Reccurence"); - - b.Property("ScheduleOwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId") - .IsRequired(); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.Property("Name") - .HasAnnotation("MaxLength", 255); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("LatestJoinPart"); - - b.Property("OwnerId"); - - b.Property("Topic"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Name"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomAccess", b => - { - b.Property("ChannelName"); - - b.Property("UserId"); - - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Level"); - - b.HasKey("ChannelName", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Cratie.Option", b => - { - b.Property("Code"); - - b.Property("CodeScrutin"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code", "CodeScrutin"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Blue"); - - b.Property("Green"); - - b.Property("Name"); - - b.Property("Red"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id"); - - b.Property("Summary"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId"); - - b.Property("ActionDistance"); - - b.Property("CarePrice"); - - b.Property("FlatFeeDiscount"); - - b.Property("HalfBalayagePrice"); - - b.Property("HalfBrushingPrice"); - - b.Property("HalfColorPrice"); - - b.Property("HalfDefrisPrice"); - - b.Property("HalfFoldingPrice"); - - b.Property("HalfMechPrice"); - - b.Property("HalfMultiColorPrice"); - - b.Property("HalfPermanentPrice"); - - b.Property("KidCutPrice"); - - b.Property("LongBalayagePrice"); - - b.Property("LongBrushingPrice"); - - b.Property("LongColorPrice"); - - b.Property("LongDefrisPrice"); - - b.Property("LongFoldingPrice"); - - b.Property("LongMechPrice"); - - b.Property("LongMultiColorPrice"); - - b.Property("LongPermanentPrice"); - - b.Property("ManBrushPrice"); - - b.Property("ManCutPrice"); - - b.Property("ScheduleOwnerId"); - - b.Property("ShampooPrice"); - - b.Property("ShortBalayagePrice"); - - b.Property("ShortBrushingPrice"); - - b.Property("ShortColorPrice"); - - b.Property("ShortDefrisPrice"); - - b.Property("ShortFoldingPrice"); - - b.Property("ShortMechPrice"); - - b.Property("ShortMultiColorPrice"); - - b.Property("ShortPermanentPrice"); - - b.Property("WomenHalfCutPrice"); - - b.Property("WomenLongCutPrice"); - - b.Property("WomenShortCutPrice"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("AdditionalInfo") - .HasAnnotation("MaxLength", 512); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("PrestationId"); - - b.Property("Previsional"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("SelectedProfileUserId"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Cares"); - - b.Property("Cut"); - - b.Property("Dressing"); - - b.Property("Gender"); - - b.Property("Length"); - - b.Property("Shampoo"); - - b.Property("Tech"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PrestationId"); - - b.Property("QueryId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Brand"); - - b.Property("ColorId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.Property("TaintId"); - - b.Property("PrestationId"); - - b.HasKey("TaintId", "PrestationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.DeviceDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("LatestActivityUpdate"); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Evolution.Feature", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description") - .HasAnnotation("MaxLength", 10240); - - b.Property("ShortName") - .HasAnnotation("MaxLength", 256); - - b.Property("Status"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("FeatureId"); - - b.Property("Status"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Depth"); - - b.Property("Description"); - - b.Property("Height"); - - b.Property("Name"); - - b.Property("Price"); - - b.Property("Public"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("For"); - - b.Property("Message"); - - b.Property("OwnerId"); - - b.Property("Sender"); - - b.Property("Topic"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.Property("UserId"); - - b.Property("NotificationId"); - - b.HasKey("UserId", "NotificationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Target"); - - b.Property("body") - .IsRequired(); - - b.Property("click_action") - .IsRequired(); - - b.Property("color"); - - b.Property("icon") - .HasAnnotation("Relational:DefaultValue", "exclam") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("sound"); - - b.Property("tag"); - - b.Property("title") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.InstrumentRating", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("InstrumentId"); - - b.Property("OwnerId"); - - b.Property("Rate"); - - b.HasKey("Id"); - - b.HasAlternateKey("InstrumentId", "OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId"); - - b.Property("DjSettingsUserId"); - - b.Property("GeneralSettingsUserId"); - - b.Property("Rate"); - - b.Property("TendencyId"); - - b.HasKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId"); - - b.Property("SoundCloudId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId"); - - b.Property("UserId"); - - b.HasKey("InstrumentId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Property("CreationToken"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ExecutorId") - .IsRequired(); - - b.Property("OrderReference"); - - b.Property("PaypalPayerId"); - - b.Property("State"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("CreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name") - .IsRequired(); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId"); - - b.Property("CircleId"); - - b.HasKey("MemberId", "CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("AddressId"); - - b.Property("ApplicationUserId"); - - b.Property("EMail"); - - b.Property("Name"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.Property("HRef"); - - b.Property("Method"); - - b.Property("BrusherProfileUserId"); - - b.Property("ContentType"); - - b.Property("PayPalPaymentCreationToken"); - - b.Property("Rel"); - - b.HasKey("HRef", "Method"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostalAddress", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("City"); - - b.Property("Country"); - - b.Property("PostalCode"); - - b.Property("Province"); - - b.Property("State"); - - b.Property("Street1"); - - b.Property("Street2"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Streaming.LiveFlow", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DifferedFileName") - .HasAnnotation("MaxLength", 255); - - b.Property("MediaType") - .HasAnnotation("MaxLength", 127); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Pitch") - .HasAnnotation("MaxLength", 1023); - - b.Property("SequenceNumber"); - - b.Property("Title") - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("Hidden"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("SettingsClassName"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActionName"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FormationSettingsUserId"); - - b.Property("PerformerId"); - - b.Property("WorkingForId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients"); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId"); - - b.Property("DisplayName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationType"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("DoesCode", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Access.CircleAuthorizationToFile", b => - { - b.Property("CircleId"); - - b.Property("FullPath"); - - b.HasKey("CircleId", "FullPath"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Blog.BlogTrad", b => - { - b.Property("PostId"); - - b.Property("Lang"); - - b.Property("Body"); - - b.Property("Title"); - - b.Property("TraducerId"); - - b.HasKey("PostId", "Lang"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.EMailing.MailingTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Body") - .HasAnnotation("MaxLength", 65536); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ManagerId") - .IsRequired(); - - b.Property("ReplyToAddress"); - - b.Property("SuccessorId") - .IsRequired(); - - b.Property("ToSend"); - - b.Property("Topic") - .HasAnnotation("MaxLength", 128); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("GitId"); - - b.Property("Name") - .IsRequired(); - - b.Property("OwnerId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.Property("Version"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.Property("ProjectId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Branch") - .HasAnnotation("MaxLength", 512); - - b.Property("OwnerId") - .HasAnnotation("MaxLength", 1024); - - b.Property("Path") - .IsRequired(); - - b.Property("Url") - .HasAnnotation("MaxLength", 2048); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("TargetId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("BlogPostId"); - - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("PostId"); - - b.HasOne("Yavsc.Models.Relationship.Tag") - .WithMany() - .HasForeignKey("TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - - b.HasOne("Yavsc.Models.Blog.Comment") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Calendar.Period") - .WithMany() - .HasForeignKey("PeriodStart", "PeriodEnd"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomAccess", b => - { - b.HasOne("Yavsc.Models.Chat.ChatRoom") - .WithMany() - .HasForeignKey("ChannelName"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("SelectedProfileUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery") - .WithMany() - .HasForeignKey("QueryId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color") - .WithMany() - .HasForeignKey("ColorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairTaint") - .WithMany() - .HasForeignKey("TaintId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.DeviceDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.HasOne("Yavsc.Models.IT.Evolution.Feature") - .WithMany() - .HasForeignKey("FeatureId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.HasOne("Yavsc.Models.Messaging.Notification") - .WithMany() - .HasForeignKey("NotificationId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.InstrumentRating", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings") - .WithMany() - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings") - .WithMany() - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ExecutorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.Relationship.PostalAddress") - .WithMany() - .HasForeignKey("AddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("BrusherProfileUserId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PayPalPaymentCreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Streaming.LiveFlow", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings") - .WithMany() - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("WorkingForId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Access.CircleAuthorizationToFile", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Blog.BlogTrad", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("TraducerId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.EMailing.MailingTemplate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ManagerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("SuccessorId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference") - .WithMany() - .HasForeignKey("GitId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.HasOne("Yavsc.Server.Models.IT.Project") - .WithMany() - .HasForeignKey("ProjectId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2019/20190826132314_bugDescriptionLength.cs b/src/Yavsc.Server/Migrations/2019/20190826132314_bugDescriptionLength.cs deleted file mode 100644 index 9295e86a..00000000 --- a/src/Yavsc.Server/Migrations/2019/20190826132314_bugDescriptionLength.cs +++ /dev/null @@ -1,967 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class bugDescriptionLength : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_Ban_ApplicationUser_TargetId", table: "Ban"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_UserId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_BlogPost_PostId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_Tag_TagId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_Comment_ApplicationUser_AuthorId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Comment_BlogPost_PostId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Schedule_ApplicationUser_OwnerId", table: "Schedule"); - migrationBuilder.DropForeignKey(name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", table: "ChatConnection"); - migrationBuilder.DropForeignKey(name: "FK_ChatRoomAccess_ApplicationUser_UserId", table: "ChatRoomAccess"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_InstrumentRating_Instrument_InstrumentId", table: "InstrumentRating"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PayPalPayment_ApplicationUser_ExecutorId", table: "PayPalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Contact_PostalAddress_AddressId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_LiveFlow_ApplicationUser_OwnerId", table: "LiveFlow"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToFile_Circle_CircleId", table: "CircleAuthorizationToFile"); - migrationBuilder.DropForeignKey(name: "FK_MailingTemplate_ApplicationUser_ManagerId", table: "MailingTemplate"); - migrationBuilder.DropForeignKey(name: "FK_MailingTemplate_ApplicationUser_SuccessorId", table: "MailingTemplate"); - migrationBuilder.DropForeignKey(name: "FK_Project_Activity_ActivityCode", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_ApplicationUser_ClientId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_GitRepositoryReference_GitId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_PerformerProfile_PerformerId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_ProjectBuildConfiguration_Project_ProjectId", table: "ProjectBuildConfiguration"); - migrationBuilder.AddUniqueConstraint( - name: "AK_InstrumentRating_InstrumentId_OwnerId", - table: "InstrumentRating", - columns: new[] { "InstrumentId", "OwnerId" }); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Ban_ApplicationUser_TargetId", - table: "Ban", - column: "TargetId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_UserId", - table: "BlackListed", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_BlogPost_PostId", - table: "BlogTag", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_Tag_TagId", - table: "BlogTag", - column: "TagId", - principalTable: "Tag", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Comment_ApplicationUser_AuthorId", - table: "Comment", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Comment_BlogPost_PostId", - table: "Comment", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Schedule_ApplicationUser_OwnerId", - table: "Schedule", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", - table: "ChatConnection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_ChatRoomAccess_ApplicationUser_UserId", - table: "ChatRoomAccess", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_InstrumentRating_Instrument_InstrumentId", - table: "InstrumentRating", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PayPalPayment_ApplicationUser_ExecutorId", - table: "PayPalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Contact_PostalAddress_AddressId", - table: "Contact", - column: "AddressId", - principalTable: "PostalAddress", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_LiveFlow_ApplicationUser_OwnerId", - table: "LiveFlow", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToFile_Circle_CircleId", - table: "CircleAuthorizationToFile", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_MailingTemplate_ApplicationUser_ManagerId", - table: "MailingTemplate", - column: "ManagerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_MailingTemplate_ApplicationUser_SuccessorId", - table: "MailingTemplate", - column: "SuccessorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_Activity_ActivityCode", - table: "Project", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_ApplicationUser_ClientId", - table: "Project", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_GitRepositoryReference_GitId", - table: "Project", - column: "GitId", - principalTable: "GitRepositoryReference", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_PerformerProfile_PerformerId", - table: "Project", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_ProjectBuildConfiguration_Project_ProjectId", - table: "ProjectBuildConfiguration", - column: "ProjectId", - principalTable: "Project", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_Ban_ApplicationUser_TargetId", table: "Ban"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_UserId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_BlogPost_PostId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_Tag_TagId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_Comment_ApplicationUser_AuthorId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Comment_BlogPost_PostId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Schedule_ApplicationUser_OwnerId", table: "Schedule"); - migrationBuilder.DropForeignKey(name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", table: "ChatConnection"); - migrationBuilder.DropForeignKey(name: "FK_ChatRoomAccess_ApplicationUser_UserId", table: "ChatRoomAccess"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_InstrumentRating_Instrument_InstrumentId", table: "InstrumentRating"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PayPalPayment_ApplicationUser_ExecutorId", table: "PayPalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Contact_PostalAddress_AddressId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_LiveFlow_ApplicationUser_OwnerId", table: "LiveFlow"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToFile_Circle_CircleId", table: "CircleAuthorizationToFile"); - migrationBuilder.DropForeignKey(name: "FK_MailingTemplate_ApplicationUser_ManagerId", table: "MailingTemplate"); - migrationBuilder.DropForeignKey(name: "FK_MailingTemplate_ApplicationUser_SuccessorId", table: "MailingTemplate"); - migrationBuilder.DropForeignKey(name: "FK_Project_Activity_ActivityCode", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_ApplicationUser_ClientId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_GitRepositoryReference_GitId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_PerformerProfile_PerformerId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_ProjectBuildConfiguration_Project_ProjectId", table: "ProjectBuildConfiguration"); - migrationBuilder.DropUniqueConstraint(name: "AK_InstrumentRating_InstrumentId_OwnerId", table: "InstrumentRating"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Ban_ApplicationUser_TargetId", - table: "Ban", - column: "TargetId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_UserId", - table: "BlackListed", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_BlogPost_PostId", - table: "BlogTag", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_Tag_TagId", - table: "BlogTag", - column: "TagId", - principalTable: "Tag", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Comment_ApplicationUser_AuthorId", - table: "Comment", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Comment_BlogPost_PostId", - table: "Comment", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Schedule_ApplicationUser_OwnerId", - table: "Schedule", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", - table: "ChatConnection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_ChatRoomAccess_ApplicationUser_UserId", - table: "ChatRoomAccess", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_InstrumentRating_Instrument_InstrumentId", - table: "InstrumentRating", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PayPalPayment_ApplicationUser_ExecutorId", - table: "PayPalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Contact_PostalAddress_AddressId", - table: "Contact", - column: "AddressId", - principalTable: "PostalAddress", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_LiveFlow_ApplicationUser_OwnerId", - table: "LiveFlow", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToFile_Circle_CircleId", - table: "CircleAuthorizationToFile", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_MailingTemplate_ApplicationUser_ManagerId", - table: "MailingTemplate", - column: "ManagerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_MailingTemplate_ApplicationUser_SuccessorId", - table: "MailingTemplate", - column: "SuccessorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_Activity_ActivityCode", - table: "Project", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_ApplicationUser_ClientId", - table: "Project", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_GitRepositoryReference_GitId", - table: "Project", - column: "GitId", - principalTable: "GitRepositoryReference", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_PerformerProfile_PerformerId", - table: "Project", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_ProjectBuildConfiguration_Project_ProjectId", - table: "ProjectBuildConfiguration", - column: "ProjectId", - principalTable: "Project", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2019/T1/20190103110008_liveSetup.Designer.cs b/src/Yavsc.Server/Migrations/2019/T1/20190103110008_liveSetup.Designer.cs deleted file mode 100644 index 058d54be..00000000 --- a/src/Yavsc.Server/Migrations/2019/T1/20190103110008_liveSetup.Designer.cs +++ /dev/null @@ -1,1976 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20190103110008_liveSetup")] - partial class liveSetup - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Abstract.Identity.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId"); - - b.Property("BlogPostId"); - - b.HasKey("CircleId", "BlogPostId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("AllowMonthlyEmail"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512) - .HasAnnotation("Relational:DefaultValue", "/images/Users/icon_user.png") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar") - .HasAnnotation("MaxLength", 512); - - b.Property("DiskQuota") - .HasAnnotation("Relational:DefaultValue", "524288000") - .HasAnnotation("Relational:DefaultValueType", "System.Int64"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("MaxFileSize"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Count"); - - b.Property("Currency"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 256); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType") - .IsRequired(); - - b.Property("Description"); - - b.Property("OwnerId"); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content") - .HasAnnotation("MaxLength", 56224); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Lang") - .HasAnnotation("MaxLength", 8); - - b.Property("Photo") - .HasAnnotation("MaxLength", 1024); - - b.Property("Rate"); - - b.Property("Title") - .HasAnnotation("MaxLength", 1024); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId") - .IsRequired(); - - b.Property("Content"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ParentId"); - - b.Property("PostId"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Period", b => - { - b.Property("Start"); - - b.Property("End"); - - b.HasKey("Start", "End"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Property("OwnerId"); - - b.HasKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PeriodEnd"); - - b.Property("PeriodStart"); - - b.Property("Reccurence"); - - b.Property("ScheduleOwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId") - .IsRequired(); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.Property("Name") - .HasAnnotation("MaxLength", 255); - - b.Property("ApplicationUserId"); - - b.Property("Topic") - .HasAnnotation("MaxLength", 1023); - - b.HasKey("Name"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomPresence", b => - { - b.Property("ChannelName"); - - b.Property("ChatUserConnectionId"); - - b.Property("Level"); - - b.HasKey("ChannelName", "ChatUserConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Cratie.Option", b => - { - b.Property("Code"); - - b.Property("CodeScrutin"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code", "CodeScrutin"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Blue"); - - b.Property("Green"); - - b.Property("Name"); - - b.Property("Red"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id"); - - b.Property("Summary"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId"); - - b.Property("ActionDistance"); - - b.Property("CarePrice"); - - b.Property("FlatFeeDiscount"); - - b.Property("HalfBalayagePrice"); - - b.Property("HalfBrushingPrice"); - - b.Property("HalfColorPrice"); - - b.Property("HalfDefrisPrice"); - - b.Property("HalfFoldingPrice"); - - b.Property("HalfMechPrice"); - - b.Property("HalfMultiColorPrice"); - - b.Property("HalfPermanentPrice"); - - b.Property("KidCutPrice"); - - b.Property("LongBalayagePrice"); - - b.Property("LongBrushingPrice"); - - b.Property("LongColorPrice"); - - b.Property("LongDefrisPrice"); - - b.Property("LongFoldingPrice"); - - b.Property("LongMechPrice"); - - b.Property("LongMultiColorPrice"); - - b.Property("LongPermanentPrice"); - - b.Property("ManBrushPrice"); - - b.Property("ManCutPrice"); - - b.Property("ScheduleOwnerId"); - - b.Property("ShampooPrice"); - - b.Property("ShortBalayagePrice"); - - b.Property("ShortBrushingPrice"); - - b.Property("ShortColorPrice"); - - b.Property("ShortDefrisPrice"); - - b.Property("ShortFoldingPrice"); - - b.Property("ShortMechPrice"); - - b.Property("ShortMultiColorPrice"); - - b.Property("ShortPermanentPrice"); - - b.Property("WomenHalfCutPrice"); - - b.Property("WomenLongCutPrice"); - - b.Property("WomenShortCutPrice"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("AdditionalInfo") - .HasAnnotation("MaxLength", 512); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("PrestationId"); - - b.Property("Previsional"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("SelectedProfileUserId"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Cares"); - - b.Property("Cut"); - - b.Property("Dressing"); - - b.Property("Gender"); - - b.Property("Length"); - - b.Property("Shampoo"); - - b.Property("Tech"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PrestationId"); - - b.Property("QueryId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Brand"); - - b.Property("ColorId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.Property("TaintId"); - - b.Property("PrestationId"); - - b.HasKey("TaintId", "PrestationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("LatestActivityUpdate"); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Evolution.Feature", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("ShortName"); - - b.Property("Status"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("FeatureId"); - - b.Property("Status"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Depth"); - - b.Property("Description"); - - b.Property("Height"); - - b.Property("Name"); - - b.Property("Price"); - - b.Property("Public"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("For"); - - b.Property("Message"); - - b.Property("OwnerId"); - - b.Property("Sender"); - - b.Property("Topic"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.Property("UserId"); - - b.Property("NotificationId"); - - b.HasKey("UserId", "NotificationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Target"); - - b.Property("body") - .IsRequired(); - - b.Property("click_action") - .IsRequired(); - - b.Property("color"); - - b.Property("icon") - .HasAnnotation("Relational:DefaultValue", "exclam") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("sound"); - - b.Property("tag"); - - b.Property("title") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId"); - - b.Property("DjSettingsUserId"); - - b.Property("GeneralSettingsUserId"); - - b.Property("Rate"); - - b.Property("TendencyId"); - - b.HasKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId"); - - b.Property("SoundCloudId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId"); - - b.Property("UserId"); - - b.HasKey("InstrumentId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Property("CreationToken"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ExecutorId") - .IsRequired(); - - b.Property("OrderReference"); - - b.Property("PaypalPayerId"); - - b.Property("State"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("CreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId"); - - b.Property("CircleId"); - - b.HasKey("MemberId", "CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.Property("HRef"); - - b.Property("Method"); - - b.Property("BrusherProfileUserId"); - - b.Property("ContentType"); - - b.Property("PayPalPaymentCreationToken"); - - b.Property("Rel"); - - b.HasKey("HRef", "Method"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Streaming.LiveFlow", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DifferedFileName"); - - b.Property("MediaType"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Pitch"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("Hidden"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("SettingsClassName"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActionName"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FormationSettingsUserId"); - - b.Property("PerformerId"); - - b.Property("WorkingForId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients"); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationType"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("DoesCode", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Blog.BlogTrad", b => - { - b.Property("PostId"); - - b.Property("Lang"); - - b.Property("Body"); - - b.Property("Title"); - - b.Property("TraducerId"); - - b.HasKey("PostId", "Lang"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.EMailing.MailingTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Body") - .HasAnnotation("MaxLength", 65536); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ManagerId"); - - b.Property("ReplyToAddress"); - - b.Property("ToSend"); - - b.Property("Topic") - .HasAnnotation("MaxLength", 128); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("GitId"); - - b.Property("Name") - .IsRequired(); - - b.Property("OwnerId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.Property("Version"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.Property("ProjectId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Branch") - .HasAnnotation("MaxLength", 512); - - b.Property("OwnerId") - .HasAnnotation("MaxLength", 1024); - - b.Property("Path") - .IsRequired(); - - b.Property("Url") - .HasAnnotation("MaxLength", 2048); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("BlogPostId"); - - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("PostId"); - - b.HasOne("Yavsc.Models.Relationship.Tag") - .WithMany() - .HasForeignKey("TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - - b.HasOne("Yavsc.Models.Blog.Comment") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Calendar.Period") - .WithMany() - .HasForeignKey("PeriodStart", "PeriodEnd"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomPresence", b => - { - b.HasOne("Yavsc.Models.Chat.ChatRoom") - .WithMany() - .HasForeignKey("ChannelName"); - - b.HasOne("Yavsc.Models.Chat.ChatConnection") - .WithMany() - .HasForeignKey("ChatUserConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("SelectedProfileUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery") - .WithMany() - .HasForeignKey("QueryId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color") - .WithMany() - .HasForeignKey("ColorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairTaint") - .WithMany() - .HasForeignKey("TaintId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.HasOne("Yavsc.Models.IT.Evolution.Feature") - .WithMany() - .HasForeignKey("FeatureId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.HasOne("Yavsc.Models.Messaging.Notification") - .WithMany() - .HasForeignKey("NotificationId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings") - .WithMany() - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings") - .WithMany() - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ExecutorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("BrusherProfileUserId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PayPalPaymentCreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Streaming.LiveFlow", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings") - .WithMany() - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("WorkingForId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Blog.BlogTrad", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("TraducerId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.EMailing.MailingTemplate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ManagerId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference") - .WithMany() - .HasForeignKey("GitId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.HasOne("Yavsc.Server.Models.IT.Project") - .WithMany() - .HasForeignKey("ProjectId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2019/T1/20190103110008_liveSetup.cs b/src/Yavsc.Server/Migrations/2019/T1/20190103110008_liveSetup.cs deleted file mode 100644 index 76dd257b..00000000 --- a/src/Yavsc.Server/Migrations/2019/T1/20190103110008_liveSetup.cs +++ /dev/null @@ -1,841 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class liveSetup : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_BlogPost_PostId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_Tag_TagId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_Comment_ApplicationUser_AuthorId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Comment_BlogPost_PostId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Schedule_ApplicationUser_OwnerId", table: "Schedule"); - migrationBuilder.DropForeignKey(name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", table: "ChatConnection"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PayPalPayment_ApplicationUser_ExecutorId", table: "PayPalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_Project_Activity_ActivityCode", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_ApplicationUser_ClientId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_GitRepositoryReference_GitId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_PerformerProfile_PerformerId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_ProjectBuildConfiguration_Project_ProjectId", table: "ProjectBuildConfiguration"); - migrationBuilder.CreateTable( - name: "LiveFlow", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("Npgsql:Serial", true), - DifferedFileName = table.Column(nullable: true), - MediaType = table.Column(nullable: true), - OwnerId = table.Column(nullable: false), - Pitch = table.Column(nullable: true), - Title = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_LiveFlow", x => x.Id); - table.ForeignKey( - name: "FK_LiveFlow_ApplicationUser_OwnerId", - column: x => x.OwnerId, - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_BlogPost_PostId", - table: "BlogTag", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_Tag_TagId", - table: "BlogTag", - column: "TagId", - principalTable: "Tag", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Comment_ApplicationUser_AuthorId", - table: "Comment", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Comment_BlogPost_PostId", - table: "Comment", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Schedule_ApplicationUser_OwnerId", - table: "Schedule", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", - table: "ChatConnection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PayPalPayment_ApplicationUser_ExecutorId", - table: "PayPalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_Activity_ActivityCode", - table: "Project", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_ApplicationUser_ClientId", - table: "Project", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_GitRepositoryReference_GitId", - table: "Project", - column: "GitId", - principalTable: "GitRepositoryReference", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_PerformerProfile_PerformerId", - table: "Project", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_ProjectBuildConfiguration_Project_ProjectId", - table: "ProjectBuildConfiguration", - column: "ProjectId", - principalTable: "Project", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_BlogPost_PostId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_Tag_TagId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_Comment_ApplicationUser_AuthorId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Comment_BlogPost_PostId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Schedule_ApplicationUser_OwnerId", table: "Schedule"); - migrationBuilder.DropForeignKey(name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", table: "ChatConnection"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PayPalPayment_ApplicationUser_ExecutorId", table: "PayPalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_Project_Activity_ActivityCode", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_ApplicationUser_ClientId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_GitRepositoryReference_GitId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_PerformerProfile_PerformerId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_ProjectBuildConfiguration_Project_ProjectId", table: "ProjectBuildConfiguration"); - migrationBuilder.DropTable("LiveFlow"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_BlogPost_PostId", - table: "BlogTag", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_Tag_TagId", - table: "BlogTag", - column: "TagId", - principalTable: "Tag", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Comment_ApplicationUser_AuthorId", - table: "Comment", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Comment_BlogPost_PostId", - table: "Comment", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Schedule_ApplicationUser_OwnerId", - table: "Schedule", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", - table: "ChatConnection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PayPalPayment_ApplicationUser_ExecutorId", - table: "PayPalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_Activity_ActivityCode", - table: "Project", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_ApplicationUser_ClientId", - table: "Project", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_GitRepositoryReference_GitId", - table: "Project", - column: "GitId", - principalTable: "GitRepositoryReference", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_PerformerProfile_PerformerId", - table: "Project", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_ProjectBuildConfiguration_Project_ProjectId", - table: "ProjectBuildConfiguration", - column: "ProjectId", - principalTable: "Project", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2019/T1/20190126133339_banTarget.Designer.cs b/src/Yavsc.Server/Migrations/2019/T1/20190126133339_banTarget.Designer.cs deleted file mode 100644 index 3283f106..00000000 --- a/src/Yavsc.Server/Migrations/2019/T1/20190126133339_banTarget.Designer.cs +++ /dev/null @@ -1,2007 +0,0 @@ -// -// MyHub.cs -// -// Author: -// Paul Schneider -// -// Copyright (c) 2016 GNU GPL -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public License -// along with this program. If not, see . -using System; - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20190126133339_banTarget")] - partial class banTarget - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Abstract.Identity.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("TargetId") - .IsRequired(); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId"); - - b.Property("BlogPostId"); - - b.HasKey("CircleId", "BlogPostId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("AllowMonthlyEmail"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512) - .HasAnnotation("Relational:DefaultValue", "/images/Users/icon_user.png") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar") - .HasAnnotation("MaxLength", 512); - - b.Property("DiskQuota") - .HasAnnotation("Relational:DefaultValue", "524288000") - .HasAnnotation("Relational:DefaultValueType", "System.Int64"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("MaxFileSize"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Count"); - - b.Property("Currency"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 256); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType") - .IsRequired(); - - b.Property("Description"); - - b.Property("OwnerId"); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content") - .HasAnnotation("MaxLength", 56224); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Lang") - .HasAnnotation("MaxLength", 8); - - b.Property("Photo") - .HasAnnotation("MaxLength", 1024); - - b.Property("Rate"); - - b.Property("Title") - .HasAnnotation("MaxLength", 1024); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId") - .IsRequired(); - - b.Property("Content"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ParentId"); - - b.Property("PostId"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Period", b => - { - b.Property("Start"); - - b.Property("End"); - - b.HasKey("Start", "End"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Property("OwnerId"); - - b.HasKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PeriodEnd"); - - b.Property("PeriodStart"); - - b.Property("Reccurence"); - - b.Property("ScheduleOwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId") - .IsRequired(); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.Property("Name") - .HasAnnotation("MaxLength", 255); - - b.Property("ApplicationUserId"); - - b.Property("Topic") - .HasAnnotation("MaxLength", 1023); - - b.HasKey("Name"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomPresence", b => - { - b.Property("ChannelName"); - - b.Property("ChatUserConnectionId"); - - b.Property("Level"); - - b.HasKey("ChannelName", "ChatUserConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Cratie.Option", b => - { - b.Property("Code"); - - b.Property("CodeScrutin"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code", "CodeScrutin"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Blue"); - - b.Property("Green"); - - b.Property("Name"); - - b.Property("Red"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id"); - - b.Property("Summary"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId"); - - b.Property("ActionDistance"); - - b.Property("CarePrice"); - - b.Property("FlatFeeDiscount"); - - b.Property("HalfBalayagePrice"); - - b.Property("HalfBrushingPrice"); - - b.Property("HalfColorPrice"); - - b.Property("HalfDefrisPrice"); - - b.Property("HalfFoldingPrice"); - - b.Property("HalfMechPrice"); - - b.Property("HalfMultiColorPrice"); - - b.Property("HalfPermanentPrice"); - - b.Property("KidCutPrice"); - - b.Property("LongBalayagePrice"); - - b.Property("LongBrushingPrice"); - - b.Property("LongColorPrice"); - - b.Property("LongDefrisPrice"); - - b.Property("LongFoldingPrice"); - - b.Property("LongMechPrice"); - - b.Property("LongMultiColorPrice"); - - b.Property("LongPermanentPrice"); - - b.Property("ManBrushPrice"); - - b.Property("ManCutPrice"); - - b.Property("ScheduleOwnerId"); - - b.Property("ShampooPrice"); - - b.Property("ShortBalayagePrice"); - - b.Property("ShortBrushingPrice"); - - b.Property("ShortColorPrice"); - - b.Property("ShortDefrisPrice"); - - b.Property("ShortFoldingPrice"); - - b.Property("ShortMechPrice"); - - b.Property("ShortMultiColorPrice"); - - b.Property("ShortPermanentPrice"); - - b.Property("WomenHalfCutPrice"); - - b.Property("WomenLongCutPrice"); - - b.Property("WomenShortCutPrice"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("AdditionalInfo") - .HasAnnotation("MaxLength", 512); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("PrestationId"); - - b.Property("Previsional"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("SelectedProfileUserId"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Cares"); - - b.Property("Cut"); - - b.Property("Dressing"); - - b.Property("Gender"); - - b.Property("Length"); - - b.Property("Shampoo"); - - b.Property("Tech"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PrestationId"); - - b.Property("QueryId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Brand"); - - b.Property("ColorId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.Property("TaintId"); - - b.Property("PrestationId"); - - b.HasKey("TaintId", "PrestationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("LatestActivityUpdate"); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Evolution.Feature", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("ShortName"); - - b.Property("Status"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("FeatureId"); - - b.Property("Status"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Depth"); - - b.Property("Description"); - - b.Property("Height"); - - b.Property("Name"); - - b.Property("Price"); - - b.Property("Public"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("For"); - - b.Property("Message"); - - b.Property("OwnerId"); - - b.Property("Sender"); - - b.Property("Topic"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.Property("UserId"); - - b.Property("NotificationId"); - - b.HasKey("UserId", "NotificationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Target"); - - b.Property("body") - .IsRequired(); - - b.Property("click_action") - .IsRequired(); - - b.Property("color"); - - b.Property("icon") - .HasAnnotation("Relational:DefaultValue", "exclam") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("sound"); - - b.Property("tag"); - - b.Property("title") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId"); - - b.Property("DjSettingsUserId"); - - b.Property("GeneralSettingsUserId"); - - b.Property("Rate"); - - b.Property("TendencyId"); - - b.HasKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId"); - - b.Property("SoundCloudId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId"); - - b.Property("UserId"); - - b.HasKey("InstrumentId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Property("CreationToken"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ExecutorId") - .IsRequired(); - - b.Property("OrderReference"); - - b.Property("PaypalPayerId"); - - b.Property("State"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("CreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId"); - - b.Property("CircleId"); - - b.HasKey("MemberId", "CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.Property("HRef"); - - b.Property("Method"); - - b.Property("BrusherProfileUserId"); - - b.Property("ContentType"); - - b.Property("PayPalPaymentCreationToken"); - - b.Property("Rel"); - - b.HasKey("HRef", "Method"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Streaming.LiveFlow", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DifferedFileName"); - - b.Property("MediaType"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Pitch"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("Hidden"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("SettingsClassName"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActionName"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FormationSettingsUserId"); - - b.Property("PerformerId"); - - b.Property("WorkingForId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients"); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationType"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("DoesCode", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Blog.BlogTrad", b => - { - b.Property("PostId"); - - b.Property("Lang"); - - b.Property("Body"); - - b.Property("Title"); - - b.Property("TraducerId"); - - b.HasKey("PostId", "Lang"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.EMailing.MailingTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Body") - .HasAnnotation("MaxLength", 65536); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ManagerId"); - - b.Property("ReplyToAddress"); - - b.Property("ToSend"); - - b.Property("Topic") - .HasAnnotation("MaxLength", 128); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("GitId"); - - b.Property("Name") - .IsRequired(); - - b.Property("OwnerId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.Property("Version"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.Property("ProjectId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Branch") - .HasAnnotation("MaxLength", 512); - - b.Property("OwnerId") - .HasAnnotation("MaxLength", 1024); - - b.Property("Path") - .IsRequired(); - - b.Property("Url") - .HasAnnotation("MaxLength", 2048); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("TargetId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("BlogPostId"); - - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("PostId"); - - b.HasOne("Yavsc.Models.Relationship.Tag") - .WithMany() - .HasForeignKey("TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - - b.HasOne("Yavsc.Models.Blog.Comment") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Calendar.Period") - .WithMany() - .HasForeignKey("PeriodStart", "PeriodEnd"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomPresence", b => - { - b.HasOne("Yavsc.Models.Chat.ChatRoom") - .WithMany() - .HasForeignKey("ChannelName"); - - b.HasOne("Yavsc.Models.Chat.ChatConnection") - .WithMany() - .HasForeignKey("ChatUserConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("SelectedProfileUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery") - .WithMany() - .HasForeignKey("QueryId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color") - .WithMany() - .HasForeignKey("ColorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairTaint") - .WithMany() - .HasForeignKey("TaintId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.HasOne("Yavsc.Models.IT.Evolution.Feature") - .WithMany() - .HasForeignKey("FeatureId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.HasOne("Yavsc.Models.Messaging.Notification") - .WithMany() - .HasForeignKey("NotificationId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings") - .WithMany() - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings") - .WithMany() - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ExecutorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("BrusherProfileUserId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PayPalPaymentCreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Streaming.LiveFlow", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings") - .WithMany() - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("WorkingForId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Blog.BlogTrad", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("TraducerId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.EMailing.MailingTemplate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ManagerId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference") - .WithMany() - .HasForeignKey("GitId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.HasOne("Yavsc.Server.Models.IT.Project") - .WithMany() - .HasForeignKey("ProjectId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2019/T1/20190126133339_banTarget.cs b/src/Yavsc.Server/Migrations/2019/T1/20190126133339_banTarget.cs deleted file mode 100644 index 913d734c..00000000 --- a/src/Yavsc.Server/Migrations/2019/T1/20190126133339_banTarget.cs +++ /dev/null @@ -1,848 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class banTarget : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_BlogPost_PostId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_Tag_TagId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_Comment_ApplicationUser_AuthorId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Comment_BlogPost_PostId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Schedule_ApplicationUser_OwnerId", table: "Schedule"); - migrationBuilder.DropForeignKey(name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", table: "ChatConnection"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PayPalPayment_ApplicationUser_ExecutorId", table: "PayPalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_LiveFlow_ApplicationUser_OwnerId", table: "LiveFlow"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_Project_Activity_ActivityCode", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_ApplicationUser_ClientId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_GitRepositoryReference_GitId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_PerformerProfile_PerformerId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_ProjectBuildConfiguration_Project_ProjectId", table: "ProjectBuildConfiguration"); - migrationBuilder.AddColumn( - name: "TargetId", - table: "Ban", - nullable: false, - defaultValue: ""); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Ban_ApplicationUser_TargetId", - table: "Ban", - column: "TargetId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_BlogPost_PostId", - table: "BlogTag", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_Tag_TagId", - table: "BlogTag", - column: "TagId", - principalTable: "Tag", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Comment_ApplicationUser_AuthorId", - table: "Comment", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Comment_BlogPost_PostId", - table: "Comment", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Schedule_ApplicationUser_OwnerId", - table: "Schedule", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", - table: "ChatConnection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PayPalPayment_ApplicationUser_ExecutorId", - table: "PayPalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_LiveFlow_ApplicationUser_OwnerId", - table: "LiveFlow", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_Activity_ActivityCode", - table: "Project", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_ApplicationUser_ClientId", - table: "Project", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_GitRepositoryReference_GitId", - table: "Project", - column: "GitId", - principalTable: "GitRepositoryReference", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_PerformerProfile_PerformerId", - table: "Project", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_ProjectBuildConfiguration_Project_ProjectId", - table: "ProjectBuildConfiguration", - column: "ProjectId", - principalTable: "Project", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_Ban_ApplicationUser_TargetId", table: "Ban"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_BlogPost_PostId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_Tag_TagId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_Comment_ApplicationUser_AuthorId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Comment_BlogPost_PostId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Schedule_ApplicationUser_OwnerId", table: "Schedule"); - migrationBuilder.DropForeignKey(name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", table: "ChatConnection"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PayPalPayment_ApplicationUser_ExecutorId", table: "PayPalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_LiveFlow_ApplicationUser_OwnerId", table: "LiveFlow"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_Project_Activity_ActivityCode", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_ApplicationUser_ClientId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_GitRepositoryReference_GitId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_PerformerProfile_PerformerId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_ProjectBuildConfiguration_Project_ProjectId", table: "ProjectBuildConfiguration"); - migrationBuilder.DropColumn(name: "TargetId", table: "Ban"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_BlogPost_PostId", - table: "BlogTag", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_Tag_TagId", - table: "BlogTag", - column: "TagId", - principalTable: "Tag", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Comment_ApplicationUser_AuthorId", - table: "Comment", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Comment_BlogPost_PostId", - table: "Comment", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Schedule_ApplicationUser_OwnerId", - table: "Schedule", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", - table: "ChatConnection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PayPalPayment_ApplicationUser_ExecutorId", - table: "PayPalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_LiveFlow_ApplicationUser_OwnerId", - table: "LiveFlow", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_Activity_ActivityCode", - table: "Project", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_ApplicationUser_ClientId", - table: "Project", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_GitRepositoryReference_GitId", - table: "Project", - column: "GitId", - principalTable: "GitRepositoryReference", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_PerformerProfile_PerformerId", - table: "Project", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_ProjectBuildConfiguration_Project_ProjectId", - table: "ProjectBuildConfiguration", - column: "ProjectId", - principalTable: "Project", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2019/T1/20190127105601_banReason.Designer.cs b/src/Yavsc.Server/Migrations/2019/T1/20190127105601_banReason.Designer.cs deleted file mode 100644 index 6cef5b7a..00000000 --- a/src/Yavsc.Server/Migrations/2019/T1/20190127105601_banReason.Designer.cs +++ /dev/null @@ -1,1989 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20190127105601_banReason")] - partial class banReason - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Abstract.Identity.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Reason") - .IsRequired(); - - b.Property("TargetId") - .IsRequired(); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId"); - - b.Property("BlogPostId"); - - b.HasKey("CircleId", "BlogPostId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("AllowMonthlyEmail"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512) - .HasAnnotation("Relational:DefaultValue", "/images/Users/icon_user.png") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar") - .HasAnnotation("MaxLength", 512); - - b.Property("DiskQuota") - .HasAnnotation("Relational:DefaultValue", "524288000") - .HasAnnotation("Relational:DefaultValueType", "System.Int64"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("MaxFileSize"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Count"); - - b.Property("Currency"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 256); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType") - .IsRequired(); - - b.Property("Description"); - - b.Property("OwnerId"); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content") - .HasAnnotation("MaxLength", 56224); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Lang") - .HasAnnotation("MaxLength", 8); - - b.Property("Photo") - .HasAnnotation("MaxLength", 1024); - - b.Property("Rate"); - - b.Property("Title") - .HasAnnotation("MaxLength", 1024); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId") - .IsRequired(); - - b.Property("Content"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ParentId"); - - b.Property("PostId"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Period", b => - { - b.Property("Start"); - - b.Property("End"); - - b.HasKey("Start", "End"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Property("OwnerId"); - - b.HasKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PeriodEnd"); - - b.Property("PeriodStart"); - - b.Property("Reccurence"); - - b.Property("ScheduleOwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId") - .IsRequired(); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.Property("Name") - .HasAnnotation("MaxLength", 255); - - b.Property("ApplicationUserId"); - - b.Property("Topic") - .HasAnnotation("MaxLength", 1023); - - b.HasKey("Name"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomPresence", b => - { - b.Property("ChannelName"); - - b.Property("ChatUserConnectionId"); - - b.Property("Level"); - - b.HasKey("ChannelName", "ChatUserConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Cratie.Option", b => - { - b.Property("Code"); - - b.Property("CodeScrutin"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code", "CodeScrutin"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Blue"); - - b.Property("Green"); - - b.Property("Name"); - - b.Property("Red"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id"); - - b.Property("Summary"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId"); - - b.Property("ActionDistance"); - - b.Property("CarePrice"); - - b.Property("FlatFeeDiscount"); - - b.Property("HalfBalayagePrice"); - - b.Property("HalfBrushingPrice"); - - b.Property("HalfColorPrice"); - - b.Property("HalfDefrisPrice"); - - b.Property("HalfFoldingPrice"); - - b.Property("HalfMechPrice"); - - b.Property("HalfMultiColorPrice"); - - b.Property("HalfPermanentPrice"); - - b.Property("KidCutPrice"); - - b.Property("LongBalayagePrice"); - - b.Property("LongBrushingPrice"); - - b.Property("LongColorPrice"); - - b.Property("LongDefrisPrice"); - - b.Property("LongFoldingPrice"); - - b.Property("LongMechPrice"); - - b.Property("LongMultiColorPrice"); - - b.Property("LongPermanentPrice"); - - b.Property("ManBrushPrice"); - - b.Property("ManCutPrice"); - - b.Property("ScheduleOwnerId"); - - b.Property("ShampooPrice"); - - b.Property("ShortBalayagePrice"); - - b.Property("ShortBrushingPrice"); - - b.Property("ShortColorPrice"); - - b.Property("ShortDefrisPrice"); - - b.Property("ShortFoldingPrice"); - - b.Property("ShortMechPrice"); - - b.Property("ShortMultiColorPrice"); - - b.Property("ShortPermanentPrice"); - - b.Property("WomenHalfCutPrice"); - - b.Property("WomenLongCutPrice"); - - b.Property("WomenShortCutPrice"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("AdditionalInfo") - .HasAnnotation("MaxLength", 512); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("PrestationId"); - - b.Property("Previsional"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("SelectedProfileUserId"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Cares"); - - b.Property("Cut"); - - b.Property("Dressing"); - - b.Property("Gender"); - - b.Property("Length"); - - b.Property("Shampoo"); - - b.Property("Tech"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PrestationId"); - - b.Property("QueryId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Brand"); - - b.Property("ColorId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.Property("TaintId"); - - b.Property("PrestationId"); - - b.HasKey("TaintId", "PrestationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("LatestActivityUpdate"); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Evolution.Feature", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("ShortName"); - - b.Property("Status"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("FeatureId"); - - b.Property("Status"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Depth"); - - b.Property("Description"); - - b.Property("Height"); - - b.Property("Name"); - - b.Property("Price"); - - b.Property("Public"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("For"); - - b.Property("Message"); - - b.Property("OwnerId"); - - b.Property("Sender"); - - b.Property("Topic"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.Property("UserId"); - - b.Property("NotificationId"); - - b.HasKey("UserId", "NotificationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Target"); - - b.Property("body") - .IsRequired(); - - b.Property("click_action") - .IsRequired(); - - b.Property("color"); - - b.Property("icon") - .HasAnnotation("Relational:DefaultValue", "exclam") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("sound"); - - b.Property("tag"); - - b.Property("title") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId"); - - b.Property("DjSettingsUserId"); - - b.Property("GeneralSettingsUserId"); - - b.Property("Rate"); - - b.Property("TendencyId"); - - b.HasKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId"); - - b.Property("SoundCloudId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId"); - - b.Property("UserId"); - - b.HasKey("InstrumentId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Property("CreationToken"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ExecutorId") - .IsRequired(); - - b.Property("OrderReference"); - - b.Property("PaypalPayerId"); - - b.Property("State"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("CreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId"); - - b.Property("CircleId"); - - b.HasKey("MemberId", "CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.Property("HRef"); - - b.Property("Method"); - - b.Property("BrusherProfileUserId"); - - b.Property("ContentType"); - - b.Property("PayPalPaymentCreationToken"); - - b.Property("Rel"); - - b.HasKey("HRef", "Method"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Streaming.LiveFlow", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DifferedFileName"); - - b.Property("MediaType"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Pitch"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("Hidden"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("SettingsClassName"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActionName"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FormationSettingsUserId"); - - b.Property("PerformerId"); - - b.Property("WorkingForId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients"); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationType"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("DoesCode", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Blog.BlogTrad", b => - { - b.Property("PostId"); - - b.Property("Lang"); - - b.Property("Body"); - - b.Property("Title"); - - b.Property("TraducerId"); - - b.HasKey("PostId", "Lang"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.EMailing.MailingTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Body") - .HasAnnotation("MaxLength", 65536); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ManagerId"); - - b.Property("ReplyToAddress"); - - b.Property("ToSend"); - - b.Property("Topic") - .HasAnnotation("MaxLength", 128); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("GitId"); - - b.Property("Name") - .IsRequired(); - - b.Property("OwnerId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.Property("Version"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.Property("ProjectId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Branch") - .HasAnnotation("MaxLength", 512); - - b.Property("OwnerId") - .HasAnnotation("MaxLength", 1024); - - b.Property("Path") - .IsRequired(); - - b.Property("Url") - .HasAnnotation("MaxLength", 2048); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("TargetId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("BlogPostId"); - - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("PostId"); - - b.HasOne("Yavsc.Models.Relationship.Tag") - .WithMany() - .HasForeignKey("TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - - b.HasOne("Yavsc.Models.Blog.Comment") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Calendar.Period") - .WithMany() - .HasForeignKey("PeriodStart", "PeriodEnd"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomPresence", b => - { - b.HasOne("Yavsc.Models.Chat.ChatRoom") - .WithMany() - .HasForeignKey("ChannelName"); - - b.HasOne("Yavsc.Models.Chat.ChatConnection") - .WithMany() - .HasForeignKey("ChatUserConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("SelectedProfileUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery") - .WithMany() - .HasForeignKey("QueryId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color") - .WithMany() - .HasForeignKey("ColorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairTaint") - .WithMany() - .HasForeignKey("TaintId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.HasOne("Yavsc.Models.IT.Evolution.Feature") - .WithMany() - .HasForeignKey("FeatureId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.HasOne("Yavsc.Models.Messaging.Notification") - .WithMany() - .HasForeignKey("NotificationId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings") - .WithMany() - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings") - .WithMany() - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ExecutorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("BrusherProfileUserId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PayPalPaymentCreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Streaming.LiveFlow", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings") - .WithMany() - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("WorkingForId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Blog.BlogTrad", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("TraducerId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.EMailing.MailingTemplate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ManagerId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference") - .WithMany() - .HasForeignKey("GitId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.HasOne("Yavsc.Server.Models.IT.Project") - .WithMany() - .HasForeignKey("ProjectId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2019/T1/20190127105601_banReason.cs b/src/Yavsc.Server/Migrations/2019/T1/20190127105601_banReason.cs deleted file mode 100644 index fa4d6593..00000000 --- a/src/Yavsc.Server/Migrations/2019/T1/20190127105601_banReason.cs +++ /dev/null @@ -1,856 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class banReason : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_Ban_ApplicationUser_TargetId", table: "Ban"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_BlogPost_PostId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_Tag_TagId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_Comment_ApplicationUser_AuthorId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Comment_BlogPost_PostId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Schedule_ApplicationUser_OwnerId", table: "Schedule"); - migrationBuilder.DropForeignKey(name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", table: "ChatConnection"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PayPalPayment_ApplicationUser_ExecutorId", table: "PayPalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_LiveFlow_ApplicationUser_OwnerId", table: "LiveFlow"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_Project_Activity_ActivityCode", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_ApplicationUser_ClientId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_GitRepositoryReference_GitId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_PerformerProfile_PerformerId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_ProjectBuildConfiguration_Project_ProjectId", table: "ProjectBuildConfiguration"); - migrationBuilder.AddColumn( - name: "Reason", - table: "Ban", - nullable: false, - defaultValue: ""); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Ban_ApplicationUser_TargetId", - table: "Ban", - column: "TargetId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_BlogPost_PostId", - table: "BlogTag", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_Tag_TagId", - table: "BlogTag", - column: "TagId", - principalTable: "Tag", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Comment_ApplicationUser_AuthorId", - table: "Comment", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Comment_BlogPost_PostId", - table: "Comment", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Schedule_ApplicationUser_OwnerId", - table: "Schedule", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", - table: "ChatConnection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PayPalPayment_ApplicationUser_ExecutorId", - table: "PayPalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_LiveFlow_ApplicationUser_OwnerId", - table: "LiveFlow", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_Activity_ActivityCode", - table: "Project", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_ApplicationUser_ClientId", - table: "Project", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_GitRepositoryReference_GitId", - table: "Project", - column: "GitId", - principalTable: "GitRepositoryReference", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_PerformerProfile_PerformerId", - table: "Project", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_ProjectBuildConfiguration_Project_ProjectId", - table: "ProjectBuildConfiguration", - column: "ProjectId", - principalTable: "Project", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_Ban_ApplicationUser_TargetId", table: "Ban"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_BlogPost_PostId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_Tag_TagId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_Comment_ApplicationUser_AuthorId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Comment_BlogPost_PostId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Schedule_ApplicationUser_OwnerId", table: "Schedule"); - migrationBuilder.DropForeignKey(name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", table: "ChatConnection"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PayPalPayment_ApplicationUser_ExecutorId", table: "PayPalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_LiveFlow_ApplicationUser_OwnerId", table: "LiveFlow"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_Project_Activity_ActivityCode", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_ApplicationUser_ClientId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_GitRepositoryReference_GitId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_PerformerProfile_PerformerId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_ProjectBuildConfiguration_Project_ProjectId", table: "ProjectBuildConfiguration"); - migrationBuilder.DropColumn(name: "Reason", table: "Ban"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Ban_ApplicationUser_TargetId", - table: "Ban", - column: "TargetId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_BlogPost_PostId", - table: "BlogTag", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_Tag_TagId", - table: "BlogTag", - column: "TagId", - principalTable: "Tag", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Comment_ApplicationUser_AuthorId", - table: "Comment", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Comment_BlogPost_PostId", - table: "Comment", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Schedule_ApplicationUser_OwnerId", - table: "Schedule", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", - table: "ChatConnection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PayPalPayment_ApplicationUser_ExecutorId", - table: "PayPalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_LiveFlow_ApplicationUser_OwnerId", - table: "LiveFlow", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_Activity_ActivityCode", - table: "Project", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_ApplicationUser_ClientId", - table: "Project", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_GitRepositoryReference_GitId", - table: "Project", - column: "GitId", - principalTable: "GitRepositoryReference", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_PerformerProfile_PerformerId", - table: "Project", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_ProjectBuildConfiguration_Project_ProjectId", - table: "ProjectBuildConfiguration", - column: "ProjectId", - principalTable: "Project", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2019/T1/20190204162909_liveFlowSeqnum.Designer.cs b/src/Yavsc.Server/Migrations/2019/T1/20190204162909_liveFlowSeqnum.Designer.cs deleted file mode 100644 index 226b7cc9..00000000 --- a/src/Yavsc.Server/Migrations/2019/T1/20190204162909_liveFlowSeqnum.Designer.cs +++ /dev/null @@ -1,1996 +0,0 @@ -using System; - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20190204162909_liveFlowSeqnum")] - partial class liveFlowSeqnum - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Abstract.Identity.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Reason") - .IsRequired(); - - b.Property("TargetId") - .IsRequired(); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId"); - - b.Property("BlogPostId"); - - b.HasKey("CircleId", "BlogPostId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("AllowMonthlyEmail"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512) - .HasAnnotation("Relational:DefaultValue", "/images/Users/icon_user.png") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar") - .HasAnnotation("MaxLength", 512); - - b.Property("DiskQuota") - .HasAnnotation("Relational:DefaultValue", "524288000") - .HasAnnotation("Relational:DefaultValueType", "System.Int64"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("MaxFileSize"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Count"); - - b.Property("Currency"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 256); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType") - .IsRequired(); - - b.Property("Description"); - - b.Property("OwnerId"); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content") - .HasAnnotation("MaxLength", 56224); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Lang") - .HasAnnotation("MaxLength", 8); - - b.Property("Photo") - .HasAnnotation("MaxLength", 1024); - - b.Property("Rate"); - - b.Property("Title") - .HasAnnotation("MaxLength", 1024); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId") - .IsRequired(); - - b.Property("Content"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ParentId"); - - b.Property("PostId"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Period", b => - { - b.Property("Start"); - - b.Property("End"); - - b.HasKey("Start", "End"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Property("OwnerId"); - - b.HasKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PeriodEnd"); - - b.Property("PeriodStart"); - - b.Property("Reccurence"); - - b.Property("ScheduleOwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId") - .IsRequired(); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.Property("Name") - .HasAnnotation("MaxLength", 255); - - b.Property("ApplicationUserId"); - - b.Property("Topic") - .HasAnnotation("MaxLength", 1023); - - b.HasKey("Name"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomPresence", b => - { - b.Property("ChannelName"); - - b.Property("ChatUserConnectionId"); - - b.Property("Level"); - - b.HasKey("ChannelName", "ChatUserConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Cratie.Option", b => - { - b.Property("Code"); - - b.Property("CodeScrutin"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code", "CodeScrutin"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Blue"); - - b.Property("Green"); - - b.Property("Name"); - - b.Property("Red"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id"); - - b.Property("Summary"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId"); - - b.Property("ActionDistance"); - - b.Property("CarePrice"); - - b.Property("FlatFeeDiscount"); - - b.Property("HalfBalayagePrice"); - - b.Property("HalfBrushingPrice"); - - b.Property("HalfColorPrice"); - - b.Property("HalfDefrisPrice"); - - b.Property("HalfFoldingPrice"); - - b.Property("HalfMechPrice"); - - b.Property("HalfMultiColorPrice"); - - b.Property("HalfPermanentPrice"); - - b.Property("KidCutPrice"); - - b.Property("LongBalayagePrice"); - - b.Property("LongBrushingPrice"); - - b.Property("LongColorPrice"); - - b.Property("LongDefrisPrice"); - - b.Property("LongFoldingPrice"); - - b.Property("LongMechPrice"); - - b.Property("LongMultiColorPrice"); - - b.Property("LongPermanentPrice"); - - b.Property("ManBrushPrice"); - - b.Property("ManCutPrice"); - - b.Property("ScheduleOwnerId"); - - b.Property("ShampooPrice"); - - b.Property("ShortBalayagePrice"); - - b.Property("ShortBrushingPrice"); - - b.Property("ShortColorPrice"); - - b.Property("ShortDefrisPrice"); - - b.Property("ShortFoldingPrice"); - - b.Property("ShortMechPrice"); - - b.Property("ShortMultiColorPrice"); - - b.Property("ShortPermanentPrice"); - - b.Property("WomenHalfCutPrice"); - - b.Property("WomenLongCutPrice"); - - b.Property("WomenShortCutPrice"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("AdditionalInfo") - .HasAnnotation("MaxLength", 512); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("PrestationId"); - - b.Property("Previsional"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("SelectedProfileUserId"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Cares"); - - b.Property("Cut"); - - b.Property("Dressing"); - - b.Property("Gender"); - - b.Property("Length"); - - b.Property("Shampoo"); - - b.Property("Tech"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PrestationId"); - - b.Property("QueryId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Brand"); - - b.Property("ColorId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.Property("TaintId"); - - b.Property("PrestationId"); - - b.HasKey("TaintId", "PrestationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("LatestActivityUpdate"); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Evolution.Feature", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("ShortName"); - - b.Property("Status"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("FeatureId"); - - b.Property("Status"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Depth"); - - b.Property("Description"); - - b.Property("Height"); - - b.Property("Name"); - - b.Property("Price"); - - b.Property("Public"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("For"); - - b.Property("Message"); - - b.Property("OwnerId"); - - b.Property("Sender"); - - b.Property("Topic"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.Property("UserId"); - - b.Property("NotificationId"); - - b.HasKey("UserId", "NotificationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Target"); - - b.Property("body") - .IsRequired(); - - b.Property("click_action") - .IsRequired(); - - b.Property("color"); - - b.Property("icon") - .HasAnnotation("Relational:DefaultValue", "exclam") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("sound"); - - b.Property("tag"); - - b.Property("title") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId"); - - b.Property("DjSettingsUserId"); - - b.Property("GeneralSettingsUserId"); - - b.Property("Rate"); - - b.Property("TendencyId"); - - b.HasKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId"); - - b.Property("SoundCloudId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId"); - - b.Property("UserId"); - - b.HasKey("InstrumentId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Property("CreationToken"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ExecutorId") - .IsRequired(); - - b.Property("OrderReference"); - - b.Property("PaypalPayerId"); - - b.Property("State"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("CreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId"); - - b.Property("CircleId"); - - b.HasKey("MemberId", "CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.Property("HRef"); - - b.Property("Method"); - - b.Property("BrusherProfileUserId"); - - b.Property("ContentType"); - - b.Property("PayPalPaymentCreationToken"); - - b.Property("Rel"); - - b.HasKey("HRef", "Method"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Streaming.LiveFlow", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DifferedFileName") - .HasAnnotation("MaxLength", 255); - - b.Property("MediaType") - .HasAnnotation("MaxLength", 127); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Pitch") - .HasAnnotation("MaxLength", 1023); - - b.Property("SequenceNumber"); - - b.Property("Title") - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("Hidden"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("SettingsClassName"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActionName"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FormationSettingsUserId"); - - b.Property("PerformerId"); - - b.Property("WorkingForId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients"); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationType"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("DoesCode", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Blog.BlogTrad", b => - { - b.Property("PostId"); - - b.Property("Lang"); - - b.Property("Body"); - - b.Property("Title"); - - b.Property("TraducerId"); - - b.HasKey("PostId", "Lang"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.EMailing.MailingTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Body") - .HasAnnotation("MaxLength", 65536); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ManagerId"); - - b.Property("ReplyToAddress"); - - b.Property("ToSend"); - - b.Property("Topic") - .HasAnnotation("MaxLength", 128); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("GitId"); - - b.Property("Name") - .IsRequired(); - - b.Property("OwnerId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.Property("Version"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.Property("ProjectId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Branch") - .HasAnnotation("MaxLength", 512); - - b.Property("OwnerId") - .HasAnnotation("MaxLength", 1024); - - b.Property("Path") - .IsRequired(); - - b.Property("Url") - .HasAnnotation("MaxLength", 2048); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("TargetId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("BlogPostId"); - - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("PostId"); - - b.HasOne("Yavsc.Models.Relationship.Tag") - .WithMany() - .HasForeignKey("TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - - b.HasOne("Yavsc.Models.Blog.Comment") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Calendar.Period") - .WithMany() - .HasForeignKey("PeriodStart", "PeriodEnd"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomPresence", b => - { - b.HasOne("Yavsc.Models.Chat.ChatRoom") - .WithMany() - .HasForeignKey("ChannelName"); - - b.HasOne("Yavsc.Models.Chat.ChatConnection") - .WithMany() - .HasForeignKey("ChatUserConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("SelectedProfileUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery") - .WithMany() - .HasForeignKey("QueryId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color") - .WithMany() - .HasForeignKey("ColorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairTaint") - .WithMany() - .HasForeignKey("TaintId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.HasOne("Yavsc.Models.IT.Evolution.Feature") - .WithMany() - .HasForeignKey("FeatureId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.HasOne("Yavsc.Models.Messaging.Notification") - .WithMany() - .HasForeignKey("NotificationId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings") - .WithMany() - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings") - .WithMany() - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ExecutorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("BrusherProfileUserId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PayPalPaymentCreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Streaming.LiveFlow", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings") - .WithMany() - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("WorkingForId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Blog.BlogTrad", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("TraducerId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.EMailing.MailingTemplate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ManagerId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference") - .WithMany() - .HasForeignKey("GitId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.HasOne("Yavsc.Server.Models.IT.Project") - .WithMany() - .HasForeignKey("ProjectId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2019/T1/20190204162909_liveFlowSeqnum.cs b/src/Yavsc.Server/Migrations/2019/T1/20190204162909_liveFlowSeqnum.cs deleted file mode 100644 index 96c34a4a..00000000 --- a/src/Yavsc.Server/Migrations/2019/T1/20190204162909_liveFlowSeqnum.cs +++ /dev/null @@ -1,856 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class liveFlowSeqnum : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_Ban_ApplicationUser_TargetId", table: "Ban"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_BlogPost_PostId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_Tag_TagId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_Comment_ApplicationUser_AuthorId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Comment_BlogPost_PostId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Schedule_ApplicationUser_OwnerId", table: "Schedule"); - migrationBuilder.DropForeignKey(name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", table: "ChatConnection"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PayPalPayment_ApplicationUser_ExecutorId", table: "PayPalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_LiveFlow_ApplicationUser_OwnerId", table: "LiveFlow"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_Project_Activity_ActivityCode", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_ApplicationUser_ClientId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_GitRepositoryReference_GitId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_PerformerProfile_PerformerId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_ProjectBuildConfiguration_Project_ProjectId", table: "ProjectBuildConfiguration"); - migrationBuilder.AddColumn( - name: "SequenceNumber", - table: "LiveFlow", - nullable: false, - defaultValue: 0); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Ban_ApplicationUser_TargetId", - table: "Ban", - column: "TargetId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_BlogPost_PostId", - table: "BlogTag", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_Tag_TagId", - table: "BlogTag", - column: "TagId", - principalTable: "Tag", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Comment_ApplicationUser_AuthorId", - table: "Comment", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Comment_BlogPost_PostId", - table: "Comment", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Schedule_ApplicationUser_OwnerId", - table: "Schedule", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", - table: "ChatConnection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PayPalPayment_ApplicationUser_ExecutorId", - table: "PayPalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_LiveFlow_ApplicationUser_OwnerId", - table: "LiveFlow", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_Activity_ActivityCode", - table: "Project", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_ApplicationUser_ClientId", - table: "Project", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_GitRepositoryReference_GitId", - table: "Project", - column: "GitId", - principalTable: "GitRepositoryReference", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_PerformerProfile_PerformerId", - table: "Project", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_ProjectBuildConfiguration_Project_ProjectId", - table: "ProjectBuildConfiguration", - column: "ProjectId", - principalTable: "Project", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_Ban_ApplicationUser_TargetId", table: "Ban"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_BlogPost_PostId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_Tag_TagId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_Comment_ApplicationUser_AuthorId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Comment_BlogPost_PostId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Schedule_ApplicationUser_OwnerId", table: "Schedule"); - migrationBuilder.DropForeignKey(name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", table: "ChatConnection"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PayPalPayment_ApplicationUser_ExecutorId", table: "PayPalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_LiveFlow_ApplicationUser_OwnerId", table: "LiveFlow"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_Project_Activity_ActivityCode", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_ApplicationUser_ClientId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_GitRepositoryReference_GitId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_PerformerProfile_PerformerId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_ProjectBuildConfiguration_Project_ProjectId", table: "ProjectBuildConfiguration"); - migrationBuilder.DropColumn(name: "SequenceNumber", table: "LiveFlow"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Ban_ApplicationUser_TargetId", - table: "Ban", - column: "TargetId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_BlogPost_PostId", - table: "BlogTag", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_Tag_TagId", - table: "BlogTag", - column: "TagId", - principalTable: "Tag", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Comment_ApplicationUser_AuthorId", - table: "Comment", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Comment_BlogPost_PostId", - table: "Comment", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Schedule_ApplicationUser_OwnerId", - table: "Schedule", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", - table: "ChatConnection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PayPalPayment_ApplicationUser_ExecutorId", - table: "PayPalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_LiveFlow_ApplicationUser_OwnerId", - table: "LiveFlow", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_Activity_ActivityCode", - table: "Project", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_ApplicationUser_ClientId", - table: "Project", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_GitRepositoryReference_GitId", - table: "Project", - column: "GitId", - principalTable: "GitRepositoryReference", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_PerformerProfile_PerformerId", - table: "Project", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_ProjectBuildConfiguration_Project_ProjectId", - table: "ProjectBuildConfiguration", - column: "ProjectId", - principalTable: "Project", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2019/T2/20190507142752_chatAccess.Designer.cs b/src/Yavsc.Server/Migrations/2019/T2/20190507142752_chatAccess.Designer.cs deleted file mode 100644 index 67446779..00000000 --- a/src/Yavsc.Server/Migrations/2019/T2/20190507142752_chatAccess.Designer.cs +++ /dev/null @@ -1,2030 +0,0 @@ -using System; - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20190507142752_chatAccess")] - partial class chatAccess - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Abstract.Identity.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Reason") - .IsRequired(); - - b.Property("TargetId") - .IsRequired(); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId"); - - b.Property("BlogPostId"); - - b.HasKey("CircleId", "BlogPostId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("AllowMonthlyEmail"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512) - .HasAnnotation("Relational:DefaultValue", "/images/Users/icon_user.png") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar") - .HasAnnotation("MaxLength", 512); - - b.Property("DiskQuota") - .HasAnnotation("Relational:DefaultValue", "524288000") - .HasAnnotation("Relational:DefaultValueType", "System.Int64"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("MaxFileSize"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Count"); - - b.Property("Currency"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 256); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType") - .IsRequired(); - - b.Property("Description"); - - b.Property("OwnerId"); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content") - .HasAnnotation("MaxLength", 56224); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Lang") - .HasAnnotation("MaxLength", 8); - - b.Property("Photo") - .HasAnnotation("MaxLength", 1024); - - b.Property("Rate"); - - b.Property("Title") - .HasAnnotation("MaxLength", 1024); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId") - .IsRequired(); - - b.Property("Content"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ParentId"); - - b.Property("PostId"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Period", b => - { - b.Property("Start"); - - b.Property("End"); - - b.HasKey("Start", "End"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Property("OwnerId"); - - b.HasKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PeriodEnd"); - - b.Property("PeriodStart"); - - b.Property("Reccurence"); - - b.Property("ScheduleOwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId") - .IsRequired(); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.Property("Name") - .HasAnnotation("MaxLength", 255); - - b.Property("OwnerId"); - - b.Property("Topic"); - - b.HasKey("Name"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomAccess", b => - { - b.Property("ChannelName"); - - b.Property("UserId"); - - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Level"); - - b.HasKey("ChannelName", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Cratie.Option", b => - { - b.Property("Code"); - - b.Property("CodeScrutin"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code", "CodeScrutin"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Blue"); - - b.Property("Green"); - - b.Property("Name"); - - b.Property("Red"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id"); - - b.Property("Summary"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId"); - - b.Property("ActionDistance"); - - b.Property("CarePrice"); - - b.Property("FlatFeeDiscount"); - - b.Property("HalfBalayagePrice"); - - b.Property("HalfBrushingPrice"); - - b.Property("HalfColorPrice"); - - b.Property("HalfDefrisPrice"); - - b.Property("HalfFoldingPrice"); - - b.Property("HalfMechPrice"); - - b.Property("HalfMultiColorPrice"); - - b.Property("HalfPermanentPrice"); - - b.Property("KidCutPrice"); - - b.Property("LongBalayagePrice"); - - b.Property("LongBrushingPrice"); - - b.Property("LongColorPrice"); - - b.Property("LongDefrisPrice"); - - b.Property("LongFoldingPrice"); - - b.Property("LongMechPrice"); - - b.Property("LongMultiColorPrice"); - - b.Property("LongPermanentPrice"); - - b.Property("ManBrushPrice"); - - b.Property("ManCutPrice"); - - b.Property("ScheduleOwnerId"); - - b.Property("ShampooPrice"); - - b.Property("ShortBalayagePrice"); - - b.Property("ShortBrushingPrice"); - - b.Property("ShortColorPrice"); - - b.Property("ShortDefrisPrice"); - - b.Property("ShortFoldingPrice"); - - b.Property("ShortMechPrice"); - - b.Property("ShortMultiColorPrice"); - - b.Property("ShortPermanentPrice"); - - b.Property("WomenHalfCutPrice"); - - b.Property("WomenLongCutPrice"); - - b.Property("WomenShortCutPrice"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("AdditionalInfo") - .HasAnnotation("MaxLength", 512); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("PrestationId"); - - b.Property("Previsional"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("SelectedProfileUserId"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Cares"); - - b.Property("Cut"); - - b.Property("Dressing"); - - b.Property("Gender"); - - b.Property("Length"); - - b.Property("Shampoo"); - - b.Property("Tech"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PrestationId"); - - b.Property("QueryId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Brand"); - - b.Property("ColorId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.Property("TaintId"); - - b.Property("PrestationId"); - - b.HasKey("TaintId", "PrestationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("GCMRegistrationId") - .IsRequired(); - - b.Property("LatestActivityUpdate"); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Evolution.Feature", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("ShortName"); - - b.Property("Status"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("FeatureId"); - - b.Property("Status"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Depth"); - - b.Property("Description"); - - b.Property("Height"); - - b.Property("Name"); - - b.Property("Price"); - - b.Property("Public"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("For"); - - b.Property("Message"); - - b.Property("OwnerId"); - - b.Property("Sender"); - - b.Property("Topic"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.Property("UserId"); - - b.Property("NotificationId"); - - b.HasKey("UserId", "NotificationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Target"); - - b.Property("body") - .IsRequired(); - - b.Property("click_action") - .IsRequired(); - - b.Property("color"); - - b.Property("icon") - .HasAnnotation("Relational:DefaultValue", "exclam") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("sound"); - - b.Property("tag"); - - b.Property("title") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId"); - - b.Property("DjSettingsUserId"); - - b.Property("GeneralSettingsUserId"); - - b.Property("Rate"); - - b.Property("TendencyId"); - - b.HasKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId"); - - b.Property("SoundCloudId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId"); - - b.Property("UserId"); - - b.HasKey("InstrumentId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Property("CreationToken"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ExecutorId") - .IsRequired(); - - b.Property("OrderReference"); - - b.Property("PaypalPayerId"); - - b.Property("State"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("CreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId"); - - b.Property("CircleId"); - - b.HasKey("MemberId", "CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("ApplicationUserId"); - - b.Property("EMail"); - - b.Property("Name"); - - b.Property("PostalAddressId"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.Property("HRef"); - - b.Property("Method"); - - b.Property("BrusherProfileUserId"); - - b.Property("ContentType"); - - b.Property("PayPalPaymentCreationToken"); - - b.Property("Rel"); - - b.HasKey("HRef", "Method"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostalAddress", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("City"); - - b.Property("Country"); - - b.Property("PostalCode"); - - b.Property("Province"); - - b.Property("State"); - - b.Property("Street1"); - - b.Property("Street2"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Streaming.LiveFlow", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DifferedFileName") - .HasAnnotation("MaxLength", 255); - - b.Property("MediaType") - .HasAnnotation("MaxLength", 127); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Pitch") - .HasAnnotation("MaxLength", 1023); - - b.Property("SequenceNumber"); - - b.Property("Title") - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("Hidden"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("SettingsClassName"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActionName"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FormationSettingsUserId"); - - b.Property("PerformerId"); - - b.Property("WorkingForId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients"); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationType"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("DoesCode", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Blog.BlogTrad", b => - { - b.Property("PostId"); - - b.Property("Lang"); - - b.Property("Body"); - - b.Property("Title"); - - b.Property("TraducerId"); - - b.HasKey("PostId", "Lang"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.EMailing.MailingTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Body") - .HasAnnotation("MaxLength", 65536); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ManagerId"); - - b.Property("ReplyToAddress"); - - b.Property("ToSend"); - - b.Property("Topic") - .HasAnnotation("MaxLength", 128); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("GitId"); - - b.Property("Name") - .IsRequired(); - - b.Property("OwnerId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.Property("Version"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.Property("ProjectId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Branch") - .HasAnnotation("MaxLength", 512); - - b.Property("OwnerId") - .HasAnnotation("MaxLength", 1024); - - b.Property("Path") - .IsRequired(); - - b.Property("Url") - .HasAnnotation("MaxLength", 2048); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("TargetId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("BlogPostId"); - - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("PostId"); - - b.HasOne("Yavsc.Models.Relationship.Tag") - .WithMany() - .HasForeignKey("TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - - b.HasOne("Yavsc.Models.Blog.Comment") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Calendar.Period") - .WithMany() - .HasForeignKey("PeriodStart", "PeriodEnd"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomAccess", b => - { - b.HasOne("Yavsc.Models.Chat.ChatRoom") - .WithMany() - .HasForeignKey("ChannelName"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("SelectedProfileUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery") - .WithMany() - .HasForeignKey("QueryId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color") - .WithMany() - .HasForeignKey("ColorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairTaint") - .WithMany() - .HasForeignKey("TaintId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.GoogleCloudMobileDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.HasOne("Yavsc.Models.IT.Evolution.Feature") - .WithMany() - .HasForeignKey("FeatureId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.HasOne("Yavsc.Models.Messaging.Notification") - .WithMany() - .HasForeignKey("NotificationId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings") - .WithMany() - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings") - .WithMany() - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ExecutorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - - b.HasOne("Yavsc.Models.Relationship.PostalAddress") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("BrusherProfileUserId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PayPalPaymentCreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Streaming.LiveFlow", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings") - .WithMany() - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("WorkingForId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Blog.BlogTrad", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("TraducerId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.EMailing.MailingTemplate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ManagerId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference") - .WithMany() - .HasForeignKey("GitId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.HasOne("Yavsc.Server.Models.IT.Project") - .WithMany() - .HasForeignKey("ProjectId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2019/T2/20190507142752_chatAccess.cs b/src/Yavsc.Server/Migrations/2019/T2/20190507142752_chatAccess.cs deleted file mode 100644 index 1e1d2413..00000000 --- a/src/Yavsc.Server/Migrations/2019/T2/20190507142752_chatAccess.cs +++ /dev/null @@ -1,979 +0,0 @@ -using System; - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class chatAccess : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_Ban_ApplicationUser_TargetId", table: "Ban"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_BlogPost_PostId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_Tag_TagId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_Comment_ApplicationUser_AuthorId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Comment_BlogPost_PostId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Schedule_ApplicationUser_OwnerId", table: "Schedule"); - migrationBuilder.DropForeignKey(name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", table: "ChatConnection"); - migrationBuilder.DropForeignKey(name: "FK_ChatRoom_ApplicationUser_ApplicationUserId", table: "ChatRoom"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PayPalPayment_ApplicationUser_ExecutorId", table: "PayPalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_LiveFlow_ApplicationUser_OwnerId", table: "LiveFlow"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_Project_Activity_ActivityCode", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_ApplicationUser_ClientId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_GitRepositoryReference_GitId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_PerformerProfile_PerformerId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_ProjectBuildConfiguration_Project_ProjectId", table: "ProjectBuildConfiguration"); - migrationBuilder.DropColumn(name: "ApplicationUserId", table: "ChatRoom"); - migrationBuilder.DropTable("ChatRoomPresence"); - migrationBuilder.CreateTable( - name: "ChatRoomAccess", - columns: table => new - { - ChannelName = table.Column(nullable: false), - UserId = table.Column(nullable: false), - Id = table.Column(nullable: false) - .Annotation("Npgsql:Serial", true), - Level = table.Column(nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_ChatRoomAccess", x => new { x.ChannelName, x.UserId }); - table.ForeignKey( - name: "FK_ChatRoomAccess_ChatRoom_ChannelName", - column: x => x.ChannelName, - principalTable: "ChatRoom", - principalColumn: "Name", - onDelete: ReferentialAction.Restrict); - table.ForeignKey( - name: "FK_ChatRoomAccess_ApplicationUser_UserId", - column: x => x.UserId, - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - migrationBuilder.CreateTable( - name: "PostalAddress", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("Npgsql:Serial", true), - City = table.Column(nullable: true), - Country = table.Column(nullable: true), - PostalCode = table.Column(nullable: true), - Province = table.Column(nullable: true), - State = table.Column(nullable: true), - Street1 = table.Column(nullable: true), - Street2 = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_PostalAddress", x => x.Id); - }); - migrationBuilder.AddColumn( - name: "EMail", - table: "Contact", - nullable: true); - migrationBuilder.AddColumn( - name: "Name", - table: "Contact", - nullable: true); - migrationBuilder.AddColumn( - name: "PostalAddressId", - table: "Contact", - nullable: true); - migrationBuilder.AlterColumn( - name: "LatestActivityUpdate", - table: "GoogleCloudMobileDeclaration", - nullable: true); - migrationBuilder.AddColumn( - name: "OwnerId", - table: "ChatRoom", - nullable: true); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Ban_ApplicationUser_TargetId", - table: "Ban", - column: "TargetId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_BlogPost_PostId", - table: "BlogTag", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_Tag_TagId", - table: "BlogTag", - column: "TagId", - principalTable: "Tag", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Comment_ApplicationUser_AuthorId", - table: "Comment", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Comment_BlogPost_PostId", - table: "Comment", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Schedule_ApplicationUser_OwnerId", - table: "Schedule", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", - table: "ChatConnection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_ChatRoom_ApplicationUser_OwnerId", - table: "ChatRoom", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PayPalPayment_ApplicationUser_ExecutorId", - table: "PayPalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Contact_PostalAddress_PostalAddressId", - table: "Contact", - column: "PostalAddressId", - principalTable: "PostalAddress", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_LiveFlow_ApplicationUser_OwnerId", - table: "LiveFlow", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_Activity_ActivityCode", - table: "Project", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_ApplicationUser_ClientId", - table: "Project", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_GitRepositoryReference_GitId", - table: "Project", - column: "GitId", - principalTable: "GitRepositoryReference", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_PerformerProfile_PerformerId", - table: "Project", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_ProjectBuildConfiguration_Project_ProjectId", - table: "ProjectBuildConfiguration", - column: "ProjectId", - principalTable: "Project", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_Ban_ApplicationUser_TargetId", table: "Ban"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_BlogPost_PostId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_Tag_TagId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_Comment_ApplicationUser_AuthorId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Comment_BlogPost_PostId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Schedule_ApplicationUser_OwnerId", table: "Schedule"); - migrationBuilder.DropForeignKey(name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", table: "ChatConnection"); - migrationBuilder.DropForeignKey(name: "FK_ChatRoom_ApplicationUser_OwnerId", table: "ChatRoom"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PayPalPayment_ApplicationUser_ExecutorId", table: "PayPalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Contact_PostalAddress_PostalAddressId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_LiveFlow_ApplicationUser_OwnerId", table: "LiveFlow"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_Project_Activity_ActivityCode", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_ApplicationUser_ClientId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_GitRepositoryReference_GitId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_PerformerProfile_PerformerId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_ProjectBuildConfiguration_Project_ProjectId", table: "ProjectBuildConfiguration"); - migrationBuilder.DropColumn(name: "EMail", table: "Contact"); - migrationBuilder.DropColumn(name: "Name", table: "Contact"); - migrationBuilder.DropColumn(name: "PostalAddressId", table: "Contact"); - migrationBuilder.DropColumn(name: "OwnerId", table: "ChatRoom"); - migrationBuilder.DropTable("ChatRoomAccess"); - migrationBuilder.DropTable("PostalAddress"); - migrationBuilder.CreateTable( - name: "ChatRoomPresence", - columns: table => new - { - ChannelName = table.Column(nullable: false), - ChatUserConnectionId = table.Column(nullable: false), - Level = table.Column(nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_ChatRoomPresence", x => new { x.ChannelName, x.ChatUserConnectionId }); - table.ForeignKey( - name: "FK_ChatRoomPresence_ChatRoom_ChannelName", - column: x => x.ChannelName, - principalTable: "ChatRoom", - principalColumn: "Name", - onDelete: ReferentialAction.Restrict); - table.ForeignKey( - name: "FK_ChatRoomPresence_ChatConnection_ChatUserConnectionId", - column: x => x.ChatUserConnectionId, - principalTable: "ChatConnection", - principalColumn: "ConnectionId", - onDelete: ReferentialAction.Restrict); - }); - migrationBuilder.AlterColumn( - name: "LatestActivityUpdate", - table: "GoogleCloudMobileDeclaration", - nullable: false); - migrationBuilder.AddColumn( - name: "ApplicationUserId", - table: "ChatRoom", - nullable: true); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Ban_ApplicationUser_TargetId", - table: "Ban", - column: "TargetId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_BlogPost_PostId", - table: "BlogTag", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_Tag_TagId", - table: "BlogTag", - column: "TagId", - principalTable: "Tag", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Comment_ApplicationUser_AuthorId", - table: "Comment", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Comment_BlogPost_PostId", - table: "Comment", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Schedule_ApplicationUser_OwnerId", - table: "Schedule", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", - table: "ChatConnection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_ChatRoom_ApplicationUser_ApplicationUserId", - table: "ChatRoom", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PayPalPayment_ApplicationUser_ExecutorId", - table: "PayPalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_LiveFlow_ApplicationUser_OwnerId", - table: "LiveFlow", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_Activity_ActivityCode", - table: "Project", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_ApplicationUser_ClientId", - table: "Project", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_GitRepositoryReference_GitId", - table: "Project", - column: "GitId", - principalTable: "GitRepositoryReference", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_PerformerProfile_PerformerId", - table: "Project", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_ProjectBuildConfiguration_Project_ProjectId", - table: "ProjectBuildConfiguration", - column: "ProjectId", - principalTable: "Project", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2019/T2/20190508004238_dropGCM.Designer.cs b/src/Yavsc.Server/Migrations/2019/T2/20190508004238_dropGCM.Designer.cs deleted file mode 100644 index 758c774f..00000000 --- a/src/Yavsc.Server/Migrations/2019/T2/20190508004238_dropGCM.Designer.cs +++ /dev/null @@ -1,2034 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20190508004238_dropGCM")] - partial class dropGCM - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Abstract.Identity.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Reason") - .IsRequired(); - - b.Property("TargetId") - .IsRequired(); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId"); - - b.Property("BlogPostId"); - - b.HasKey("CircleId", "BlogPostId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("AllowMonthlyEmail"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512) - .HasAnnotation("Relational:DefaultValue", "/images/Users/icon_user.png") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar") - .HasAnnotation("MaxLength", 512); - - b.Property("DiskQuota") - .HasAnnotation("Relational:DefaultValue", "524288000") - .HasAnnotation("Relational:DefaultValueType", "System.Int64"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("MaxFileSize"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Count"); - - b.Property("Currency"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 256); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType") - .IsRequired(); - - b.Property("Description"); - - b.Property("OwnerId"); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content") - .HasAnnotation("MaxLength", 56224); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Lang") - .HasAnnotation("MaxLength", 8); - - b.Property("Photo") - .HasAnnotation("MaxLength", 1024); - - b.Property("Rate"); - - b.Property("Title") - .HasAnnotation("MaxLength", 1024); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId") - .IsRequired(); - - b.Property("Content"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ParentId"); - - b.Property("PostId"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Period", b => - { - b.Property("Start"); - - b.Property("End"); - - b.HasKey("Start", "End"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Property("OwnerId"); - - b.HasKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PeriodEnd"); - - b.Property("PeriodStart"); - - b.Property("Reccurence"); - - b.Property("ScheduleOwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId") - .IsRequired(); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.Property("Name") - .HasAnnotation("MaxLength", 255); - - b.Property("OwnerId"); - - b.Property("Topic"); - - b.HasKey("Name"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomAccess", b => - { - b.Property("ChannelName"); - - b.Property("UserId"); - - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Level"); - - b.HasKey("ChannelName", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Cratie.Option", b => - { - b.Property("Code"); - - b.Property("CodeScrutin"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code", "CodeScrutin"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Blue"); - - b.Property("Green"); - - b.Property("Name"); - - b.Property("Red"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id"); - - b.Property("Summary"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId"); - - b.Property("ActionDistance"); - - b.Property("CarePrice"); - - b.Property("FlatFeeDiscount"); - - b.Property("HalfBalayagePrice"); - - b.Property("HalfBrushingPrice"); - - b.Property("HalfColorPrice"); - - b.Property("HalfDefrisPrice"); - - b.Property("HalfFoldingPrice"); - - b.Property("HalfMechPrice"); - - b.Property("HalfMultiColorPrice"); - - b.Property("HalfPermanentPrice"); - - b.Property("KidCutPrice"); - - b.Property("LongBalayagePrice"); - - b.Property("LongBrushingPrice"); - - b.Property("LongColorPrice"); - - b.Property("LongDefrisPrice"); - - b.Property("LongFoldingPrice"); - - b.Property("LongMechPrice"); - - b.Property("LongMultiColorPrice"); - - b.Property("LongPermanentPrice"); - - b.Property("ManBrushPrice"); - - b.Property("ManCutPrice"); - - b.Property("ScheduleOwnerId"); - - b.Property("ShampooPrice"); - - b.Property("ShortBalayagePrice"); - - b.Property("ShortBrushingPrice"); - - b.Property("ShortColorPrice"); - - b.Property("ShortDefrisPrice"); - - b.Property("ShortFoldingPrice"); - - b.Property("ShortMechPrice"); - - b.Property("ShortMultiColorPrice"); - - b.Property("ShortPermanentPrice"); - - b.Property("WomenHalfCutPrice"); - - b.Property("WomenLongCutPrice"); - - b.Property("WomenShortCutPrice"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("AdditionalInfo") - .HasAnnotation("MaxLength", 512); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("PrestationId"); - - b.Property("Previsional"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("SelectedProfileUserId"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Cares"); - - b.Property("Cut"); - - b.Property("Dressing"); - - b.Property("Gender"); - - b.Property("Length"); - - b.Property("Shampoo"); - - b.Property("Tech"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PrestationId"); - - b.Property("QueryId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Brand"); - - b.Property("ColorId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.Property("TaintId"); - - b.Property("PrestationId"); - - b.HasKey("TaintId", "PrestationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.DeviceDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("LatestActivityUpdate"); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Evolution.Feature", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("ShortName"); - - b.Property("Status"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("FeatureId"); - - b.Property("Status"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Depth"); - - b.Property("Description"); - - b.Property("Height"); - - b.Property("Name"); - - b.Property("Price"); - - b.Property("Public"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("For"); - - b.Property("Message"); - - b.Property("OwnerId"); - - b.Property("Sender"); - - b.Property("Topic"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.Property("UserId"); - - b.Property("NotificationId"); - - b.HasKey("UserId", "NotificationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Target"); - - b.Property("body") - .IsRequired(); - - b.Property("click_action") - .IsRequired(); - - b.Property("color"); - - b.Property("icon") - .HasAnnotation("Relational:DefaultValue", "exclam") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("sound"); - - b.Property("tag"); - - b.Property("title") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId"); - - b.Property("DjSettingsUserId"); - - b.Property("GeneralSettingsUserId"); - - b.Property("Rate"); - - b.Property("TendencyId"); - - b.HasKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId"); - - b.Property("SoundCloudId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId"); - - b.Property("UserId"); - - b.HasKey("InstrumentId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Property("CreationToken"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ExecutorId") - .IsRequired(); - - b.Property("OrderReference"); - - b.Property("PaypalPayerId"); - - b.Property("State"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("CreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId"); - - b.Property("CircleId"); - - b.HasKey("MemberId", "CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("AddressId"); - - b.Property("ApplicationUserId"); - - b.Property("EMail"); - - b.Property("Name"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.Property("HRef"); - - b.Property("Method"); - - b.Property("BrusherProfileUserId"); - - b.Property("ContentType"); - - b.Property("PayPalPaymentCreationToken"); - - b.Property("Rel"); - - b.HasKey("HRef", "Method"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostalAddress", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("City"); - - b.Property("Country"); - - b.Property("PostalCode"); - - b.Property("Province"); - - b.Property("State"); - - b.Property("Street1"); - - b.Property("Street2"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Streaming.LiveFlow", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DifferedFileName") - .HasAnnotation("MaxLength", 255); - - b.Property("MediaType") - .HasAnnotation("MaxLength", 127); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Pitch") - .HasAnnotation("MaxLength", 1023); - - b.Property("SequenceNumber"); - - b.Property("Title") - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("Hidden"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("SettingsClassName"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActionName"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FormationSettingsUserId"); - - b.Property("PerformerId"); - - b.Property("WorkingForId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients"); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationType"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("DoesCode", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Blog.BlogTrad", b => - { - b.Property("PostId"); - - b.Property("Lang"); - - b.Property("Body"); - - b.Property("Title"); - - b.Property("TraducerId"); - - b.HasKey("PostId", "Lang"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.EMailing.MailingTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Body") - .HasAnnotation("MaxLength", 65536); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ManagerId") - .IsRequired(); - - b.Property("ReplyToAddress"); - - b.Property("SuccessorId") - .IsRequired(); - - b.Property("ToSend"); - - b.Property("Topic") - .HasAnnotation("MaxLength", 128); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("GitId"); - - b.Property("Name") - .IsRequired(); - - b.Property("OwnerId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.Property("Version"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.Property("ProjectId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Branch") - .HasAnnotation("MaxLength", 512); - - b.Property("OwnerId") - .HasAnnotation("MaxLength", 1024); - - b.Property("Path") - .IsRequired(); - - b.Property("Url") - .HasAnnotation("MaxLength", 2048); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("TargetId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("BlogPostId"); - - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("PostId"); - - b.HasOne("Yavsc.Models.Relationship.Tag") - .WithMany() - .HasForeignKey("TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - - b.HasOne("Yavsc.Models.Blog.Comment") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Calendar.Period") - .WithMany() - .HasForeignKey("PeriodStart", "PeriodEnd"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomAccess", b => - { - b.HasOne("Yavsc.Models.Chat.ChatRoom") - .WithMany() - .HasForeignKey("ChannelName"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("SelectedProfileUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery") - .WithMany() - .HasForeignKey("QueryId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color") - .WithMany() - .HasForeignKey("ColorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairTaint") - .WithMany() - .HasForeignKey("TaintId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.DeviceDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.HasOne("Yavsc.Models.IT.Evolution.Feature") - .WithMany() - .HasForeignKey("FeatureId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.HasOne("Yavsc.Models.Messaging.Notification") - .WithMany() - .HasForeignKey("NotificationId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings") - .WithMany() - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings") - .WithMany() - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ExecutorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.Relationship.PostalAddress") - .WithMany() - .HasForeignKey("AddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("BrusherProfileUserId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PayPalPaymentCreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Streaming.LiveFlow", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings") - .WithMany() - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("WorkingForId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Blog.BlogTrad", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("TraducerId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.EMailing.MailingTemplate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ManagerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("SuccessorId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference") - .WithMany() - .HasForeignKey("GitId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.HasOne("Yavsc.Server.Models.IT.Project") - .WithMany() - .HasForeignKey("ProjectId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2019/T2/20190508004238_dropGCM.cs b/src/Yavsc.Server/Migrations/2019/T2/20190508004238_dropGCM.cs deleted file mode 100644 index 506e9475..00000000 --- a/src/Yavsc.Server/Migrations/2019/T2/20190508004238_dropGCM.cs +++ /dev/null @@ -1,984 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class dropGCM : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_Ban_ApplicationUser_TargetId", table: "Ban"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_BlogPost_PostId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_Tag_TagId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_Comment_ApplicationUser_AuthorId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Comment_BlogPost_PostId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Schedule_ApplicationUser_OwnerId", table: "Schedule"); - migrationBuilder.DropForeignKey(name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", table: "ChatConnection"); - migrationBuilder.DropForeignKey(name: "FK_ChatRoomAccess_ApplicationUser_UserId", table: "ChatRoomAccess"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PayPalPayment_ApplicationUser_ExecutorId", table: "PayPalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Contact_PostalAddress_PostalAddressId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_LiveFlow_ApplicationUser_OwnerId", table: "LiveFlow"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_MailingTemplate_ApplicationUser_ManagerId", table: "MailingTemplate"); - migrationBuilder.DropForeignKey(name: "FK_Project_Activity_ActivityCode", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_ApplicationUser_ClientId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_GitRepositoryReference_GitId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_PerformerProfile_PerformerId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_ProjectBuildConfiguration_Project_ProjectId", table: "ProjectBuildConfiguration"); - migrationBuilder.DropColumn(name: "PostalAddressId", table: "Contact"); - migrationBuilder.DropTable("GoogleCloudMobileDeclaration"); - migrationBuilder.CreateTable( - name: "DeviceDeclaration", - columns: table => new - { - DeviceId = table.Column(nullable: false), - DeclarationDate = table.Column(nullable: false, defaultValueSql: "LOCALTIMESTAMP"), - DeviceOwnerId = table.Column(nullable: true), - LatestActivityUpdate = table.Column(nullable: true), - Model = table.Column(nullable: true), - Platform = table.Column(nullable: true), - Version = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_DeviceDeclaration", x => x.DeviceId); - table.ForeignKey( - name: "FK_DeviceDeclaration_ApplicationUser_DeviceOwnerId", - column: x => x.DeviceOwnerId, - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - }); - migrationBuilder.AlterColumn( - name: "ManagerId", - table: "MailingTemplate", - nullable: false); - migrationBuilder.AddColumn( - name: "SuccessorId", - table: "MailingTemplate", - nullable: true, - defaultValue: "\"ManagerId\""); - migrationBuilder.Sql("update \"MailingTemplate\" set \"SuccessorId\" = \"ManagerId\";"); - migrationBuilder.AlterColumn( - name: "SuccessorId", - table: "MailingTemplate", - nullable: true); - - migrationBuilder.AddColumn( - name: "AddressId", - table: "Contact", - nullable: false, - defaultValue: 0L); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Ban_ApplicationUser_TargetId", - table: "Ban", - column: "TargetId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_BlogPost_PostId", - table: "BlogTag", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_Tag_TagId", - table: "BlogTag", - column: "TagId", - principalTable: "Tag", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Comment_ApplicationUser_AuthorId", - table: "Comment", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Comment_BlogPost_PostId", - table: "Comment", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Schedule_ApplicationUser_OwnerId", - table: "Schedule", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", - table: "ChatConnection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_ChatRoomAccess_ApplicationUser_UserId", - table: "ChatRoomAccess", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PayPalPayment_ApplicationUser_ExecutorId", - table: "PayPalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Contact_PostalAddress_AddressId", - table: "Contact", - column: "AddressId", - principalTable: "PostalAddress", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_LiveFlow_ApplicationUser_OwnerId", - table: "LiveFlow", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_MailingTemplate_ApplicationUser_ManagerId", - table: "MailingTemplate", - column: "ManagerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_MailingTemplate_ApplicationUser_SuccessorId", - table: "MailingTemplate", - column: "SuccessorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_Activity_ActivityCode", - table: "Project", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_ApplicationUser_ClientId", - table: "Project", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_GitRepositoryReference_GitId", - table: "Project", - column: "GitId", - principalTable: "GitRepositoryReference", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_PerformerProfile_PerformerId", - table: "Project", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_ProjectBuildConfiguration_Project_ProjectId", - table: "ProjectBuildConfiguration", - column: "ProjectId", - principalTable: "Project", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_Ban_ApplicationUser_TargetId", table: "Ban"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_BlogPost_PostId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_Tag_TagId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_Comment_ApplicationUser_AuthorId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Comment_BlogPost_PostId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Schedule_ApplicationUser_OwnerId", table: "Schedule"); - migrationBuilder.DropForeignKey(name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", table: "ChatConnection"); - migrationBuilder.DropForeignKey(name: "FK_ChatRoomAccess_ApplicationUser_UserId", table: "ChatRoomAccess"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PayPalPayment_ApplicationUser_ExecutorId", table: "PayPalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Contact_PostalAddress_AddressId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_LiveFlow_ApplicationUser_OwnerId", table: "LiveFlow"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_MailingTemplate_ApplicationUser_ManagerId", table: "MailingTemplate"); - migrationBuilder.DropForeignKey(name: "FK_MailingTemplate_ApplicationUser_SuccessorId", table: "MailingTemplate"); - migrationBuilder.DropForeignKey(name: "FK_Project_Activity_ActivityCode", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_ApplicationUser_ClientId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_GitRepositoryReference_GitId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_PerformerProfile_PerformerId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_ProjectBuildConfiguration_Project_ProjectId", table: "ProjectBuildConfiguration"); - migrationBuilder.DropColumn(name: "SuccessorId", table: "MailingTemplate"); - migrationBuilder.DropColumn(name: "AddressId", table: "Contact"); - migrationBuilder.DropTable("DeviceDeclaration"); - migrationBuilder.CreateTable( - name: "GoogleCloudMobileDeclaration", - columns: table => new - { - DeviceId = table.Column(nullable: false), - DeclarationDate = table.Column(nullable: false, defaultValueSql: "LOCALTIMESTAMP"), - DeviceOwnerId = table.Column(nullable: true), - GCMRegistrationId = table.Column(nullable: false), - LatestActivityUpdate = table.Column(nullable: true), - Model = table.Column(nullable: true), - Platform = table.Column(nullable: true), - Version = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_GoogleCloudMobileDeclaration", x => x.DeviceId); - table.ForeignKey( - name: "FK_GoogleCloudMobileDeclaration_ApplicationUser_DeviceOwnerId", - column: x => x.DeviceOwnerId, - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - }); - migrationBuilder.AlterColumn( - name: "ManagerId", - table: "MailingTemplate", - nullable: true); - migrationBuilder.AddColumn( - name: "PostalAddressId", - table: "Contact", - nullable: true); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Ban_ApplicationUser_TargetId", - table: "Ban", - column: "TargetId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_BlogPost_PostId", - table: "BlogTag", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_Tag_TagId", - table: "BlogTag", - column: "TagId", - principalTable: "Tag", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Comment_ApplicationUser_AuthorId", - table: "Comment", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Comment_BlogPost_PostId", - table: "Comment", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Schedule_ApplicationUser_OwnerId", - table: "Schedule", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", - table: "ChatConnection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_ChatRoomAccess_ApplicationUser_UserId", - table: "ChatRoomAccess", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PayPalPayment_ApplicationUser_ExecutorId", - table: "PayPalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Contact_PostalAddress_PostalAddressId", - table: "Contact", - column: "PostalAddressId", - principalTable: "PostalAddress", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_LiveFlow_ApplicationUser_OwnerId", - table: "LiveFlow", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_MailingTemplate_ApplicationUser_ManagerId", - table: "MailingTemplate", - column: "ManagerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_Activity_ActivityCode", - table: "Project", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_ApplicationUser_ClientId", - table: "Project", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_GitRepositoryReference_GitId", - table: "Project", - column: "GitId", - principalTable: "GitRepositoryReference", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_PerformerProfile_PerformerId", - table: "Project", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_ProjectBuildConfiguration_Project_ProjectId", - table: "ProjectBuildConfiguration", - column: "ProjectId", - principalTable: "Project", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2019/T2/20190510021107_chanDates.Designer.cs b/src/Yavsc.Server/Migrations/2019/T2/20190510021107_chanDates.Designer.cs deleted file mode 100644 index cb0b2f7c..00000000 --- a/src/Yavsc.Server/Migrations/2019/T2/20190510021107_chanDates.Designer.cs +++ /dev/null @@ -1,2044 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20190510021107_chanDates")] - partial class chanDates - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Abstract.Identity.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Reason") - .IsRequired(); - - b.Property("TargetId") - .IsRequired(); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId"); - - b.Property("BlogPostId"); - - b.HasKey("CircleId", "BlogPostId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("AllowMonthlyEmail"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512) - .HasAnnotation("Relational:DefaultValue", "/images/Users/icon_user.png") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DedicatedGoogleCalendar") - .HasAnnotation("MaxLength", 512); - - b.Property("DiskQuota") - .HasAnnotation("Relational:DefaultValue", "524288000") - .HasAnnotation("Relational:DefaultValueType", "System.Int64"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("MaxFileSize"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Count"); - - b.Property("Currency"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 256); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType") - .IsRequired(); - - b.Property("Description"); - - b.Property("OwnerId"); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content") - .HasAnnotation("MaxLength", 56224); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Lang") - .HasAnnotation("MaxLength", 8); - - b.Property("Photo") - .HasAnnotation("MaxLength", 1024); - - b.Property("Rate"); - - b.Property("Title") - .HasAnnotation("MaxLength", 1024); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId") - .IsRequired(); - - b.Property("Content"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ParentId"); - - b.Property("PostId"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Period", b => - { - b.Property("Start"); - - b.Property("End"); - - b.HasKey("Start", "End"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Property("OwnerId"); - - b.HasKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PeriodEnd"); - - b.Property("PeriodStart"); - - b.Property("Reccurence"); - - b.Property("ScheduleOwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId") - .IsRequired(); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.Property("Name") - .HasAnnotation("MaxLength", 255); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("LatestJoinPart"); - - b.Property("OwnerId"); - - b.Property("Topic"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Name"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomAccess", b => - { - b.Property("ChannelName"); - - b.Property("UserId"); - - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Level"); - - b.HasKey("ChannelName", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Cratie.Option", b => - { - b.Property("Code"); - - b.Property("CodeScrutin"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code", "CodeScrutin"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Blue"); - - b.Property("Green"); - - b.Property("Name"); - - b.Property("Red"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id"); - - b.Property("Summary"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId"); - - b.Property("ActionDistance"); - - b.Property("CarePrice"); - - b.Property("FlatFeeDiscount"); - - b.Property("HalfBalayagePrice"); - - b.Property("HalfBrushingPrice"); - - b.Property("HalfColorPrice"); - - b.Property("HalfDefrisPrice"); - - b.Property("HalfFoldingPrice"); - - b.Property("HalfMechPrice"); - - b.Property("HalfMultiColorPrice"); - - b.Property("HalfPermanentPrice"); - - b.Property("KidCutPrice"); - - b.Property("LongBalayagePrice"); - - b.Property("LongBrushingPrice"); - - b.Property("LongColorPrice"); - - b.Property("LongDefrisPrice"); - - b.Property("LongFoldingPrice"); - - b.Property("LongMechPrice"); - - b.Property("LongMultiColorPrice"); - - b.Property("LongPermanentPrice"); - - b.Property("ManBrushPrice"); - - b.Property("ManCutPrice"); - - b.Property("ScheduleOwnerId"); - - b.Property("ShampooPrice"); - - b.Property("ShortBalayagePrice"); - - b.Property("ShortBrushingPrice"); - - b.Property("ShortColorPrice"); - - b.Property("ShortDefrisPrice"); - - b.Property("ShortFoldingPrice"); - - b.Property("ShortMechPrice"); - - b.Property("ShortMultiColorPrice"); - - b.Property("ShortPermanentPrice"); - - b.Property("WomenHalfCutPrice"); - - b.Property("WomenLongCutPrice"); - - b.Property("WomenShortCutPrice"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("AdditionalInfo") - .HasAnnotation("MaxLength", 512); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("PrestationId"); - - b.Property("Previsional"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("SelectedProfileUserId"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Cares"); - - b.Property("Cut"); - - b.Property("Dressing"); - - b.Property("Gender"); - - b.Property("Length"); - - b.Property("Shampoo"); - - b.Property("Tech"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PrestationId"); - - b.Property("QueryId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Brand"); - - b.Property("ColorId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.Property("TaintId"); - - b.Property("PrestationId"); - - b.HasKey("TaintId", "PrestationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.DeviceDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("LatestActivityUpdate"); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Evolution.Feature", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("ShortName"); - - b.Property("Status"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("FeatureId"); - - b.Property("Status"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Depth"); - - b.Property("Description"); - - b.Property("Height"); - - b.Property("Name"); - - b.Property("Price"); - - b.Property("Public"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("For"); - - b.Property("Message"); - - b.Property("OwnerId"); - - b.Property("Sender"); - - b.Property("Topic"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.Property("UserId"); - - b.Property("NotificationId"); - - b.HasKey("UserId", "NotificationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Target"); - - b.Property("body") - .IsRequired(); - - b.Property("click_action") - .IsRequired(); - - b.Property("color"); - - b.Property("icon") - .HasAnnotation("Relational:DefaultValue", "exclam") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("sound"); - - b.Property("tag"); - - b.Property("title") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId"); - - b.Property("DjSettingsUserId"); - - b.Property("GeneralSettingsUserId"); - - b.Property("Rate"); - - b.Property("TendencyId"); - - b.HasKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId"); - - b.Property("SoundCloudId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId"); - - b.Property("UserId"); - - b.HasKey("InstrumentId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Property("CreationToken"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ExecutorId") - .IsRequired(); - - b.Property("OrderReference"); - - b.Property("PaypalPayerId"); - - b.Property("State"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("CreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId"); - - b.Property("CircleId"); - - b.HasKey("MemberId", "CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("AddressId"); - - b.Property("ApplicationUserId"); - - b.Property("EMail"); - - b.Property("Name"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.Property("HRef"); - - b.Property("Method"); - - b.Property("BrusherProfileUserId"); - - b.Property("ContentType"); - - b.Property("PayPalPaymentCreationToken"); - - b.Property("Rel"); - - b.HasKey("HRef", "Method"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostalAddress", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("City"); - - b.Property("Country"); - - b.Property("PostalCode"); - - b.Property("Province"); - - b.Property("State"); - - b.Property("Street1"); - - b.Property("Street2"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Streaming.LiveFlow", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DifferedFileName") - .HasAnnotation("MaxLength", 255); - - b.Property("MediaType") - .HasAnnotation("MaxLength", 127); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Pitch") - .HasAnnotation("MaxLength", 1023); - - b.Property("SequenceNumber"); - - b.Property("Title") - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("Hidden"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("SettingsClassName"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActionName"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FormationSettingsUserId"); - - b.Property("PerformerId"); - - b.Property("WorkingForId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients"); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationType"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("DoesCode", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Blog.BlogTrad", b => - { - b.Property("PostId"); - - b.Property("Lang"); - - b.Property("Body"); - - b.Property("Title"); - - b.Property("TraducerId"); - - b.HasKey("PostId", "Lang"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.EMailing.MailingTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Body") - .HasAnnotation("MaxLength", 65536); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ManagerId") - .IsRequired(); - - b.Property("ReplyToAddress"); - - b.Property("SuccessorId") - .IsRequired(); - - b.Property("ToSend"); - - b.Property("Topic") - .HasAnnotation("MaxLength", 128); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("GitId"); - - b.Property("Name") - .IsRequired(); - - b.Property("OwnerId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.Property("Version"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.Property("ProjectId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Branch") - .HasAnnotation("MaxLength", 512); - - b.Property("OwnerId") - .HasAnnotation("MaxLength", 1024); - - b.Property("Path") - .IsRequired(); - - b.Property("Url") - .HasAnnotation("MaxLength", 2048); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("TargetId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("BlogPostId"); - - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("PostId"); - - b.HasOne("Yavsc.Models.Relationship.Tag") - .WithMany() - .HasForeignKey("TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - - b.HasOne("Yavsc.Models.Blog.Comment") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Calendar.Period") - .WithMany() - .HasForeignKey("PeriodStart", "PeriodEnd"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomAccess", b => - { - b.HasOne("Yavsc.Models.Chat.ChatRoom") - .WithMany() - .HasForeignKey("ChannelName"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("SelectedProfileUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery") - .WithMany() - .HasForeignKey("QueryId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color") - .WithMany() - .HasForeignKey("ColorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairTaint") - .WithMany() - .HasForeignKey("TaintId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.DeviceDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.HasOne("Yavsc.Models.IT.Evolution.Feature") - .WithMany() - .HasForeignKey("FeatureId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.HasOne("Yavsc.Models.Messaging.Notification") - .WithMany() - .HasForeignKey("NotificationId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings") - .WithMany() - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings") - .WithMany() - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ExecutorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.Relationship.PostalAddress") - .WithMany() - .HasForeignKey("AddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("BrusherProfileUserId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PayPalPaymentCreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Streaming.LiveFlow", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings") - .WithMany() - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("WorkingForId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Blog.BlogTrad", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("TraducerId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.EMailing.MailingTemplate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ManagerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("SuccessorId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference") - .WithMany() - .HasForeignKey("GitId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.HasOne("Yavsc.Server.Models.IT.Project") - .WithMany() - .HasForeignKey("ProjectId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2019/T2/20190510021107_chanDates.cs b/src/Yavsc.Server/Migrations/2019/T2/20190510021107_chanDates.cs deleted file mode 100644 index 686a1ac0..00000000 --- a/src/Yavsc.Server/Migrations/2019/T2/20190510021107_chanDates.cs +++ /dev/null @@ -1,942 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class chanDates : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_Ban_ApplicationUser_TargetId", table: "Ban"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_BlogPost_PostId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_Tag_TagId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_Comment_ApplicationUser_AuthorId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Comment_BlogPost_PostId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Schedule_ApplicationUser_OwnerId", table: "Schedule"); - migrationBuilder.DropForeignKey(name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", table: "ChatConnection"); - migrationBuilder.DropForeignKey(name: "FK_ChatRoomAccess_ApplicationUser_UserId", table: "ChatRoomAccess"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PayPalPayment_ApplicationUser_ExecutorId", table: "PayPalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Contact_PostalAddress_AddressId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_LiveFlow_ApplicationUser_OwnerId", table: "LiveFlow"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_MailingTemplate_ApplicationUser_ManagerId", table: "MailingTemplate"); - migrationBuilder.DropForeignKey(name: "FK_MailingTemplate_ApplicationUser_SuccessorId", table: "MailingTemplate"); - migrationBuilder.DropForeignKey(name: "FK_Project_Activity_ActivityCode", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_ApplicationUser_ClientId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_GitRepositoryReference_GitId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_PerformerProfile_PerformerId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_ProjectBuildConfiguration_Project_ProjectId", table: "ProjectBuildConfiguration"); - migrationBuilder.AddColumn( - name: "DateCreated", - table: "ChatRoom", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - migrationBuilder.AddColumn( - name: "DateModified", - table: "ChatRoom", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - migrationBuilder.AddColumn( - name: "LatestJoinPart", - table: "ChatRoom", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - migrationBuilder.AddColumn( - name: "UserCreated", - table: "ChatRoom", - nullable: true); - migrationBuilder.AddColumn( - name: "UserModified", - table: "ChatRoom", - nullable: true); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Ban_ApplicationUser_TargetId", - table: "Ban", - column: "TargetId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_BlogPost_PostId", - table: "BlogTag", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_Tag_TagId", - table: "BlogTag", - column: "TagId", - principalTable: "Tag", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Comment_ApplicationUser_AuthorId", - table: "Comment", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Comment_BlogPost_PostId", - table: "Comment", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Schedule_ApplicationUser_OwnerId", - table: "Schedule", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", - table: "ChatConnection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_ChatRoomAccess_ApplicationUser_UserId", - table: "ChatRoomAccess", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PayPalPayment_ApplicationUser_ExecutorId", - table: "PayPalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Contact_PostalAddress_AddressId", - table: "Contact", - column: "AddressId", - principalTable: "PostalAddress", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_LiveFlow_ApplicationUser_OwnerId", - table: "LiveFlow", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_MailingTemplate_ApplicationUser_ManagerId", - table: "MailingTemplate", - column: "ManagerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_MailingTemplate_ApplicationUser_SuccessorId", - table: "MailingTemplate", - column: "SuccessorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_Activity_ActivityCode", - table: "Project", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_ApplicationUser_ClientId", - table: "Project", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_GitRepositoryReference_GitId", - table: "Project", - column: "GitId", - principalTable: "GitRepositoryReference", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_PerformerProfile_PerformerId", - table: "Project", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_ProjectBuildConfiguration_Project_ProjectId", - table: "ProjectBuildConfiguration", - column: "ProjectId", - principalTable: "Project", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_Ban_ApplicationUser_TargetId", table: "Ban"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_BlogPost_PostId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_Tag_TagId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_Comment_ApplicationUser_AuthorId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Comment_BlogPost_PostId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Schedule_ApplicationUser_OwnerId", table: "Schedule"); - migrationBuilder.DropForeignKey(name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", table: "ChatConnection"); - migrationBuilder.DropForeignKey(name: "FK_ChatRoomAccess_ApplicationUser_UserId", table: "ChatRoomAccess"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PayPalPayment_ApplicationUser_ExecutorId", table: "PayPalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Contact_PostalAddress_AddressId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_LiveFlow_ApplicationUser_OwnerId", table: "LiveFlow"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_MailingTemplate_ApplicationUser_ManagerId", table: "MailingTemplate"); - migrationBuilder.DropForeignKey(name: "FK_MailingTemplate_ApplicationUser_SuccessorId", table: "MailingTemplate"); - migrationBuilder.DropForeignKey(name: "FK_Project_Activity_ActivityCode", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_ApplicationUser_ClientId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_GitRepositoryReference_GitId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_PerformerProfile_PerformerId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_ProjectBuildConfiguration_Project_ProjectId", table: "ProjectBuildConfiguration"); - migrationBuilder.DropColumn(name: "DateCreated", table: "ChatRoom"); - migrationBuilder.DropColumn(name: "DateModified", table: "ChatRoom"); - migrationBuilder.DropColumn(name: "LatestJoinPart", table: "ChatRoom"); - migrationBuilder.DropColumn(name: "UserCreated", table: "ChatRoom"); - migrationBuilder.DropColumn(name: "UserModified", table: "ChatRoom"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Ban_ApplicationUser_TargetId", - table: "Ban", - column: "TargetId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_BlogPost_PostId", - table: "BlogTag", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_Tag_TagId", - table: "BlogTag", - column: "TagId", - principalTable: "Tag", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Comment_ApplicationUser_AuthorId", - table: "Comment", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Comment_BlogPost_PostId", - table: "Comment", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Schedule_ApplicationUser_OwnerId", - table: "Schedule", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", - table: "ChatConnection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_ChatRoomAccess_ApplicationUser_UserId", - table: "ChatRoomAccess", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PayPalPayment_ApplicationUser_ExecutorId", - table: "PayPalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Contact_PostalAddress_AddressId", - table: "Contact", - column: "AddressId", - principalTable: "PostalAddress", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_LiveFlow_ApplicationUser_OwnerId", - table: "LiveFlow", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_MailingTemplate_ApplicationUser_ManagerId", - table: "MailingTemplate", - column: "ManagerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_MailingTemplate_ApplicationUser_SuccessorId", - table: "MailingTemplate", - column: "SuccessorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_Activity_ActivityCode", - table: "Project", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_ApplicationUser_ClientId", - table: "Project", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_GitRepositoryReference_GitId", - table: "Project", - column: "GitId", - principalTable: "GitRepositoryReference", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_PerformerProfile_PerformerId", - table: "Project", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_ProjectBuildConfiguration_Project_ProjectId", - table: "ProjectBuildConfiguration", - column: "ProjectId", - principalTable: "Project", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2019/T2/20190622172941_userTrack.Designer.cs b/src/Yavsc.Server/Migrations/2019/T2/20190622172941_userTrack.Designer.cs deleted file mode 100644 index 22722c18..00000000 --- a/src/Yavsc.Server/Migrations/2019/T2/20190622172941_userTrack.Designer.cs +++ /dev/null @@ -1,2059 +0,0 @@ - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20190622172941_userTrack")] - partial class userTrack - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Abstract.Identity.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Reason") - .IsRequired(); - - b.Property("TargetId") - .IsRequired(); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId"); - - b.Property("BlogPostId"); - - b.HasKey("CircleId", "BlogPostId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("AllowMonthlyEmail"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512) - .HasAnnotation("Relational:DefaultValue", "/images/Users/icon_user.png") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("DedicatedGoogleCalendar") - .HasAnnotation("MaxLength", 512); - - b.Property("DiskQuota") - .HasAnnotation("Relational:DefaultValue", "524288000") - .HasAnnotation("Relational:DefaultValueType", "System.Int64"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("MaxFileSize"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber") - .HasAnnotation("MaxLength", 15); - - b.Property("BIC") - .HasAnnotation("MaxLength", 15); - - b.Property("BankCode") - .HasAnnotation("MaxLength", 5); - - b.Property("BankedKey"); - - b.Property("IBAN") - .HasAnnotation("MaxLength", 33); - - b.Property("WicketCode") - .HasAnnotation("MaxLength", 5); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Count"); - - b.Property("Currency"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 256); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType") - .IsRequired(); - - b.Property("Description"); - - b.Property("OwnerId"); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content") - .HasAnnotation("MaxLength", 56224); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Lang") - .HasAnnotation("MaxLength", 8); - - b.Property("Photo") - .HasAnnotation("MaxLength", 1024); - - b.Property("Rate"); - - b.Property("Title") - .HasAnnotation("MaxLength", 1024); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId") - .IsRequired(); - - b.Property("Content") - .HasAnnotation("MaxLength", 1024); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ParentId"); - - b.Property("PostId"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Period", b => - { - b.Property("Start"); - - b.Property("End"); - - b.HasKey("Start", "End"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Property("OwnerId"); - - b.HasKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PeriodEnd"); - - b.Property("PeriodStart"); - - b.Property("Reccurence"); - - b.Property("ScheduleOwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId") - .IsRequired(); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.Property("Name") - .HasAnnotation("MaxLength", 255); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("LatestJoinPart"); - - b.Property("OwnerId"); - - b.Property("Topic"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Name"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomAccess", b => - { - b.Property("ChannelName"); - - b.Property("UserId"); - - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Level"); - - b.HasKey("ChannelName", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Cratie.Option", b => - { - b.Property("Code"); - - b.Property("CodeScrutin"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code", "CodeScrutin"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Blue"); - - b.Property("Green"); - - b.Property("Name"); - - b.Property("Red"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id"); - - b.Property("Summary"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId"); - - b.Property("ActionDistance"); - - b.Property("CarePrice"); - - b.Property("FlatFeeDiscount"); - - b.Property("HalfBalayagePrice"); - - b.Property("HalfBrushingPrice"); - - b.Property("HalfColorPrice"); - - b.Property("HalfDefrisPrice"); - - b.Property("HalfFoldingPrice"); - - b.Property("HalfMechPrice"); - - b.Property("HalfMultiColorPrice"); - - b.Property("HalfPermanentPrice"); - - b.Property("KidCutPrice"); - - b.Property("LongBalayagePrice"); - - b.Property("LongBrushingPrice"); - - b.Property("LongColorPrice"); - - b.Property("LongDefrisPrice"); - - b.Property("LongFoldingPrice"); - - b.Property("LongMechPrice"); - - b.Property("LongMultiColorPrice"); - - b.Property("LongPermanentPrice"); - - b.Property("ManBrushPrice"); - - b.Property("ManCutPrice"); - - b.Property("ScheduleOwnerId"); - - b.Property("ShampooPrice"); - - b.Property("ShortBalayagePrice"); - - b.Property("ShortBrushingPrice"); - - b.Property("ShortColorPrice"); - - b.Property("ShortDefrisPrice"); - - b.Property("ShortFoldingPrice"); - - b.Property("ShortMechPrice"); - - b.Property("ShortMultiColorPrice"); - - b.Property("ShortPermanentPrice"); - - b.Property("WomenHalfCutPrice"); - - b.Property("WomenLongCutPrice"); - - b.Property("WomenShortCutPrice"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("AdditionalInfo") - .HasAnnotation("MaxLength", 512); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("PrestationId"); - - b.Property("Previsional"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("SelectedProfileUserId"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Cares"); - - b.Property("Cut"); - - b.Property("Dressing"); - - b.Property("Gender"); - - b.Property("Length"); - - b.Property("Shampoo"); - - b.Property("Tech"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PrestationId"); - - b.Property("QueryId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Brand"); - - b.Property("ColorId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.Property("TaintId"); - - b.Property("PrestationId"); - - b.HasKey("TaintId", "PrestationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.DeviceDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("LatestActivityUpdate"); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Evolution.Feature", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description") - .HasAnnotation("MaxLength", 10240); - - b.Property("ShortName") - .HasAnnotation("MaxLength", 256); - - b.Property("Status"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("FeatureId"); - - b.Property("Status"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Depth"); - - b.Property("Description"); - - b.Property("Height"); - - b.Property("Name"); - - b.Property("Price"); - - b.Property("Public"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("For"); - - b.Property("Message"); - - b.Property("OwnerId"); - - b.Property("Sender"); - - b.Property("Topic"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.Property("UserId"); - - b.Property("NotificationId"); - - b.HasKey("UserId", "NotificationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Target"); - - b.Property("body") - .IsRequired(); - - b.Property("click_action") - .IsRequired(); - - b.Property("color"); - - b.Property("icon") - .HasAnnotation("Relational:DefaultValue", "exclam") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("sound"); - - b.Property("tag"); - - b.Property("title") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId"); - - b.Property("DjSettingsUserId"); - - b.Property("GeneralSettingsUserId"); - - b.Property("Rate"); - - b.Property("TendencyId"); - - b.HasKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId"); - - b.Property("SoundCloudId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId"); - - b.Property("UserId"); - - b.HasKey("InstrumentId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Property("CreationToken"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ExecutorId") - .IsRequired(); - - b.Property("OrderReference"); - - b.Property("PaypalPayerId"); - - b.Property("State"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("CreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId"); - - b.Property("CircleId"); - - b.HasKey("MemberId", "CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("AddressId"); - - b.Property("ApplicationUserId"); - - b.Property("EMail"); - - b.Property("Name"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.Property("HRef"); - - b.Property("Method"); - - b.Property("BrusherProfileUserId"); - - b.Property("ContentType"); - - b.Property("PayPalPaymentCreationToken"); - - b.Property("Rel"); - - b.HasKey("HRef", "Method"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostalAddress", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("City"); - - b.Property("Country"); - - b.Property("PostalCode"); - - b.Property("Province"); - - b.Property("State"); - - b.Property("Street1"); - - b.Property("Street2"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Streaming.LiveFlow", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DifferedFileName") - .HasAnnotation("MaxLength", 255); - - b.Property("MediaType") - .HasAnnotation("MaxLength", 127); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Pitch") - .HasAnnotation("MaxLength", 1023); - - b.Property("SequenceNumber"); - - b.Property("Title") - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasAnnotation("MaxLength", 512); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("Hidden"); - - b.Property("ModeratorGroupName"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("ParentCode") - .HasAnnotation("MaxLength", 512); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("SettingsClassName"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActionName"); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FormationSettingsUserId"); - - b.Property("PerformerId"); - - b.Property("WorkingForId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN") - .IsRequired() - .HasAnnotation("MaxLength", 14); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients"); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationType"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("DoesCode", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Blog.BlogTrad", b => - { - b.Property("PostId"); - - b.Property("Lang"); - - b.Property("Body"); - - b.Property("Title"); - - b.Property("TraducerId"); - - b.HasKey("PostId", "Lang"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.EMailing.MailingTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Body") - .HasAnnotation("MaxLength", 65536); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ManagerId") - .IsRequired(); - - b.Property("ReplyToAddress"); - - b.Property("SuccessorId") - .IsRequired(); - - b.Property("ToSend"); - - b.Property("Topic") - .HasAnnotation("MaxLength", 128); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("GitId"); - - b.Property("Name") - .IsRequired(); - - b.Property("OwnerId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.Property("Version"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .IsRequired(); - - b.Property("ProjectId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Branch") - .HasAnnotation("MaxLength", 512); - - b.Property("OwnerId") - .HasAnnotation("MaxLength", 1024); - - b.Property("Path") - .IsRequired(); - - b.Property("Url") - .HasAnnotation("MaxLength", 2048); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("TargetId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("BlogPostId"); - - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("PostId"); - - b.HasOne("Yavsc.Models.Relationship.Tag") - .WithMany() - .HasForeignKey("TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - - b.HasOne("Yavsc.Models.Blog.Comment") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Calendar.Period") - .WithMany() - .HasForeignKey("PeriodStart", "PeriodEnd"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomAccess", b => - { - b.HasOne("Yavsc.Models.Chat.ChatRoom") - .WithMany() - .HasForeignKey("ChannelName"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("SelectedProfileUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery") - .WithMany() - .HasForeignKey("QueryId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color") - .WithMany() - .HasForeignKey("ColorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairTaint") - .WithMany() - .HasForeignKey("TaintId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.DeviceDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.HasOne("Yavsc.Models.IT.Evolution.Feature") - .WithMany() - .HasForeignKey("FeatureId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.HasOne("Yavsc.Models.Messaging.Notification") - .WithMany() - .HasForeignKey("NotificationId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings") - .WithMany() - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings") - .WithMany() - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ExecutorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.Relationship.PostalAddress") - .WithMany() - .HasForeignKey("AddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("BrusherProfileUserId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PayPalPaymentCreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Streaming.LiveFlow", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings") - .WithMany() - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("WorkingForId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Blog.BlogTrad", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("TraducerId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.EMailing.MailingTemplate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ManagerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("SuccessorId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference") - .WithMany() - .HasForeignKey("GitId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.HasOne("Yavsc.Server.Models.IT.Project") - .WithMany() - .HasForeignKey("ProjectId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2019/T2/20190622172941_userTrack.cs b/src/Yavsc.Server/Migrations/2019/T2/20190622172941_userTrack.cs deleted file mode 100644 index 095dc020..00000000 --- a/src/Yavsc.Server/Migrations/2019/T2/20190622172941_userTrack.cs +++ /dev/null @@ -1,945 +0,0 @@ -using System; -using System.Collections.Generic; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class userTrack : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_Ban_ApplicationUser_TargetId", table: "Ban"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_BlogPost_PostId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_Tag_TagId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_Comment_ApplicationUser_AuthorId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Comment_BlogPost_PostId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Schedule_ApplicationUser_OwnerId", table: "Schedule"); - migrationBuilder.DropForeignKey(name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", table: "ChatConnection"); - migrationBuilder.DropForeignKey(name: "FK_ChatRoomAccess_ApplicationUser_UserId", table: "ChatRoomAccess"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PayPalPayment_ApplicationUser_ExecutorId", table: "PayPalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Contact_PostalAddress_AddressId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_LiveFlow_ApplicationUser_OwnerId", table: "LiveFlow"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_MailingTemplate_ApplicationUser_ManagerId", table: "MailingTemplate"); - migrationBuilder.DropForeignKey(name: "FK_MailingTemplate_ApplicationUser_SuccessorId", table: "MailingTemplate"); - migrationBuilder.DropForeignKey(name: "FK_Project_Activity_ActivityCode", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_ApplicationUser_ClientId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_GitRepositoryReference_GitId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_PerformerProfile_PerformerId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_ProjectBuildConfiguration_Project_ProjectId", table: "ProjectBuildConfiguration"); - migrationBuilder.AddColumn( - name: "DateCreated", - table: "AspNetUsers", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - migrationBuilder.AddColumn( - name: "DateModified", - table: "AspNetUsers", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - migrationBuilder.AddColumn( - name: "UserCreated", - table: "AspNetUsers", - nullable: true); - migrationBuilder.AddColumn( - name: "UserModified", - table: "AspNetUsers", - nullable: true); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Ban_ApplicationUser_TargetId", - table: "Ban", - column: "TargetId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_UserId", - table: "BlackListed", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_BlogPost_PostId", - table: "BlogTag", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_Tag_TagId", - table: "BlogTag", - column: "TagId", - principalTable: "Tag", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Comment_ApplicationUser_AuthorId", - table: "Comment", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Comment_BlogPost_PostId", - table: "Comment", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Schedule_ApplicationUser_OwnerId", - table: "Schedule", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", - table: "ChatConnection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_ChatRoomAccess_ApplicationUser_UserId", - table: "ChatRoomAccess", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PayPalPayment_ApplicationUser_ExecutorId", - table: "PayPalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Contact_PostalAddress_AddressId", - table: "Contact", - column: "AddressId", - principalTable: "PostalAddress", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_LiveFlow_ApplicationUser_OwnerId", - table: "LiveFlow", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_MailingTemplate_ApplicationUser_ManagerId", - table: "MailingTemplate", - column: "ManagerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_MailingTemplate_ApplicationUser_SuccessorId", - table: "MailingTemplate", - column: "SuccessorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_Activity_ActivityCode", - table: "Project", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_ApplicationUser_ClientId", - table: "Project", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_GitRepositoryReference_GitId", - table: "Project", - column: "GitId", - principalTable: "GitRepositoryReference", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_PerformerProfile_PerformerId", - table: "Project", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_ProjectBuildConfiguration_Project_ProjectId", - table: "ProjectBuildConfiguration", - column: "ProjectId", - principalTable: "Project", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_Ban_ApplicationUser_TargetId", table: "Ban"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_UserId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_BlogPost_PostId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_Tag_TagId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_Comment_ApplicationUser_AuthorId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Comment_BlogPost_PostId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Schedule_ApplicationUser_OwnerId", table: "Schedule"); - migrationBuilder.DropForeignKey(name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", table: "ChatConnection"); - migrationBuilder.DropForeignKey(name: "FK_ChatRoomAccess_ApplicationUser_UserId", table: "ChatRoomAccess"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_ApplicationUser_UserId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_PayPalPayment_ApplicationUser_ExecutorId", table: "PayPalPayment"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_ApplicationUser_MemberId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Contact_PostalAddress_AddressId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_LiveFlow_ApplicationUser_OwnerId", table: "LiveFlow"); - migrationBuilder.DropForeignKey(name: "FK_CommandForm_Activity_ActivityCode", table: "CommandForm"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_Activity_DoesCode", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_UserActivity_PerformerProfile_UserId", table: "UserActivity"); - migrationBuilder.DropForeignKey(name: "FK_MailingTemplate_ApplicationUser_ManagerId", table: "MailingTemplate"); - migrationBuilder.DropForeignKey(name: "FK_MailingTemplate_ApplicationUser_SuccessorId", table: "MailingTemplate"); - migrationBuilder.DropForeignKey(name: "FK_Project_Activity_ActivityCode", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_ApplicationUser_ClientId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_GitRepositoryReference_GitId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_PerformerProfile_PerformerId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_ProjectBuildConfiguration_Project_ProjectId", table: "ProjectBuildConfiguration"); - migrationBuilder.DropColumn(name: "DateCreated", table: "AspNetUsers"); - migrationBuilder.DropColumn(name: "DateModified", table: "AspNetUsers"); - migrationBuilder.DropColumn(name: "UserCreated", table: "AspNetUsers"); - migrationBuilder.DropColumn(name: "UserModified", table: "AspNetUsers"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Ban_ApplicationUser_TargetId", - table: "Ban", - column: "TargetId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_BlogPost_PostId", - table: "BlogTag", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_Tag_TagId", - table: "BlogTag", - column: "TagId", - principalTable: "Tag", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Comment_ApplicationUser_AuthorId", - table: "Comment", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Comment_BlogPost_PostId", - table: "Comment", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Schedule_ApplicationUser_OwnerId", - table: "Schedule", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", - table: "ChatConnection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_ChatRoomAccess_ApplicationUser_UserId", - table: "ChatRoomAccess", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_ApplicationUser_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PayPalPayment_ApplicationUser_ExecutorId", - table: "PayPalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_ApplicationUser_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Contact_PostalAddress_AddressId", - table: "Contact", - column: "AddressId", - principalTable: "PostalAddress", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_LiveFlow_ApplicationUser_OwnerId", - table: "LiveFlow", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_MailingTemplate_ApplicationUser_ManagerId", - table: "MailingTemplate", - column: "ManagerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_MailingTemplate_ApplicationUser_SuccessorId", - table: "MailingTemplate", - column: "SuccessorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_Activity_ActivityCode", - table: "Project", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_ApplicationUser_ClientId", - table: "Project", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_GitRepositoryReference_GitId", - table: "Project", - column: "GitId", - principalTable: "GitRepositoryReference", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_PerformerProfile_PerformerId", - table: "Project", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_ProjectBuildConfiguration_Project_ProjectId", - table: "ProjectBuildConfiguration", - column: "ProjectId", - principalTable: "Project", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2021/20210530122042_template-key.Designer.cs b/src/Yavsc.Server/Migrations/2021/20210530122042_template-key.Designer.cs deleted file mode 100644 index 7ef31cf5..00000000 --- a/src/Yavsc.Server/Migrations/2021/20210530122042_template-key.Designer.cs +++ /dev/null @@ -1,2069 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20210530122042_template-key")] - partial class templatekey - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Abstract.Identity.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Reason") - .IsRequired(); - - b.Property("TargetId") - .IsRequired(); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId"); - - b.Property("BlogPostId"); - - b.HasKey("CircleId", "BlogPostId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("AllowMonthlyEmail"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512) - .HasAnnotation("Relational:DefaultValue", "/images/Users/icon_user.png") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("DedicatedGoogleCalendar") - .HasAnnotation("MaxLength", 512); - - b.Property("DiskQuota") - .HasAnnotation("Relational:DefaultValue", "524288000") - .HasAnnotation("Relational:DefaultValueType", "System.Int64"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("MaxFileSize"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber"); - - b.Property("BIC"); - - b.Property("BankCode"); - - b.Property("BankedKey"); - - b.Property("IBAN"); - - b.Property("WicketCode"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Count"); - - b.Property("Currency"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 256); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType") - .IsRequired(); - - b.Property("Description"); - - b.Property("OwnerId"); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Lang"); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("Title"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId") - .IsRequired(); - - b.Property("Content"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ParentId"); - - b.Property("PostId"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Period", b => - { - b.Property("Start"); - - b.Property("End"); - - b.HasKey("Start", "End"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Property("OwnerId"); - - b.HasKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PeriodEnd"); - - b.Property("PeriodStart"); - - b.Property("Reccurence"); - - b.Property("ScheduleOwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId") - .IsRequired(); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.Property("Name"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("LatestJoinPart"); - - b.Property("OwnerId"); - - b.Property("Topic"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Name"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomAccess", b => - { - b.Property("ChannelName"); - - b.Property("UserId"); - - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Level"); - - b.HasKey("ChannelName", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Cratie.Option", b => - { - b.Property("Code"); - - b.Property("CodeScrutin"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code", "CodeScrutin"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Blue"); - - b.Property("Green"); - - b.Property("Name"); - - b.Property("Red"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id"); - - b.Property("Summary"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId"); - - b.Property("ActionDistance"); - - b.Property("CarePrice"); - - b.Property("FlatFeeDiscount"); - - b.Property("HalfBalayagePrice"); - - b.Property("HalfBrushingPrice"); - - b.Property("HalfColorPrice"); - - b.Property("HalfDefrisPrice"); - - b.Property("HalfFoldingPrice"); - - b.Property("HalfMechPrice"); - - b.Property("HalfMultiColorPrice"); - - b.Property("HalfPermanentPrice"); - - b.Property("KidCutPrice"); - - b.Property("LongBalayagePrice"); - - b.Property("LongBrushingPrice"); - - b.Property("LongColorPrice"); - - b.Property("LongDefrisPrice"); - - b.Property("LongFoldingPrice"); - - b.Property("LongMechPrice"); - - b.Property("LongMultiColorPrice"); - - b.Property("LongPermanentPrice"); - - b.Property("ManBrushPrice"); - - b.Property("ManCutPrice"); - - b.Property("ScheduleOwnerId"); - - b.Property("ShampooPrice"); - - b.Property("ShortBalayagePrice"); - - b.Property("ShortBrushingPrice"); - - b.Property("ShortColorPrice"); - - b.Property("ShortDefrisPrice"); - - b.Property("ShortFoldingPrice"); - - b.Property("ShortMechPrice"); - - b.Property("ShortMultiColorPrice"); - - b.Property("ShortPermanentPrice"); - - b.Property("WomenHalfCutPrice"); - - b.Property("WomenLongCutPrice"); - - b.Property("WomenShortCutPrice"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("AdditionalInfo"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("PrestationId"); - - b.Property("Previsional"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("SelectedProfileUserId"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Cares"); - - b.Property("Cut"); - - b.Property("Dressing"); - - b.Property("Gender"); - - b.Property("Length"); - - b.Property("Shampoo"); - - b.Property("Tech"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PrestationId"); - - b.Property("QueryId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Brand"); - - b.Property("ColorId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.Property("TaintId"); - - b.Property("PrestationId"); - - b.HasKey("TaintId", "PrestationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.DeviceDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("LatestActivityUpdate"); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Evolution.Feature", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("ShortName"); - - b.Property("Status"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("FeatureId"); - - b.Property("Status"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Depth"); - - b.Property("Description"); - - b.Property("Height"); - - b.Property("Name"); - - b.Property("Price"); - - b.Property("Public"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("For"); - - b.Property("Message"); - - b.Property("OwnerId"); - - b.Property("Sender"); - - b.Property("Topic"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.Property("UserId"); - - b.Property("NotificationId"); - - b.HasKey("UserId", "NotificationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Target"); - - b.Property("body") - .IsRequired(); - - b.Property("click_action") - .IsRequired(); - - b.Property("color"); - - b.Property("icon") - .HasAnnotation("Relational:DefaultValue", "exclam") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("sound"); - - b.Property("tag"); - - b.Property("title") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.InstrumentRating", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("InstrumentId"); - - b.Property("OwnerId"); - - b.Property("Rate"); - - b.HasKey("Id"); - - b.HasAlternateKey("InstrumentId", "OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId"); - - b.Property("DjSettingsUserId"); - - b.Property("GeneralSettingsUserId"); - - b.Property("Rate"); - - b.Property("TendencyId"); - - b.HasKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId"); - - b.Property("SoundCloudId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId"); - - b.Property("UserId"); - - b.HasKey("InstrumentId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Property("CreationToken"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ExecutorId"); - - b.Property("OrderReference"); - - b.Property("PaypalPayerId"); - - b.Property("State"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("CreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId"); - - b.Property("CircleId"); - - b.HasKey("MemberId", "CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("AddressId"); - - b.Property("ApplicationUserId"); - - b.Property("EMail"); - - b.Property("Name"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.Property("HRef"); - - b.Property("Method"); - - b.Property("BrusherProfileUserId"); - - b.Property("ContentType"); - - b.Property("PayPalPaymentCreationToken"); - - b.Property("Rel"); - - b.HasKey("HRef", "Method"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostalAddress", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("City"); - - b.Property("Country"); - - b.Property("PostalCode"); - - b.Property("Province"); - - b.Property("State"); - - b.Property("Street1"); - - b.Property("Street2"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Streaming.LiveFlow", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DifferedFileName"); - - b.Property("MediaType"); - - b.Property("OwnerId"); - - b.Property("Pitch"); - - b.Property("SequenceNumber"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("Hidden"); - - b.Property("ModeratorGroupName"); - - b.Property("Name"); - - b.Property("ParentCode"); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("SettingsClassName"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActionName"); - - b.Property("ActivityCode"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FormationSettingsUserId"); - - b.Property("PerformerId"); - - b.Property("WorkingForId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN"); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients"); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId"); - - b.Property("DisplayName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationType"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("DoesCode", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Access.CircleAuthorizationToFile", b => - { - b.Property("CircleId"); - - b.Property("FullPath"); - - b.HasKey("CircleId", "FullPath"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Blog.BlogTrad", b => - { - b.Property("PostId"); - - b.Property("Lang"); - - b.Property("Body"); - - b.Property("Title"); - - b.Property("TraducerId"); - - b.HasKey("PostId", "Lang"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.EMailing.MailingTemplate", b => - { - b.Property("Id") - .HasAnnotation("MaxLength", 256); - - b.Property("Body") - .HasAnnotation("MaxLength", 65536); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ManagerId") - .IsRequired(); - - b.Property("ReplyToAddress"); - - b.Property("SuccessorId") - .IsRequired(); - - b.Property("ToSend"); - - b.Property("Topic") - .HasAnnotation("MaxLength", 256); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("GitId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.Property("Version"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("ProjectId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Branch"); - - b.Property("OwnerId"); - - b.Property("Path"); - - b.Property("Url"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("TargetId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("BlogPostId"); - - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("PostId"); - - b.HasOne("Yavsc.Models.Relationship.Tag") - .WithMany() - .HasForeignKey("TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - - b.HasOne("Yavsc.Models.Blog.Comment") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Calendar.Period") - .WithMany() - .HasForeignKey("PeriodStart", "PeriodEnd"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomAccess", b => - { - b.HasOne("Yavsc.Models.Chat.ChatRoom") - .WithMany() - .HasForeignKey("ChannelName"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("SelectedProfileUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery") - .WithMany() - .HasForeignKey("QueryId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color") - .WithMany() - .HasForeignKey("ColorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairTaint") - .WithMany() - .HasForeignKey("TaintId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.DeviceDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.HasOne("Yavsc.Models.IT.Evolution.Feature") - .WithMany() - .HasForeignKey("FeatureId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.HasOne("Yavsc.Models.Messaging.Notification") - .WithMany() - .HasForeignKey("NotificationId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.InstrumentRating", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings") - .WithMany() - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings") - .WithMany() - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ExecutorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.Relationship.PostalAddress") - .WithMany() - .HasForeignKey("AddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("BrusherProfileUserId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PayPalPaymentCreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Streaming.LiveFlow", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings") - .WithMany() - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("WorkingForId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Access.CircleAuthorizationToFile", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Blog.BlogTrad", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("TraducerId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.EMailing.MailingTemplate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ManagerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("SuccessorId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference") - .WithMany() - .HasForeignKey("GitId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.HasOne("Yavsc.Server.Models.IT.Project") - .WithMany() - .HasForeignKey("ProjectId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2021/20210530122042_template-key.cs b/src/Yavsc.Server/Migrations/2021/20210530122042_template-key.cs deleted file mode 100644 index 1a20c14f..00000000 --- a/src/Yavsc.Server/Migrations/2021/20210530122042_template-key.cs +++ /dev/null @@ -1,971 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class templatekey : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_Ban_ApplicationUser_TargetId", table: "Ban"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_UserId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_BlogPost_PostId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_Tag_TagId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_Comment_ApplicationUser_AuthorId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Comment_BlogPost_PostId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Schedule_ApplicationUser_OwnerId", table: "Schedule"); - migrationBuilder.DropForeignKey(name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", table: "ChatConnection"); - migrationBuilder.DropForeignKey(name: "FK_ChatRoomAccess_ApplicationUser_UserId", table: "ChatRoomAccess"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_InstrumentRating_Instrument_InstrumentId", table: "InstrumentRating"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Contact_PostalAddress_AddressId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToFile_Circle_CircleId", table: "CircleAuthorizationToFile"); - migrationBuilder.DropForeignKey(name: "FK_MailingTemplate_ApplicationUser_ManagerId", table: "MailingTemplate"); - migrationBuilder.DropForeignKey(name: "FK_MailingTemplate_ApplicationUser_SuccessorId", table: "MailingTemplate"); - migrationBuilder.DropForeignKey(name: "FK_Project_Activity_ActivityCode", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_ApplicationUser_ClientId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_GitRepositoryReference_GitId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_PerformerProfile_PerformerId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_ProjectBuildConfiguration_Project_ProjectId", table: "ProjectBuildConfiguration"); - migrationBuilder.AlterColumn( - name: "Path", - table: "GitRepositoryReference", - nullable: true); - migrationBuilder.AlterColumn( - name: "Name", - table: "ProjectBuildConfiguration", - nullable: true); - migrationBuilder.AlterColumn( - name: "Name", - table: "Project", - nullable: true); - migrationBuilder.AlterColumn( - name: "Id", - table: "MailingTemplate", - nullable: false); - migrationBuilder.AlterColumn( - name: "SIREN", - table: "PerformerProfile", - nullable: true); - migrationBuilder.AlterColumn( - name: "ActivityCode", - table: "CommandForm", - nullable: true); - migrationBuilder.AlterColumn( - name: "Name", - table: "Activity", - nullable: true); - migrationBuilder.AlterColumn( - name: "OwnerId", - table: "LiveFlow", - nullable: true); - migrationBuilder.AlterColumn( - name: "Name", - table: "Tag", - nullable: true); - migrationBuilder.AlterColumn( - name: "Address", - table: "Location", - nullable: true); - migrationBuilder.AlterColumn( - name: "OwnerId", - table: "Circle", - nullable: true); - migrationBuilder.AlterColumn( - name: "Name", - table: "Circle", - nullable: true); - migrationBuilder.AlterColumn( - name: "ExecutorId", - table: "PayPalPayment", - nullable: true); - migrationBuilder.AlterColumn( - name: "Name", - table: "MusicalTendency", - nullable: true); - migrationBuilder.AlterColumn( - name: "Name", - table: "Instrument", - nullable: true); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Ban_ApplicationUser_TargetId", - table: "Ban", - column: "TargetId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_UserId", - table: "BlackListed", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_BlogPost_PostId", - table: "BlogTag", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_Tag_TagId", - table: "BlogTag", - column: "TagId", - principalTable: "Tag", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Comment_ApplicationUser_AuthorId", - table: "Comment", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Comment_BlogPost_PostId", - table: "Comment", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Schedule_ApplicationUser_OwnerId", - table: "Schedule", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", - table: "ChatConnection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_ChatRoomAccess_ApplicationUser_UserId", - table: "ChatRoomAccess", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_InstrumentRating_Instrument_InstrumentId", - table: "InstrumentRating", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Contact_PostalAddress_AddressId", - table: "Contact", - column: "AddressId", - principalTable: "PostalAddress", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToFile_Circle_CircleId", - table: "CircleAuthorizationToFile", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_MailingTemplate_ApplicationUser_ManagerId", - table: "MailingTemplate", - column: "ManagerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_MailingTemplate_ApplicationUser_SuccessorId", - table: "MailingTemplate", - column: "SuccessorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_Activity_ActivityCode", - table: "Project", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_ApplicationUser_ClientId", - table: "Project", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_GitRepositoryReference_GitId", - table: "Project", - column: "GitId", - principalTable: "GitRepositoryReference", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_PerformerProfile_PerformerId", - table: "Project", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_ProjectBuildConfiguration_Project_ProjectId", - table: "ProjectBuildConfiguration", - column: "ProjectId", - principalTable: "Project", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_Ban_ApplicationUser_TargetId", table: "Ban"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_UserId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_BlogPost_PostId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_Tag_TagId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_Comment_ApplicationUser_AuthorId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Comment_BlogPost_PostId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Schedule_ApplicationUser_OwnerId", table: "Schedule"); - migrationBuilder.DropForeignKey(name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", table: "ChatConnection"); - migrationBuilder.DropForeignKey(name: "FK_ChatRoomAccess_ApplicationUser_UserId", table: "ChatRoomAccess"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_InstrumentRating_Instrument_InstrumentId", table: "InstrumentRating"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Contact_PostalAddress_AddressId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToFile_Circle_CircleId", table: "CircleAuthorizationToFile"); - migrationBuilder.DropForeignKey(name: "FK_MailingTemplate_ApplicationUser_ManagerId", table: "MailingTemplate"); - migrationBuilder.DropForeignKey(name: "FK_MailingTemplate_ApplicationUser_SuccessorId", table: "MailingTemplate"); - migrationBuilder.DropForeignKey(name: "FK_Project_Activity_ActivityCode", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_ApplicationUser_ClientId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_GitRepositoryReference_GitId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_PerformerProfile_PerformerId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_ProjectBuildConfiguration_Project_ProjectId", table: "ProjectBuildConfiguration"); - migrationBuilder.AlterColumn( - name: "Path", - table: "GitRepositoryReference", - nullable: false); - migrationBuilder.AlterColumn( - name: "Name", - table: "ProjectBuildConfiguration", - nullable: false); - migrationBuilder.AlterColumn( - name: "Name", - table: "Project", - nullable: false); - migrationBuilder.AlterColumn( - name: "Id", - table: "MailingTemplate", - nullable: false) - .Annotation("Npgsql:Serial", true); - migrationBuilder.AlterColumn( - name: "SIREN", - table: "PerformerProfile", - nullable: false); - migrationBuilder.AlterColumn( - name: "ActivityCode", - table: "CommandForm", - nullable: false); - migrationBuilder.AlterColumn( - name: "Name", - table: "Activity", - nullable: false); - migrationBuilder.AlterColumn( - name: "OwnerId", - table: "LiveFlow", - nullable: false); - migrationBuilder.AlterColumn( - name: "Name", - table: "Tag", - nullable: false); - migrationBuilder.AlterColumn( - name: "Address", - table: "Location", - nullable: false); - migrationBuilder.AlterColumn( - name: "OwnerId", - table: "Circle", - nullable: false); - migrationBuilder.AlterColumn( - name: "Name", - table: "Circle", - nullable: false); - migrationBuilder.AlterColumn( - name: "ExecutorId", - table: "PayPalPayment", - nullable: false); - migrationBuilder.AlterColumn( - name: "Name", - table: "MusicalTendency", - nullable: false); - migrationBuilder.AlterColumn( - name: "Name", - table: "Instrument", - nullable: false); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Ban_ApplicationUser_TargetId", - table: "Ban", - column: "TargetId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_UserId", - table: "BlackListed", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_BlogPost_PostId", - table: "BlogTag", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_Tag_TagId", - table: "BlogTag", - column: "TagId", - principalTable: "Tag", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Comment_ApplicationUser_AuthorId", - table: "Comment", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Comment_BlogPost_PostId", - table: "Comment", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Schedule_ApplicationUser_OwnerId", - table: "Schedule", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", - table: "ChatConnection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_ChatRoomAccess_ApplicationUser_UserId", - table: "ChatRoomAccess", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_InstrumentRating_Instrument_InstrumentId", - table: "InstrumentRating", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Contact_PostalAddress_AddressId", - table: "Contact", - column: "AddressId", - principalTable: "PostalAddress", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToFile_Circle_CircleId", - table: "CircleAuthorizationToFile", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_MailingTemplate_ApplicationUser_ManagerId", - table: "MailingTemplate", - column: "ManagerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_MailingTemplate_ApplicationUser_SuccessorId", - table: "MailingTemplate", - column: "SuccessorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_Activity_ActivityCode", - table: "Project", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_ApplicationUser_ClientId", - table: "Project", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_GitRepositoryReference_GitId", - table: "Project", - column: "GitId", - principalTable: "GitRepositoryReference", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_PerformerProfile_PerformerId", - table: "Project", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_ProjectBuildConfiguration_Project_ProjectId", - table: "ProjectBuildConfiguration", - column: "ProjectId", - principalTable: "Project", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2021/20210530213408_mailling-not-mailling-lists.Designer.cs b/src/Yavsc.Server/Migrations/2021/20210530213408_mailling-not-mailling-lists.Designer.cs deleted file mode 100644 index a7d29e3d..00000000 --- a/src/Yavsc.Server/Migrations/2021/20210530213408_mailling-not-mailling-lists.Designer.cs +++ /dev/null @@ -1,2050 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20210530213408_mailling-not-mailling-lists")] - partial class maillingnotmaillinglists - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Abstract.Identity.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Reason") - .IsRequired(); - - b.Property("TargetId") - .IsRequired(); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId"); - - b.Property("BlogPostId"); - - b.HasKey("CircleId", "BlogPostId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("AllowMonthlyEmail"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512) - .HasAnnotation("Relational:DefaultValue", "/images/Users/icon_user.png") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("DedicatedGoogleCalendar") - .HasAnnotation("MaxLength", 512); - - b.Property("DiskQuota") - .HasAnnotation("Relational:DefaultValue", "524288000") - .HasAnnotation("Relational:DefaultValueType", "System.Int64"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("MaxFileSize"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber"); - - b.Property("BIC"); - - b.Property("BankCode"); - - b.Property("BankedKey"); - - b.Property("IBAN"); - - b.Property("WicketCode"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Count"); - - b.Property("Currency"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 256); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType") - .IsRequired(); - - b.Property("Description"); - - b.Property("OwnerId"); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Lang"); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("Title"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId") - .IsRequired(); - - b.Property("Content"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ParentId"); - - b.Property("PostId"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Period", b => - { - b.Property("Start"); - - b.Property("End"); - - b.HasKey("Start", "End"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Property("OwnerId"); - - b.HasKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PeriodEnd"); - - b.Property("PeriodStart"); - - b.Property("Reccurence"); - - b.Property("ScheduleOwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId") - .IsRequired(); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.Property("Name"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("LatestJoinPart"); - - b.Property("OwnerId"); - - b.Property("Topic"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Name"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomAccess", b => - { - b.Property("ChannelName"); - - b.Property("UserId"); - - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Level"); - - b.HasKey("ChannelName", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Cratie.Option", b => - { - b.Property("Code"); - - b.Property("CodeScrutin"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code", "CodeScrutin"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Blue"); - - b.Property("Green"); - - b.Property("Name"); - - b.Property("Red"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id"); - - b.Property("Summary"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId"); - - b.Property("ActionDistance"); - - b.Property("CarePrice"); - - b.Property("FlatFeeDiscount"); - - b.Property("HalfBalayagePrice"); - - b.Property("HalfBrushingPrice"); - - b.Property("HalfColorPrice"); - - b.Property("HalfDefrisPrice"); - - b.Property("HalfFoldingPrice"); - - b.Property("HalfMechPrice"); - - b.Property("HalfMultiColorPrice"); - - b.Property("HalfPermanentPrice"); - - b.Property("KidCutPrice"); - - b.Property("LongBalayagePrice"); - - b.Property("LongBrushingPrice"); - - b.Property("LongColorPrice"); - - b.Property("LongDefrisPrice"); - - b.Property("LongFoldingPrice"); - - b.Property("LongMechPrice"); - - b.Property("LongMultiColorPrice"); - - b.Property("LongPermanentPrice"); - - b.Property("ManBrushPrice"); - - b.Property("ManCutPrice"); - - b.Property("ScheduleOwnerId"); - - b.Property("ShampooPrice"); - - b.Property("ShortBalayagePrice"); - - b.Property("ShortBrushingPrice"); - - b.Property("ShortColorPrice"); - - b.Property("ShortDefrisPrice"); - - b.Property("ShortFoldingPrice"); - - b.Property("ShortMechPrice"); - - b.Property("ShortMultiColorPrice"); - - b.Property("ShortPermanentPrice"); - - b.Property("WomenHalfCutPrice"); - - b.Property("WomenLongCutPrice"); - - b.Property("WomenShortCutPrice"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("AdditionalInfo"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("PrestationId"); - - b.Property("Previsional"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("SelectedProfileUserId"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Cares"); - - b.Property("Cut"); - - b.Property("Dressing"); - - b.Property("Gender"); - - b.Property("Length"); - - b.Property("Shampoo"); - - b.Property("Tech"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PrestationId"); - - b.Property("QueryId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Brand"); - - b.Property("ColorId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.Property("TaintId"); - - b.Property("PrestationId"); - - b.HasKey("TaintId", "PrestationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.DeviceDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("LatestActivityUpdate"); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Evolution.Feature", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("ShortName"); - - b.Property("Status"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("FeatureId"); - - b.Property("Status"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Depth"); - - b.Property("Description"); - - b.Property("Height"); - - b.Property("Name"); - - b.Property("Price"); - - b.Property("Public"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("For"); - - b.Property("Message"); - - b.Property("OwnerId"); - - b.Property("Sender"); - - b.Property("Topic"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.Property("UserId"); - - b.Property("NotificationId"); - - b.HasKey("UserId", "NotificationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Target"); - - b.Property("body") - .IsRequired(); - - b.Property("click_action") - .IsRequired(); - - b.Property("color"); - - b.Property("icon") - .HasAnnotation("Relational:DefaultValue", "exclam") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("sound"); - - b.Property("tag"); - - b.Property("title") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.InstrumentRating", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("InstrumentId"); - - b.Property("OwnerId"); - - b.Property("Rate"); - - b.HasKey("Id"); - - b.HasAlternateKey("InstrumentId", "OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId"); - - b.Property("DjSettingsUserId"); - - b.Property("GeneralSettingsUserId"); - - b.Property("Rate"); - - b.Property("TendencyId"); - - b.HasKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId"); - - b.Property("SoundCloudId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId"); - - b.Property("UserId"); - - b.HasKey("InstrumentId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Property("CreationToken"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ExecutorId"); - - b.Property("OrderReference"); - - b.Property("PaypalPayerId"); - - b.Property("State"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("CreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId"); - - b.Property("CircleId"); - - b.HasKey("MemberId", "CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("AddressId"); - - b.Property("ApplicationUserId"); - - b.Property("EMail"); - - b.Property("Name"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.Property("HRef"); - - b.Property("Method"); - - b.Property("BrusherProfileUserId"); - - b.Property("ContentType"); - - b.Property("PayPalPaymentCreationToken"); - - b.Property("Rel"); - - b.HasKey("HRef", "Method"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostalAddress", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("City"); - - b.Property("Country"); - - b.Property("PostalCode"); - - b.Property("Province"); - - b.Property("State"); - - b.Property("Street1"); - - b.Property("Street2"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Streaming.LiveFlow", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DifferedFileName"); - - b.Property("MediaType"); - - b.Property("OwnerId"); - - b.Property("Pitch"); - - b.Property("SequenceNumber"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("Hidden"); - - b.Property("ModeratorGroupName"); - - b.Property("Name"); - - b.Property("ParentCode"); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("SettingsClassName"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActionName"); - - b.Property("ActivityCode"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FormationSettingsUserId"); - - b.Property("PerformerId"); - - b.Property("WorkingForId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN"); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients"); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId"); - - b.Property("DisplayName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationType"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("DoesCode", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Access.CircleAuthorizationToFile", b => - { - b.Property("CircleId"); - - b.Property("FullPath"); - - b.HasKey("CircleId", "FullPath"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Blog.BlogTrad", b => - { - b.Property("PostId"); - - b.Property("Lang"); - - b.Property("Body"); - - b.Property("Title"); - - b.Property("TraducerId"); - - b.HasKey("PostId", "Lang"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.EMailing.MailingTemplate", b => - { - b.Property("Id"); - - b.Property("Body") - .HasAnnotation("MaxLength", 65536); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ReplyToAddress"); - - b.Property("ToSend"); - - b.Property("Topic"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("GitId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.Property("Version"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("ProjectId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Branch"); - - b.Property("OwnerId"); - - b.Property("Path"); - - b.Property("Url"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("TargetId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("BlogPostId"); - - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("PostId"); - - b.HasOne("Yavsc.Models.Relationship.Tag") - .WithMany() - .HasForeignKey("TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - - b.HasOne("Yavsc.Models.Blog.Comment") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Calendar.Period") - .WithMany() - .HasForeignKey("PeriodStart", "PeriodEnd"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomAccess", b => - { - b.HasOne("Yavsc.Models.Chat.ChatRoom") - .WithMany() - .HasForeignKey("ChannelName"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("SelectedProfileUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery") - .WithMany() - .HasForeignKey("QueryId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color") - .WithMany() - .HasForeignKey("ColorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairTaint") - .WithMany() - .HasForeignKey("TaintId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.DeviceDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.HasOne("Yavsc.Models.IT.Evolution.Feature") - .WithMany() - .HasForeignKey("FeatureId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.HasOne("Yavsc.Models.Messaging.Notification") - .WithMany() - .HasForeignKey("NotificationId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.InstrumentRating", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings") - .WithMany() - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings") - .WithMany() - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ExecutorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.Relationship.PostalAddress") - .WithMany() - .HasForeignKey("AddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("BrusherProfileUserId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PayPalPaymentCreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Streaming.LiveFlow", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings") - .WithMany() - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("WorkingForId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Access.CircleAuthorizationToFile", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Blog.BlogTrad", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("TraducerId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference") - .WithMany() - .HasForeignKey("GitId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.HasOne("Yavsc.Server.Models.IT.Project") - .WithMany() - .HasForeignKey("ProjectId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2021/20210530213408_mailling-not-mailling-lists.cs b/src/Yavsc.Server/Migrations/2021/20210530213408_mailling-not-mailling-lists.cs deleted file mode 100644 index e452fe45..00000000 --- a/src/Yavsc.Server/Migrations/2021/20210530213408_mailling-not-mailling-lists.cs +++ /dev/null @@ -1,846 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Yavsc.Migrations -{ - public partial class maillingnotmaillinglists : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_Ban_ApplicationUser_TargetId", table: "Ban"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_UserId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_BlogPost_PostId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_Tag_TagId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_Comment_ApplicationUser_AuthorId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Comment_BlogPost_PostId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Schedule_ApplicationUser_OwnerId", table: "Schedule"); - migrationBuilder.DropForeignKey(name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", table: "ChatConnection"); - migrationBuilder.DropForeignKey(name: "FK_ChatRoomAccess_ApplicationUser_UserId", table: "ChatRoomAccess"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_InstrumentRating_Instrument_InstrumentId", table: "InstrumentRating"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Contact_PostalAddress_AddressId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToFile_Circle_CircleId", table: "CircleAuthorizationToFile"); - migrationBuilder.DropForeignKey(name: "FK_MailingTemplate_ApplicationUser_ManagerId", table: "MailingTemplate"); - migrationBuilder.DropForeignKey(name: "FK_MailingTemplate_ApplicationUser_SuccessorId", table: "MailingTemplate"); - migrationBuilder.DropForeignKey(name: "FK_Project_Activity_ActivityCode", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_ApplicationUser_ClientId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_GitRepositoryReference_GitId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_PerformerProfile_PerformerId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_ProjectBuildConfiguration_Project_ProjectId", table: "ProjectBuildConfiguration"); - migrationBuilder.DropColumn(name: "ManagerId", table: "MailingTemplate"); - migrationBuilder.DropColumn(name: "SuccessorId", table: "MailingTemplate"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Ban_ApplicationUser_TargetId", - table: "Ban", - column: "TargetId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_UserId", - table: "BlackListed", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_BlogPost_PostId", - table: "BlogTag", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_Tag_TagId", - table: "BlogTag", - column: "TagId", - principalTable: "Tag", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Comment_ApplicationUser_AuthorId", - table: "Comment", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Comment_BlogPost_PostId", - table: "Comment", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Schedule_ApplicationUser_OwnerId", - table: "Schedule", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", - table: "ChatConnection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_ChatRoomAccess_ApplicationUser_UserId", - table: "ChatRoomAccess", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_InstrumentRating_Instrument_InstrumentId", - table: "InstrumentRating", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Contact_PostalAddress_AddressId", - table: "Contact", - column: "AddressId", - principalTable: "PostalAddress", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToFile_Circle_CircleId", - table: "CircleAuthorizationToFile", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_Activity_ActivityCode", - table: "Project", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_ApplicationUser_ClientId", - table: "Project", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_GitRepositoryReference_GitId", - table: "Project", - column: "GitId", - principalTable: "GitRepositoryReference", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_PerformerProfile_PerformerId", - table: "Project", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_ProjectBuildConfiguration_Project_ProjectId", - table: "ProjectBuildConfiguration", - column: "ProjectId", - principalTable: "Project", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_Ban_ApplicationUser_TargetId", table: "Ban"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_UserId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_BlogPost_PostId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_Tag_TagId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_Comment_ApplicationUser_AuthorId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Comment_BlogPost_PostId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Schedule_ApplicationUser_OwnerId", table: "Schedule"); - migrationBuilder.DropForeignKey(name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", table: "ChatConnection"); - migrationBuilder.DropForeignKey(name: "FK_ChatRoomAccess_ApplicationUser_UserId", table: "ChatRoomAccess"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_InstrumentRating_Instrument_InstrumentId", table: "InstrumentRating"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Contact_PostalAddress_AddressId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToFile_Circle_CircleId", table: "CircleAuthorizationToFile"); - migrationBuilder.DropForeignKey(name: "FK_Project_Activity_ActivityCode", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_ApplicationUser_ClientId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_GitRepositoryReference_GitId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_PerformerProfile_PerformerId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_ProjectBuildConfiguration_Project_ProjectId", table: "ProjectBuildConfiguration"); - migrationBuilder.AddColumn( - name: "ManagerId", - table: "MailingTemplate", - nullable: false, - defaultValue: ""); - migrationBuilder.AddColumn( - name: "SuccessorId", - table: "MailingTemplate", - nullable: false, - defaultValue: ""); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Ban_ApplicationUser_TargetId", - table: "Ban", - column: "TargetId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_UserId", - table: "BlackListed", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_BlogPost_PostId", - table: "BlogTag", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_Tag_TagId", - table: "BlogTag", - column: "TagId", - principalTable: "Tag", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Comment_ApplicationUser_AuthorId", - table: "Comment", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Comment_BlogPost_PostId", - table: "Comment", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Schedule_ApplicationUser_OwnerId", - table: "Schedule", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", - table: "ChatConnection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_ChatRoomAccess_ApplicationUser_UserId", - table: "ChatRoomAccess", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_InstrumentRating_Instrument_InstrumentId", - table: "InstrumentRating", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Contact_PostalAddress_AddressId", - table: "Contact", - column: "AddressId", - principalTable: "PostalAddress", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToFile_Circle_CircleId", - table: "CircleAuthorizationToFile", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_MailingTemplate_ApplicationUser_ManagerId", - table: "MailingTemplate", - column: "ManagerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_MailingTemplate_ApplicationUser_SuccessorId", - table: "MailingTemplate", - column: "SuccessorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_Activity_ActivityCode", - table: "Project", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_ApplicationUser_ClientId", - table: "Project", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_GitRepositoryReference_GitId", - table: "Project", - column: "GitId", - principalTable: "GitRepositoryReference", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_PerformerProfile_PerformerId", - table: "Project", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_ProjectBuildConfiguration_Project_ProjectId", - table: "ProjectBuildConfiguration", - column: "ProjectId", - principalTable: "Project", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2021/20210603172023_no-more-circle-autorisation-to-file.Designer.cs b/src/Yavsc.Server/Migrations/2021/20210603172023_no-more-circle-autorisation-to-file.Designer.cs deleted file mode 100644 index 473dc175..00000000 --- a/src/Yavsc.Server/Migrations/2021/20210603172023_no-more-circle-autorisation-to-file.Designer.cs +++ /dev/null @@ -1,2035 +0,0 @@ -using System; - -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Yavsc.Models; - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20210603172023_no-more-circle-autorisation-to-file")] - partial class nomorecircleautorisationtofile - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0-rc1-16348"); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRole", b => - { - b.Property("Id"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("Name") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .HasAnnotation("Relational:Name", "RoleNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetRoles"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("RoleId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetRoleClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ClaimType"); - - b.Property("ClaimValue"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - - b.HasAnnotation("Relational:TableName", "AspNetUserClaims"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.Property("LoginProvider"); - - b.Property("ProviderKey"); - - b.Property("ProviderDisplayName"); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasAnnotation("Relational:TableName", "AspNetUserLogins"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.Property("UserId"); - - b.Property("RoleId"); - - b.HasKey("UserId", "RoleId"); - - b.HasAnnotation("Relational:TableName", "AspNetUserRoles"); - }); - - modelBuilder.Entity("Yavsc.Abstract.Identity.ClientProviderInfo", b => - { - b.Property("UserId"); - - b.Property("Avatar"); - - b.Property("BillingAddressId"); - - b.Property("EMail"); - - b.Property("Phone"); - - b.Property("UserName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Reason") - .IsRequired(); - - b.Property("TargetId") - .IsRequired(); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("UserId") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId"); - - b.Property("BlogPostId"); - - b.HasKey("CircleId", "BlogPostId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId"); - - b.Property("ContactCredits"); - - b.Property("Credits"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id"); - - b.Property("AccessFailedCount"); - - b.Property("AllowMonthlyEmail"); - - b.Property("Avatar") - .HasAnnotation("MaxLength", 512) - .HasAnnotation("Relational:DefaultValue", "/images/Users/icon_user.png") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("BankInfoId"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken(); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("DedicatedGoogleCalendar") - .HasAnnotation("MaxLength", 512); - - b.Property("DiskQuota") - .HasAnnotation("Relational:DefaultValue", "524288000") - .HasAnnotation("Relational:DefaultValueType", "System.Int64"); - - b.Property("DiskUsage"); - - b.Property("Email") - .HasAnnotation("MaxLength", 256); - - b.Property("EmailConfirmed"); - - b.Property("FullName") - .HasAnnotation("MaxLength", 512); - - b.Property("LockoutEnabled"); - - b.Property("LockoutEnd"); - - b.Property("MaxFileSize"); - - b.Property("NormalizedEmail") - .HasAnnotation("MaxLength", 256); - - b.Property("NormalizedUserName") - .HasAnnotation("MaxLength", 256); - - b.Property("PasswordHash"); - - b.Property("PhoneNumber"); - - b.Property("PhoneNumberConfirmed"); - - b.Property("PostalAddressId"); - - b.Property("SecurityStamp"); - - b.Property("TwoFactorEnabled"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("UserName") - .HasAnnotation("MaxLength", 256); - - b.HasKey("Id"); - - b.HasIndex("NormalizedEmail") - .HasAnnotation("Relational:Name", "EmailIndex"); - - b.HasIndex("NormalizedUserName") - .HasAnnotation("Relational:Name", "UserNameIndex"); - - b.HasAnnotation("Relational:TableName", "AspNetUsers"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id"); - - b.Property("Active"); - - b.Property("DisplayName"); - - b.Property("LogoutRedirectUri") - .HasAnnotation("MaxLength", 100); - - b.Property("RedirectUri"); - - b.Property("RefreshTokenLifeTime"); - - b.Property("Secret"); - - b.Property("Type"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.OAuth2Tokens", b => - { - b.Property("UserId"); - - b.Property("AccessToken"); - - b.Property("Expiration"); - - b.Property("ExpiresIn"); - - b.Property("RefreshToken"); - - b.Property("TokenType"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id"); - - b.Property("ClientId") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.Property("ExpiresUtc"); - - b.Property("IssuedUtc"); - - b.Property("ProtectedTicket") - .IsRequired(); - - b.Property("Subject") - .IsRequired() - .HasAnnotation("MaxLength", 50); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BalanceId") - .IsRequired(); - - b.Property("ExecDate"); - - b.Property("Impact"); - - b.Property("Reason") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AccountNumber"); - - b.Property("BIC"); - - b.Property("BankCode"); - - b.Property("BankedKey"); - - b.Property("IBAN"); - - b.Property("WicketCode"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Count"); - - b.Property("Currency"); - - b.Property("Description") - .IsRequired() - .HasAnnotation("MaxLength", 512); - - b.Property("EstimateId"); - - b.Property("EstimateTemplateId"); - - b.Property("Name") - .IsRequired() - .HasAnnotation("MaxLength", 256); - - b.Property("UnitaryCost"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AttachedFilesString"); - - b.Property("AttachedGraphicsString"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("ClientValidationDate"); - - b.Property("CommandId"); - - b.Property("CommandType") - .IsRequired(); - - b.Property("Description"); - - b.Property("OwnerId"); - - b.Property("ProviderValidationDate"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("OwnerId") - .IsRequired(); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN"); - - b.HasKey("SIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId"); - - b.Property("Content"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Lang"); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("Title"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.Property("PostId"); - - b.Property("TagId"); - - b.HasKey("PostId", "TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("AuthorId") - .IsRequired(); - - b.Property("Content"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ParentId"); - - b.Property("PostId"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("Visible"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Period", b => - { - b.Property("Start"); - - b.Property("End"); - - b.HasKey("Start", "End"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Property("OwnerId"); - - b.HasKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PeriodEnd"); - - b.Property("PeriodStart"); - - b.Property("Reccurence"); - - b.Property("ScheduleOwnerId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.Property("ConnectionId"); - - b.Property("ApplicationUserId") - .IsRequired(); - - b.Property("Connected"); - - b.Property("UserAgent"); - - b.HasKey("ConnectionId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.Property("Name"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("LatestJoinPart"); - - b.Property("OwnerId"); - - b.Property("Topic"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Name"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomAccess", b => - { - b.Property("ChannelName"); - - b.Property("UserId"); - - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Level"); - - b.HasKey("ChannelName", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Cratie.Option", b => - { - b.Property("Code"); - - b.Property("CodeScrutin"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code", "CodeScrutin"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Blue"); - - b.Property("Green"); - - b.Property("Name"); - - b.Property("Red"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id"); - - b.Property("Summary"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId"); - - b.Property("ActionDistance"); - - b.Property("CarePrice"); - - b.Property("FlatFeeDiscount"); - - b.Property("HalfBalayagePrice"); - - b.Property("HalfBrushingPrice"); - - b.Property("HalfColorPrice"); - - b.Property("HalfDefrisPrice"); - - b.Property("HalfFoldingPrice"); - - b.Property("HalfMechPrice"); - - b.Property("HalfMultiColorPrice"); - - b.Property("HalfPermanentPrice"); - - b.Property("KidCutPrice"); - - b.Property("LongBalayagePrice"); - - b.Property("LongBrushingPrice"); - - b.Property("LongColorPrice"); - - b.Property("LongDefrisPrice"); - - b.Property("LongFoldingPrice"); - - b.Property("LongMechPrice"); - - b.Property("LongMultiColorPrice"); - - b.Property("LongPermanentPrice"); - - b.Property("ManBrushPrice"); - - b.Property("ManCutPrice"); - - b.Property("ScheduleOwnerId"); - - b.Property("ShampooPrice"); - - b.Property("ShortBalayagePrice"); - - b.Property("ShortBrushingPrice"); - - b.Property("ShortColorPrice"); - - b.Property("ShortDefrisPrice"); - - b.Property("ShortFoldingPrice"); - - b.Property("ShortMechPrice"); - - b.Property("ShortMultiColorPrice"); - - b.Property("ShortPermanentPrice"); - - b.Property("WomenHalfCutPrice"); - - b.Property("WomenLongCutPrice"); - - b.Property("WomenShortCutPrice"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("AdditionalInfo"); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("PrestationId"); - - b.Property("Previsional"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("SelectedProfileUserId"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Cares"); - - b.Property("Cut"); - - b.Property("Dressing"); - - b.Property("Gender"); - - b.Property("Length"); - - b.Property("Shampoo"); - - b.Property("Tech"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("PrestationId"); - - b.Property("QueryId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Brand"); - - b.Property("ColorId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.Property("TaintId"); - - b.Property("PrestationId"); - - b.HasKey("TaintId", "PrestationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.DeviceDeclaration", b => - { - b.Property("DeviceId"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasAnnotation("Relational:GeneratedValueSql", "LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId"); - - b.Property("LatestActivityUpdate"); - - b.Property("Model"); - - b.Property("Platform"); - - b.Property("Version"); - - b.HasKey("DeviceId"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Evolution.Feature", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("ShortName"); - - b.Property("Status"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.Property("FeatureId"); - - b.Property("Status"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Depth"); - - b.Property("Description"); - - b.Property("Height"); - - b.Property("Name"); - - b.Property("Price"); - - b.Property("Public"); - - b.Property("Weight"); - - b.Property("Width"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ContextId"); - - b.Property("Description"); - - b.Property("Name"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("For"); - - b.Property("Message"); - - b.Property("OwnerId"); - - b.Property("Sender"); - - b.Property("Topic"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.Property("UserId"); - - b.Property("NotificationId"); - - b.HasKey("UserId", "NotificationId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Target"); - - b.Property("body") - .IsRequired(); - - b.Property("click_action") - .IsRequired(); - - b.Property("color"); - - b.Property("icon") - .HasAnnotation("Relational:DefaultValue", "exclam") - .HasAnnotation("Relational:DefaultValueType", "System.String"); - - b.Property("sound"); - - b.Property("tag"); - - b.Property("title") - .IsRequired(); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.InstrumentRating", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("InstrumentId"); - - b.Property("OwnerId"); - - b.Property("Rate"); - - b.HasKey("Id"); - - b.HasAlternateKey("InstrumentId", "OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId"); - - b.Property("DjSettingsUserId"); - - b.Property("GeneralSettingsUserId"); - - b.Property("Rate"); - - b.Property("TendencyId"); - - b.HasKey("OwnerProfileId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name") - .HasAnnotation("MaxLength", 255); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId"); - - b.Property("SoundCloudId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId"); - - b.Property("UserId"); - - b.HasKey("InstrumentId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Property("CreationToken"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ExecutorId"); - - b.Property("OrderReference"); - - b.Property("PaypalPayerId"); - - b.Property("State"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("CreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ApplicationUserId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.Property("Public"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId"); - - b.Property("CircleId"); - - b.HasKey("MemberId", "CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId"); - - b.Property("UserId"); - - b.Property("AddressId"); - - b.Property("ApplicationUserId"); - - b.Property("EMail"); - - b.Property("Name"); - - b.HasKey("OwnerId", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.Property("HRef"); - - b.Property("Method"); - - b.Property("BrusherProfileUserId"); - - b.Property("ContentType"); - - b.Property("PayPalPaymentCreationToken"); - - b.Property("Rel"); - - b.HasKey("HRef", "Method"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Address") - .HasAnnotation("MaxLength", 512); - - b.Property("Latitude"); - - b.Property("Longitude"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostalAddress", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("City"); - - b.Property("Country"); - - b.Property("PostalCode"); - - b.Property("Province"); - - b.Property("State"); - - b.Property("Street1"); - - b.Property("Street2"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("Rate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Streaming.LiveFlow", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("DifferedFileName"); - - b.Property("MediaType"); - - b.Property("OwnerId"); - - b.Property("Pitch"); - - b.Property("SequenceNumber"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("Hidden"); - - b.Property("ModeratorGroupName"); - - b.Property("Name"); - - b.Property("ParentCode"); - - b.Property("Photo"); - - b.Property("Rate"); - - b.Property("SettingsClassName"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Code"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActionName"); - - b.Property("ActivityCode"); - - b.Property("Title"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("FormationSettingsUserId"); - - b.Property("PerformerId"); - - b.Property("WorkingForId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId"); - - b.Property("AcceptNotifications"); - - b.Property("AcceptPublicContact"); - - b.Property("Active"); - - b.Property("MaxDailyCost"); - - b.Property("MinDailyCost"); - - b.Property("OrganizationAddressId"); - - b.Property("Rate"); - - b.Property("SIREN"); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients"); - - b.Property("WebSite"); - - b.HasKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId"); - - b.Property("DisplayName"); - - b.HasKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("EventDate"); - - b.Property("LocationId"); - - b.Property("LocationType"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Reason"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode"); - - b.Property("UserId"); - - b.Property("Weight"); - - b.HasKey("DoesCode", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Blog.BlogTrad", b => - { - b.Property("PostId"); - - b.Property("Lang"); - - b.Property("Body"); - - b.Property("Title"); - - b.Property("TraducerId"); - - b.HasKey("PostId", "Lang"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.EMailing.MailingTemplate", b => - { - b.Property("Id"); - - b.Property("Body") - .HasAnnotation("MaxLength", 65536); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("ReplyToAddress"); - - b.Property("ToSend"); - - b.Property("Topic"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("ActivityCode") - .IsRequired(); - - b.Property("ClientId") - .IsRequired(); - - b.Property("Consent"); - - b.Property("DateCreated"); - - b.Property("DateModified"); - - b.Property("Description"); - - b.Property("GitId"); - - b.Property("Name"); - - b.Property("OwnerId"); - - b.Property("PaymentId"); - - b.Property("PerformerId") - .IsRequired(); - - b.Property("Previsional"); - - b.Property("Rejected"); - - b.Property("RejectedAt"); - - b.Property("Status"); - - b.Property("UserCreated"); - - b.Property("UserModified"); - - b.Property("ValidationDate"); - - b.Property("Version"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Name"); - - b.Property("ProjectId"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Branch"); - - b.Property("OwnerId"); - - b.Property("Path"); - - b.Property("Url"); - - b.HasKey("Id"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNet.Identity.EntityFramework.IdentityRole") - .WithMany() - .HasForeignKey("RoleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("TargetId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("BlogPostId"); - - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithOne() - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Bank.BankIdentity") - .WithMany() - .HasForeignKey("BankInfoId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("PostalAddressId"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance") - .WithMany() - .HasForeignKey("BalanceId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate") - .WithMany() - .HasForeignKey("EstimateId"); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate") - .WithMany() - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("PostId"); - - b.HasOne("Yavsc.Models.Relationship.Tag") - .WithMany() - .HasForeignKey("TagId"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("AuthorId"); - - b.HasOne("Yavsc.Models.Blog.Comment") - .WithMany() - .HasForeignKey("ParentId"); - - b.HasOne("Yavsc.Models.Blog.BlogPost") - .WithMany() - .HasForeignKey("PostId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Calendar.Period") - .WithMany() - .HasForeignKey("PeriodStart", "PeriodEnd"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomAccess", b => - { - b.HasOne("Yavsc.Models.Chat.ChatRoom") - .WithMany() - .HasForeignKey("ChannelName"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("SelectedProfileUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery") - .WithMany() - .HasForeignKey("QueryId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color") - .WithMany() - .HasForeignKey("ColorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation") - .WithMany() - .HasForeignKey("PrestationId"); - - b.HasOne("Yavsc.Models.Haircut.HairTaint") - .WithMany() - .HasForeignKey("TaintId"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.DeviceDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("DeviceOwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.HasOne("Yavsc.Models.IT.Evolution.Feature") - .WithMany() - .HasForeignKey("FeatureId"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ContextId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.HasOne("Yavsc.Models.Messaging.Notification") - .WithMany() - .HasForeignKey("NotificationId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.InstrumentRating", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings") - .WithMany() - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings") - .WithMany() - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument") - .WithMany() - .HasForeignKey("InstrumentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ExecutorId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle") - .WithMany() - .HasForeignKey("CircleId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("MemberId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.Relationship.PostalAddress") - .WithMany() - .HasForeignKey("AddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.HasOne("Yavsc.Models.Haircut.BrusherProfile") - .WithMany() - .HasForeignKey("BrusherProfileUserId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PayPalPaymentCreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Streaming.LiveFlow", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ParentCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings") - .WithMany() - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("WorkingForId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("OrganizationAddressId"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Models.Relationship.Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("DoesCode"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("UserId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Blog.BlogTrad", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("TraducerId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity") - .WithMany() - .HasForeignKey("ActivityCode"); - - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("ClientId"); - - b.HasOne("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference") - .WithMany() - .HasForeignKey("GitId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.HasOne("Yavsc.Server.Models.IT.Project") - .WithMany() - .HasForeignKey("ProjectId"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.HasOne("Yavsc.Models.ApplicationUser") - .WithMany() - .HasForeignKey("OwnerId"); - }); - } - } -} diff --git a/src/Yavsc.Server/Migrations/2021/20210603172023_no-more-circle-autorisation-to-file.cs b/src/Yavsc.Server/Migrations/2021/20210603172023_no-more-circle-autorisation-to-file.cs deleted file mode 100644 index d75c6dd2..00000000 --- a/src/Yavsc.Server/Migrations/2021/20210603172023_no-more-circle-autorisation-to-file.cs +++ /dev/null @@ -1,820 +0,0 @@ -using System; -using System.Collections.Generic; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -namespace Yavsc.Migrations -{ - public partial class nomorecircleautorisationtofile : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_Ban_ApplicationUser_TargetId", table: "Ban"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_UserId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_BlogPost_PostId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_Tag_TagId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_Comment_ApplicationUser_AuthorId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Comment_BlogPost_PostId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Schedule_ApplicationUser_OwnerId", table: "Schedule"); - migrationBuilder.DropForeignKey(name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", table: "ChatConnection"); - migrationBuilder.DropForeignKey(name: "FK_ChatRoomAccess_ApplicationUser_UserId", table: "ChatRoomAccess"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_InstrumentRating_Instrument_InstrumentId", table: "InstrumentRating"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Contact_PostalAddress_AddressId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_Project_Activity_ActivityCode", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_ApplicationUser_ClientId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_GitRepositoryReference_GitId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_PerformerProfile_PerformerId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_ProjectBuildConfiguration_Project_ProjectId", table: "ProjectBuildConfiguration"); - migrationBuilder.DropTable("CircleAuthorizationToFile"); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Ban_ApplicationUser_TargetId", - table: "Ban", - column: "TargetId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_UserId", - table: "BlackListed", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_BlogPost_PostId", - table: "BlogTag", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_Tag_TagId", - table: "BlogTag", - column: "TagId", - principalTable: "Tag", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Comment_ApplicationUser_AuthorId", - table: "Comment", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Comment_BlogPost_PostId", - table: "Comment", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Schedule_ApplicationUser_OwnerId", - table: "Schedule", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", - table: "ChatConnection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_ChatRoomAccess_ApplicationUser_UserId", - table: "ChatRoomAccess", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_InstrumentRating_Instrument_InstrumentId", - table: "InstrumentRating", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Contact_PostalAddress_AddressId", - table: "Contact", - column: "AddressId", - principalTable: "PostalAddress", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_Activity_ActivityCode", - table: "Project", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_ApplicationUser_ClientId", - table: "Project", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_GitRepositoryReference_GitId", - table: "Project", - column: "GitId", - principalTable: "GitRepositoryReference", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_Project_PerformerProfile_PerformerId", - table: "Project", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - migrationBuilder.AddForeignKey( - name: "FK_ProjectBuildConfiguration_Project_ProjectId", - table: "ProjectBuildConfiguration", - column: "ProjectId", - principalTable: "Project", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey(name: "FK_IdentityRoleClaim_IdentityRole_RoleId", table: "AspNetRoleClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserClaim_ApplicationUser_UserId", table: "AspNetUserClaims"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserLogin_ApplicationUser_UserId", table: "AspNetUserLogins"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_IdentityRole_RoleId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_IdentityUserRole_ApplicationUser_UserId", table: "AspNetUserRoles"); - migrationBuilder.DropForeignKey(name: "FK_Ban_ApplicationUser_TargetId", table: "Ban"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_OwnerId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_BlackListed_ApplicationUser_UserId", table: "BlackListed"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", table: "CircleAuthorizationToBlogPost"); - migrationBuilder.DropForeignKey(name: "FK_AccountBalance_ApplicationUser_UserId", table: "AccountBalance"); - migrationBuilder.DropForeignKey(name: "FK_BalanceImpact_AccountBalance_BalanceId", table: "BalanceImpact"); - migrationBuilder.DropForeignKey(name: "FK_CommandLine_Estimate_EstimateId", table: "CommandLine"); - migrationBuilder.DropForeignKey(name: "FK_Estimate_ApplicationUser_ClientId", table: "Estimate"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_BlogPost_PostId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_BlogTag_Tag_TagId", table: "BlogTag"); - migrationBuilder.DropForeignKey(name: "FK_Comment_ApplicationUser_AuthorId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Comment_BlogPost_PostId", table: "Comment"); - migrationBuilder.DropForeignKey(name: "FK_Schedule_ApplicationUser_OwnerId", table: "Schedule"); - migrationBuilder.DropForeignKey(name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", table: "ChatConnection"); - migrationBuilder.DropForeignKey(name: "FK_ChatRoomAccess_ApplicationUser_UserId", table: "ChatRoomAccess"); - migrationBuilder.DropForeignKey(name: "FK_BrusherProfile_PerformerProfile_UserId", table: "BrusherProfile"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_Activity_ActivityCode", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_ApplicationUser_ClientId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_PerformerProfile_PerformerId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairCutQuery_HairPrestation_PrestationId", table: "HairCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_Activity_ActivityCode", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", table: "HairMultiCutQuery"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", table: "HairPrestationCollectionItem"); - migrationBuilder.DropForeignKey(name: "FK_HairTaint_Color_ColorId", table: "HairTaint"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairPrestation_PrestationId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_HairTaintInstance_HairTaint_TaintId", table: "HairTaintInstance"); - migrationBuilder.DropForeignKey(name: "FK_DimissClicked_Notification_NotificationId", table: "DimissClicked"); - migrationBuilder.DropForeignKey(name: "FK_InstrumentRating_Instrument_InstrumentId", table: "InstrumentRating"); - migrationBuilder.DropForeignKey(name: "FK_Instrumentation_Instrument_InstrumentId", table: "Instrumentation"); - migrationBuilder.DropForeignKey(name: "FK_CircleMember_Circle_CircleId", table: "CircleMember"); - migrationBuilder.DropForeignKey(name: "FK_Contact_PostalAddress_AddressId", table: "Contact"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_Location_OrganizationAddressId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_PerformerProfile_ApplicationUser_PerformerId", table: "PerformerProfile"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_Activity_ActivityCode", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_ApplicationUser_ClientId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_RdvQuery_PerformerProfile_PerformerId", table: "RdvQuery"); - migrationBuilder.DropForeignKey(name: "FK_Project_Activity_ActivityCode", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_ApplicationUser_ClientId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_GitRepositoryReference_GitId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_Project_PerformerProfile_PerformerId", table: "Project"); - migrationBuilder.DropForeignKey(name: "FK_ProjectBuildConfiguration_Project_ProjectId", table: "ProjectBuildConfiguration"); - migrationBuilder.CreateTable( - name: "CircleAuthorizationToFile", - columns: table => new - { - CircleId = table.Column(nullable: false), - FullPath = table.Column(nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_CircleAuthorizationToFile", x => new { x.CircleId, x.FullPath }); - table.ForeignKey( - name: "FK_CircleAuthorizationToFile_Circle_CircleId", - column: x => x.CircleId, - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - }); - migrationBuilder.AddForeignKey( - name: "FK_IdentityRoleClaim_IdentityRole_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserClaim_ApplicationUser_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserLogin_ApplicationUser_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_IdentityRole_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_IdentityUserRole_ApplicationUser_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Ban_ApplicationUser_TargetId", - table: "Ban", - column: "TargetId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_ApplicationUser_UserId", - table: "BlackListed", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_ApplicationUser_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Estimate_ApplicationUser_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_BlogPost_PostId", - table: "BlogTag", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_Tag_TagId", - table: "BlogTag", - column: "TagId", - principalTable: "Tag", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Comment_ApplicationUser_AuthorId", - table: "Comment", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Comment_BlogPost_PostId", - table: "Comment", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Schedule_ApplicationUser_OwnerId", - table: "Schedule", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_ChatConnection_ApplicationUser_ApplicationUserId", - table: "ChatConnection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_ChatRoomAccess_ApplicationUser_UserId", - table: "ChatRoomAccess", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_ApplicationUser_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_ApplicationUser_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_InstrumentRating_Instrument_InstrumentId", - table: "InstrumentRating", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Contact_PostalAddress_AddressId", - table: "Contact", - column: "AddressId", - principalTable: "PostalAddress", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_ApplicationUser_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_ApplicationUser_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_Activity_ActivityCode", - table: "Project", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_ApplicationUser_ClientId", - table: "Project", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_GitRepositoryReference_GitId", - table: "Project", - column: "GitId", - principalTable: "GitRepositoryReference", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_Project_PerformerProfile_PerformerId", - table: "Project", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Restrict); - migrationBuilder.AddForeignKey( - name: "FK_ProjectBuildConfiguration_Project_ProjectId", - table: "ProjectBuildConfiguration", - column: "ProjectId", - principalTable: "Project", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - } - } -} diff --git a/src/Yavsc.Server/Migrations/20230326173049_net7.Designer.cs b/src/Yavsc.Server/Migrations/20230326173049_net7.Designer.cs deleted file mode 100644 index d5878557..00000000 --- a/src/Yavsc.Server/Migrations/20230326173049_net7.Designer.cs +++ /dev/null @@ -1,3554 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; -using Yavsc.Models; - -#nullable disable - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20230326173049_net7")] - partial class net7 - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "7.0.4") - .HasAnnotation("Relational:MaxIdentifierLength", 63); - - NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasColumnType("text"); - - b.Property("Name") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("NormalizedName") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .IsUnique() - .HasDatabaseName("RoleNameIndex"); - - b.ToTable("AspNetRoles", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ClaimType") - .HasColumnType("text"); - - b.Property("ClaimValue") - .HasColumnType("text"); - - b.Property("RoleId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("RoleId"); - - b.ToTable("AspNetRoleClaims", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ClaimType") - .HasColumnType("text"); - - b.Property("ClaimValue") - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.ToTable("AspNetUserClaims", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => - { - b.Property("LoginProvider") - .HasColumnType("text"); - - b.Property("ProviderKey") - .HasColumnType("text"); - - b.Property("ProviderDisplayName") - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasIndex("UserId"); - - b.ToTable("AspNetUserLogins", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("RoleId") - .HasColumnType("text"); - - b.HasKey("UserId", "RoleId"); - - b.HasIndex("RoleId"); - - b.ToTable("AspNetUserRoles", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("LoginProvider") - .HasColumnType("text"); - - b.Property("Name") - .HasColumnType("text"); - - b.Property("Value") - .HasColumnType("text"); - - b.HasKey("UserId", "LoginProvider", "Name"); - - b.ToTable("AspNetUserTokens", (string)null); - }); - - modelBuilder.Entity("Yavsc.Abstract.Identity.ClientProviderInfo", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("Avatar") - .IsRequired() - .HasColumnType("text"); - - b.Property("BillingAddressId") - .HasColumnType("bigint"); - - b.Property("EMail") - .IsRequired() - .HasColumnType("text"); - - b.Property("Phone") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserName") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("ClientProviderInfo"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Reason") - .IsRequired() - .HasColumnType("text"); - - b.Property("TargetId") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("TargetId"); - - b.ToTable("Ban"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.HasIndex("UserId"); - - b.ToTable("BlackListed"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId") - .HasColumnType("bigint"); - - b.Property("BlogPostId") - .HasColumnType("bigint"); - - b.HasKey("CircleId", "BlogPostId"); - - b.HasIndex("BlogPostId"); - - b.ToTable("CircleAuthorizationToBlogPost"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("ContactCredits") - .HasColumnType("bigint"); - - b.Property("Credits") - .HasColumnType("numeric"); - - b.HasKey("UserId"); - - b.ToTable("BankStatus"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("AccessFailedCount") - .HasColumnType("integer"); - - b.Property("AllowMonthlyEmail") - .HasColumnType("boolean"); - - b.Property("Avatar") - .IsRequired() - .ValueGeneratedOnAdd() - .HasMaxLength(512) - .HasColumnType("character varying(512)") - .HasDefaultValue("/images/Users/icon_user.png"); - - b.Property("BankInfoId") - .HasColumnType("bigint"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("DedicatedGoogleCalendar") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("DiskQuota") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasDefaultValue(524288000L); - - b.Property("DiskUsage") - .HasColumnType("bigint"); - - b.Property("Email") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("EmailConfirmed") - .HasColumnType("boolean"); - - b.Property("FullName") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("LockoutEnabled") - .HasColumnType("boolean"); - - b.Property("LockoutEnd") - .HasColumnType("timestamp with time zone"); - - b.Property("MaxFileSize") - .HasColumnType("bigint"); - - b.Property("NormalizedEmail") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("NormalizedUserName") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("PasswordHash") - .HasColumnType("text"); - - b.Property("PhoneNumber") - .HasColumnType("text"); - - b.Property("PhoneNumberConfirmed") - .HasColumnType("boolean"); - - b.Property("PostalAddressId") - .IsRequired() - .HasColumnType("bigint"); - - b.Property("SecurityStamp") - .HasColumnType("text"); - - b.Property("TwoFactorEnabled") - .HasColumnType("boolean"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserName") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.HasKey("Id"); - - b.HasIndex("BankInfoId"); - - b.HasIndex("NormalizedEmail") - .HasDatabaseName("EmailIndex"); - - b.HasIndex("NormalizedUserName") - .IsUnique() - .HasDatabaseName("UserNameIndex"); - - b.HasIndex("PostalAddressId"); - - b.ToTable("AspNetUsers", (string)null); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("Active") - .HasColumnType("boolean"); - - b.Property("DisplayName") - .IsRequired() - .HasColumnType("text"); - - b.Property("LogoutRedirectUri") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("character varying(100)"); - - b.Property("RedirectUri") - .IsRequired() - .HasColumnType("text"); - - b.Property("RefreshTokenLifeTime") - .HasColumnType("integer"); - - b.Property("Secret") - .IsRequired() - .HasColumnType("text"); - - b.Property("Type") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("Applications"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.OAuth2Tokens", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("AccessToken") - .IsRequired() - .HasColumnType("text"); - - b.Property("Expiration") - .HasColumnType("timestamp with time zone"); - - b.Property("ExpiresIn") - .IsRequired() - .HasColumnType("text"); - - b.Property("RefreshToken") - .IsRequired() - .HasColumnType("text"); - - b.Property("TokenType") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("OAuth2Tokens"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("character varying(50)"); - - b.Property("ExpiresUtc") - .HasColumnType("timestamp with time zone"); - - b.Property("IssuedUtc") - .HasColumnType("timestamp with time zone"); - - b.Property("ProtectedTicket") - .IsRequired() - .HasColumnType("text"); - - b.Property("Subject") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("character varying(50)"); - - b.HasKey("Id"); - - b.ToTable("RefreshTokens"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("BalanceId") - .IsRequired() - .HasColumnType("text"); - - b.Property("ExecDate") - .HasColumnType("timestamp with time zone"); - - b.Property("Impact") - .HasColumnType("numeric"); - - b.Property("Reason") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("BalanceId"); - - b.ToTable("BankBook"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AccountNumber") - .IsRequired() - .HasColumnType("text"); - - b.Property("BIC") - .IsRequired() - .HasColumnType("text"); - - b.Property("BankCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("BankedKey") - .HasColumnType("integer"); - - b.Property("IBAN") - .IsRequired() - .HasColumnType("text"); - - b.Property("WicketCode") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("BankIdentity"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Count") - .HasColumnType("integer"); - - b.Property("Currency") - .IsRequired() - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("EstimateId") - .HasColumnType("bigint"); - - b.Property("EstimateTemplateId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("UnitaryCost") - .HasColumnType("numeric"); - - b.HasKey("Id"); - - b.HasIndex("EstimateId"); - - b.HasIndex("EstimateTemplateId"); - - b.ToTable("CommandLine"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AttachedFilesString") - .IsRequired() - .HasColumnType("text"); - - b.Property("AttachedGraphicsString") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientValidationDate") - .HasColumnType("timestamp with time zone"); - - b.Property("CommandId") - .HasColumnType("bigint"); - - b.Property("CommandType") - .IsRequired() - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("ProviderValidationDate") - .HasColumnType("timestamp with time zone"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ClientId"); - - b.HasIndex("CommandId"); - - b.HasIndex("OwnerId"); - - b.ToTable("Estimates"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("EstimateTemplates"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN") - .HasColumnType("text"); - - b.HasKey("SIREN"); - - b.ToTable("ExceptionsSIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AuthorId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Content") - .IsRequired() - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Lang") - .IsRequired() - .HasColumnType("text"); - - b.Property("Photo") - .IsRequired() - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("Visible") - .HasColumnType("boolean"); - - b.HasKey("Id"); - - b.HasIndex("AuthorId"); - - b.ToTable("Blogspot"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.Property("PostId") - .HasColumnType("bigint"); - - b.Property("TagId") - .HasColumnType("bigint"); - - b.HasKey("PostId", "TagId"); - - b.HasIndex("TagId"); - - b.ToTable("BlogTag"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AuthorId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Content") - .IsRequired() - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("ParentId") - .HasColumnType("bigint"); - - b.Property("PostId") - .HasColumnType("bigint"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("Visible") - .HasColumnType("boolean"); - - b.HasKey("Id"); - - b.HasIndex("AuthorId"); - - b.HasIndex("ParentId"); - - b.HasIndex("PostId"); - - b.ToTable("Comment"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Property("OwnerId") - .HasColumnType("text"); - - b.HasKey("OwnerId"); - - b.ToTable("Schedule"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("PeriodEnd") - .HasColumnType("timestamp with time zone"); - - b.Property("PeriodStart") - .HasColumnType("timestamp with time zone"); - - b.Property("Reccurence") - .HasColumnType("integer"); - - b.Property("ScheduleOwnerId") - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ScheduleOwnerId"); - - b.HasIndex("PeriodStart", "PeriodEnd"); - - b.ToTable("ScheduledEvent"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.Property("ConnectionId") - .HasColumnType("text"); - - b.Property("ApplicationUserId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Connected") - .HasColumnType("boolean"); - - b.Property("UserAgent") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("ConnectionId"); - - b.HasIndex("ApplicationUserId"); - - b.ToTable("ChatConnection"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.Property("Name") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("LatestJoinPart") - .HasColumnType("timestamp with time zone"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Topic") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Name"); - - b.HasIndex("OwnerId"); - - b.ToTable("ChatRoom"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomAccess", b => - { - b.Property("ChannelName") - .HasColumnType("text"); - - b.Property("UserId") - .HasColumnType("text"); - - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Level") - .HasColumnType("integer"); - - b.HasKey("ChannelName", "UserId"); - - b.HasIndex("UserId"); - - b.ToTable("ChatRoomAccess"); - }); - - modelBuilder.Entity("Yavsc.Models.Cratie.Option", b => - { - b.Property("Code") - .HasColumnType("text"); - - b.Property("CodeScrutin") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Code", "CodeScrutin"); - - b.ToTable("Option"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Blue") - .HasColumnType("smallint"); - - b.Property("Green") - .HasColumnType("smallint"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Red") - .HasColumnType("smallint"); - - b.HasKey("Id"); - - b.ToTable("Color"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("Summary") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("Form"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("ActionDistance") - .HasColumnType("integer"); - - b.Property("CarePrice") - .HasColumnType("numeric"); - - b.Property("FlatFeeDiscount") - .HasColumnType("numeric"); - - b.Property("HalfBalayagePrice") - .HasColumnType("numeric"); - - b.Property("HalfBrushingPrice") - .HasColumnType("numeric"); - - b.Property("HalfColorPrice") - .HasColumnType("numeric"); - - b.Property("HalfDefrisPrice") - .HasColumnType("numeric"); - - b.Property("HalfFoldingPrice") - .HasColumnType("numeric"); - - b.Property("HalfMechPrice") - .HasColumnType("numeric"); - - b.Property("HalfMultiColorPrice") - .HasColumnType("numeric"); - - b.Property("HalfPermanentPrice") - .HasColumnType("numeric"); - - b.Property("KidCutPrice") - .HasColumnType("numeric"); - - b.Property("LongBalayagePrice") - .HasColumnType("numeric"); - - b.Property("LongBrushingPrice") - .HasColumnType("numeric"); - - b.Property("LongColorPrice") - .HasColumnType("numeric"); - - b.Property("LongDefrisPrice") - .HasColumnType("numeric"); - - b.Property("LongFoldingPrice") - .HasColumnType("numeric"); - - b.Property("LongMechPrice") - .HasColumnType("numeric"); - - b.Property("LongMultiColorPrice") - .HasColumnType("numeric"); - - b.Property("LongPermanentPrice") - .HasColumnType("numeric"); - - b.Property("ManBrushPrice") - .HasColumnType("numeric"); - - b.Property("ManCutPrice") - .HasColumnType("numeric"); - - b.Property("ScheduleOwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("ShampooPrice") - .HasColumnType("numeric"); - - b.Property("ShortBalayagePrice") - .HasColumnType("numeric"); - - b.Property("ShortBrushingPrice") - .HasColumnType("numeric"); - - b.Property("ShortColorPrice") - .HasColumnType("numeric"); - - b.Property("ShortDefrisPrice") - .HasColumnType("numeric"); - - b.Property("ShortFoldingPrice") - .HasColumnType("numeric"); - - b.Property("ShortMechPrice") - .HasColumnType("numeric"); - - b.Property("ShortMultiColorPrice") - .HasColumnType("numeric"); - - b.Property("ShortPermanentPrice") - .HasColumnType("numeric"); - - b.Property("WomenHalfCutPrice") - .HasColumnType("numeric"); - - b.Property("WomenLongCutPrice") - .HasColumnType("numeric"); - - b.Property("WomenShortCutPrice") - .HasColumnType("numeric"); - - b.HasKey("UserId"); - - b.HasIndex("ScheduleOwnerId"); - - b.ToTable("BrusherProfile"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("AdditionalInfo") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("EventDate") - .HasColumnType("timestamp with time zone"); - - b.Property("LocationId") - .IsRequired() - .HasColumnType("bigint"); - - b.Property("PaymentId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PrestationId") - .HasColumnType("bigint"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("Rejected") - .HasColumnType("boolean"); - - b.Property("RejectedAt") - .HasColumnType("timestamp with time zone"); - - b.Property("SelectedProfileUserId") - .HasColumnType("text"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("LocationId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.HasIndex("PrestationId"); - - b.HasIndex("SelectedProfileUserId"); - - b.ToTable("HairCutQueries"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("EventDate") - .HasColumnType("timestamp with time zone"); - - b.Property("LocationId") - .HasColumnType("bigint"); - - b.Property("PaymentId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("Rejected") - .HasColumnType("boolean"); - - b.Property("RejectedAt") - .HasColumnType("timestamp with time zone"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("LocationId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.ToTable("HairMultiCutQueries"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Cares") - .HasColumnType("boolean"); - - b.Property("Cut") - .HasColumnType("boolean"); - - b.Property("Dressing") - .HasColumnType("integer"); - - b.Property("Gender") - .HasColumnType("integer"); - - b.Property("Length") - .HasColumnType("integer"); - - b.Property("Shampoo") - .HasColumnType("boolean"); - - b.Property("Tech") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("HairPrestation"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("PrestationId") - .HasColumnType("bigint"); - - b.Property("QueryId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("PrestationId"); - - b.HasIndex("QueryId"); - - b.ToTable("HairPrestationCollectionItem"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Brand") - .IsRequired() - .HasColumnType("text"); - - b.Property("ColorId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("ColorId"); - - b.ToTable("HairTaint"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.Property("TaintId") - .HasColumnType("bigint"); - - b.Property("PrestationId") - .HasColumnType("bigint"); - - b.HasKey("TaintId", "PrestationId"); - - b.HasIndex("PrestationId"); - - b.ToTable("HairTaintInstance"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Evolution.Feature", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("ShortName") - .IsRequired() - .HasColumnType("text"); - - b.Property("Status") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("Feature"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("FeatureId") - .IsRequired() - .HasColumnType("bigint"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("FeatureId"); - - b.ToTable("Bug"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.DeviceDeclaration", b => - { - b.Property("DeviceId") - .HasColumnType("text"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasColumnType("timestamp with time zone") - .HasDefaultValueSql("LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("LatestActivityUpdate") - .HasColumnType("timestamp with time zone"); - - b.Property("Model") - .IsRequired() - .HasColumnType("text"); - - b.Property("Platform") - .IsRequired() - .HasColumnType("text"); - - b.Property("Version") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("DeviceId"); - - b.HasIndex("DeviceOwnerId"); - - b.ToTable("DeviceDeclaration"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Depth") - .HasColumnType("numeric"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("Height") - .HasColumnType("numeric"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Price") - .HasColumnType("numeric"); - - b.Property("Public") - .HasColumnType("boolean"); - - b.Property("Weight") - .HasColumnType("numeric"); - - b.Property("Width") - .HasColumnType("numeric"); - - b.HasKey("Id"); - - b.ToTable("Products"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ContextId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Public") - .HasColumnType("boolean"); - - b.HasKey("Id"); - - b.HasIndex("ContextId"); - - b.ToTable("Services"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("For") - .HasColumnType("smallint"); - - b.Property("Message") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Sender") - .IsRequired() - .HasColumnType("text"); - - b.Property("Topic") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.ToTable("Announce"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("NotificationId") - .HasColumnType("bigint"); - - b.HasKey("UserId", "NotificationId"); - - b.HasIndex("NotificationId"); - - b.ToTable("DimissClicked"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Target") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("body") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("click_action") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("color") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("icon") - .IsRequired() - .ValueGeneratedOnAdd() - .HasMaxLength(512) - .HasColumnType("character varying(512)") - .HasDefaultValue("exclam"); - - b.Property("sound") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("tag") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("title") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("character varying(1024)"); - - b.HasKey("Id"); - - b.ToTable("Notification"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("character varying(255)"); - - b.HasKey("Id"); - - b.ToTable("Instrument"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.InstrumentRating", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("InstrumentId") - .HasColumnType("bigint"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.HasAlternateKey("InstrumentId", "OwnerId"); - - b.HasIndex("OwnerId"); - - b.ToTable("InstrumentRating"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId") - .HasColumnType("text"); - - b.Property("DjSettingsUserId") - .HasColumnType("text"); - - b.Property("GeneralSettingsUserId") - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.Property("TendencyId") - .HasColumnType("bigint"); - - b.HasKey("OwnerProfileId"); - - b.HasIndex("DjSettingsUserId"); - - b.HasIndex("GeneralSettingsUserId"); - - b.ToTable("MusicalPreference"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("character varying(255)"); - - b.HasKey("Id"); - - b.ToTable("MusicalTendency"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("SoundCloudId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("DjSettings"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("GeneralSettings"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId") - .HasColumnType("bigint"); - - b.Property("UserId") - .HasColumnType("text"); - - b.HasKey("InstrumentId", "UserId"); - - b.HasIndex("UserId"); - - b.ToTable("Instrumentation"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Property("CreationToken") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("ExecutorId") - .IsRequired() - .HasColumnType("text"); - - b.Property("OrderReference") - .IsRequired() - .HasColumnType("text"); - - b.Property("PaypalPayerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("State") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("CreationToken"); - - b.HasIndex("ExecutorId"); - - b.ToTable("PayPalPayment"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ApplicationUserId") - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Public") - .HasColumnType("boolean"); - - b.HasKey("Id"); - - b.HasIndex("ApplicationUserId"); - - b.ToTable("Circle"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId") - .HasColumnType("text"); - - b.Property("CircleId") - .HasColumnType("bigint"); - - b.HasKey("MemberId", "CircleId"); - - b.HasIndex("CircleId"); - - b.ToTable("CircleMembers"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId") - .HasColumnType("text"); - - b.Property("UserId") - .HasColumnType("text"); - - b.Property("AddressId") - .HasColumnType("bigint"); - - b.Property("ApplicationUserId") - .HasColumnType("text"); - - b.Property("EMail") - .IsRequired() - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("OwnerId", "UserId"); - - b.HasIndex("AddressId"); - - b.HasIndex("ApplicationUserId"); - - b.ToTable("Contact"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.Property("HRef") - .HasColumnType("text"); - - b.Property("Method") - .HasColumnType("text"); - - b.Property("BrusherProfileUserId") - .HasColumnType("text"); - - b.Property("ContentType") - .IsRequired() - .HasColumnType("text"); - - b.Property("PayPalPaymentCreationToken") - .HasColumnType("text"); - - b.Property("Rel") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("HRef", "Method"); - - b.HasIndex("BrusherProfileUserId"); - - b.HasIndex("PayPalPaymentCreationToken"); - - b.ToTable("HyperLink"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Address") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("Latitude") - .HasColumnType("double precision"); - - b.Property("Longitude") - .HasColumnType("double precision"); - - b.HasKey("Id"); - - b.ToTable("Locations"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostalAddress", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("City") - .IsRequired() - .HasColumnType("text"); - - b.Property("Country") - .IsRequired() - .HasColumnType("text"); - - b.Property("PostalCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("Province") - .IsRequired() - .HasColumnType("text"); - - b.Property("State") - .IsRequired() - .HasColumnType("text"); - - b.Property("Street1") - .IsRequired() - .HasColumnType("text"); - - b.Property("Street2") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("PostalAddress"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("Tags"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("SiteSkills"); - }); - - modelBuilder.Entity("Yavsc.Models.Streaming.LiveFlow", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("DifferedFileName") - .IsRequired() - .HasColumnType("text"); - - b.Property("MediaType") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Pitch") - .IsRequired() - .HasColumnType("text"); - - b.Property("SequenceNumber") - .HasColumnType("integer"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.ToTable("LiveFlow"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("Hidden") - .HasColumnType("boolean"); - - b.Property("ModeratorGroupName") - .IsRequired() - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("ParentCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("Photo") - .IsRequired() - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.Property("SettingsClassName") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Code"); - - b.HasIndex("ParentCode"); - - b.ToTable("Activities"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("FormationSettingsUserId") - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("WorkingForId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("FormationSettingsUserId"); - - b.HasIndex("PerformerId"); - - b.HasIndex("WorkingForId"); - - b.ToTable("CoWorking"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ActionName") - .IsRequired() - .HasColumnType("text"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.ToTable("CommandForm"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId") - .HasColumnType("text"); - - b.Property("AcceptNotifications") - .HasColumnType("boolean"); - - b.Property("AcceptPublicContact") - .HasColumnType("boolean"); - - b.Property("Active") - .HasColumnType("boolean"); - - b.Property("MaxDailyCost") - .HasColumnType("integer"); - - b.Property("MinDailyCost") - .HasColumnType("integer"); - - b.Property("OrganizationAddressId") - .HasColumnType("bigint"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.Property("SIREN") - .IsRequired() - .HasColumnType("text"); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients") - .HasColumnType("boolean"); - - b.Property("WebSite") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("PerformerId"); - - b.HasIndex("OrganizationAddressId"); - - b.ToTable("Performers"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("DisplayName") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("FormationSettings"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("EventDate") - .HasColumnType("timestamp with time zone"); - - b.Property("LocationId") - .HasColumnType("bigint"); - - b.Property("LocationType") - .HasColumnType("integer"); - - b.Property("PaymentId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("Reason") - .IsRequired() - .HasColumnType("text"); - - b.Property("Rejected") - .HasColumnType("boolean"); - - b.Property("RejectedAt") - .HasColumnType("timestamp with time zone"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("LocationId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.ToTable("RdvQueries"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode") - .HasColumnType("text"); - - b.Property("UserId") - .HasColumnType("text"); - - b.Property("Weight") - .HasColumnType("integer"); - - b.HasKey("DoesCode", "UserId"); - - b.HasIndex("UserId"); - - b.ToTable("UserActivities"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Blog.BlogTrad", b => - { - b.Property("PostId") - .HasColumnType("bigint"); - - b.Property("Lang") - .HasColumnType("text"); - - b.Property("Body") - .IsRequired() - .HasColumnType("text"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.Property("TraducerId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("PostId", "Lang"); - - b.HasIndex("TraducerId"); - - b.ToTable("BlogTrad"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Calendar.Period", b => - { - b.Property("Start") - .HasColumnType("timestamp with time zone"); - - b.Property("End") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Start", "End"); - - b.ToTable("Period"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.EMailing.MailingTemplate", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("Body") - .IsRequired() - .HasMaxLength(65536) - .HasColumnType("character varying(65536)"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("ReplyToAddress") - .IsRequired() - .HasColumnType("text"); - - b.Property("ToSend") - .HasColumnType("integer"); - - b.Property("Topic") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("MailingTemplate"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("GitId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PaymentId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("Rejected") - .HasColumnType("boolean"); - - b.Property("RejectedAt") - .HasColumnType("timestamp with time zone"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.Property("Version") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("GitId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.ToTable("Project"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("ProjectId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("ProjectId"); - - b.ToTable("ProjectBuildConfiguration"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Branch") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Path") - .IsRequired() - .HasColumnType("text"); - - b.Property("Url") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.ToTable("GitRepositoryReference"); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null) - .WithMany() - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null) - .WithMany() - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "TargetUser") - .WithMany() - .HasForeignKey("TargetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TargetUser"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany("BlackList") - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost", "Target") - .WithMany("ACL") - .HasForeignKey("BlogPostId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Circle", "Allowed") - .WithMany() - .HasForeignKey("CircleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Allowed"); - - b.Navigation("Target"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithOne("AccountBalance") - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Bank.BankIdentity", "BankInfo") - .WithMany() - .HasForeignKey("BankInfoId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Location", "PostalAddress") - .WithMany() - .HasForeignKey("PostalAddressId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("BankInfo"); - - b.Navigation("PostalAddress"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance", "Balance") - .WithMany() - .HasForeignKey("BalanceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Balance"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate", null) - .WithMany("Bill") - .HasForeignKey("EstimateId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate", null) - .WithMany("Bill") - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery", "Query") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Owner"); - - b.Navigation("Query"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Author") - .WithMany("Posts") - .HasForeignKey("AuthorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Author"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost", "Post") - .WithMany("Tags") - .HasForeignKey("PostId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Tag", "Tag") - .WithMany() - .HasForeignKey("TagId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Post"); - - b.Navigation("Tag"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Author") - .WithMany() - .HasForeignKey("AuthorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Blog.Comment", "Parent") - .WithMany("Children") - .HasForeignKey("ParentId"); - - b.HasOne("Yavsc.Models.Blog.BlogPost", "Post") - .WithMany("Comments") - .HasForeignKey("PostId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Author"); - - b.Navigation("Parent"); - - b.Navigation("Post"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule", null) - .WithMany("Events") - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Server.Models.Calendar.Period", "Period") - .WithMany() - .HasForeignKey("PeriodStart", "PeriodEnd") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Period"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany("Connections") - .HasForeignKey("ApplicationUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany("Rooms") - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomAccess", b => - { - b.HasOne("Yavsc.Models.Chat.ChatRoom", "Room") - .WithMany("Moderation") - .HasForeignKey("ChannelName") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany("RoomAccess") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Room"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule", "Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "BaseProfile") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("BaseProfile"); - - b.Navigation("Schedule"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Location", "Location") - .WithMany() - .HasForeignKey("LocationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation", "Prestation") - .WithMany() - .HasForeignKey("PrestationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.BrusherProfile", "SelectedProfile") - .WithMany() - .HasForeignKey("SelectedProfileUserId"); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("Location"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Prestation"); - - b.Navigation("Regularisation"); - - b.Navigation("SelectedProfile"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Location", "Location") - .WithMany() - .HasForeignKey("LocationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("Location"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Regularisation"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation", "Prestation") - .WithMany() - .HasForeignKey("PrestationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery", "Query") - .WithMany("Prestations") - .HasForeignKey("QueryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Prestation"); - - b.Navigation("Query"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color", "Color") - .WithMany() - .HasForeignKey("ColorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Color"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation", "Prestation") - .WithMany("Taints") - .HasForeignKey("PrestationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.HairTaint", "Taint") - .WithMany() - .HasForeignKey("TaintId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Prestation"); - - b.Navigation("Taint"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.HasOne("Yavsc.Models.IT.Evolution.Feature", "False") - .WithMany() - .HasForeignKey("FeatureId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("False"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.DeviceDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "DeviceOwner") - .WithMany("DeviceDeclaration") - .HasForeignKey("DeviceOwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("DeviceOwner"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany("Services") - .HasForeignKey("ContextId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Context"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.HasOne("Yavsc.Models.Messaging.Notification", "Notified") - .WithMany() - .HasForeignKey("NotificationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Notified"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.InstrumentRating", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument", "Instrument") - .WithMany() - .HasForeignKey("InstrumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "Profile") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Instrument"); - - b.Navigation("Profile"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings", null) - .WithMany("SoundColor") - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings", null) - .WithMany("SoundColor") - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument", "Tool") - .WithMany() - .HasForeignKey("InstrumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tool"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Executor") - .WithMany() - .HasForeignKey("ExecutorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Executor"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany("Circles") - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle", "Circle") - .WithMany("Members") - .HasForeignKey("CircleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Member") - .WithMany("Membership") - .HasForeignKey("MemberId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Circle"); - - b.Navigation("Member"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.Relationship.PostalAddress", "PostalAddress") - .WithMany() - .HasForeignKey("AddressId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany("Book") - .HasForeignKey("ApplicationUserId"); - - b.Navigation("PostalAddress"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.HasOne("Yavsc.Models.Haircut.BrusherProfile", null) - .WithMany("Links") - .HasForeignKey("BrusherProfileUserId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", null) - .WithMany("Links") - .HasForeignKey("PayPalPaymentCreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Streaming.LiveFlow", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Parent") - .WithMany("Children") - .HasForeignKey("ParentCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings", null) - .WithMany("CoWorking") - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "Performer") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "WorkingFor") - .WithMany() - .HasForeignKey("WorkingForId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Performer"); - - b.Navigation("WorkingFor"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany("Forms") - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Context"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location", "OrganizationAddress") - .WithMany() - .HasForeignKey("OrganizationAddressId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Performer") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("OrganizationAddress"); - - b.Navigation("Performer"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Location", "Location") - .WithMany() - .HasForeignKey("LocationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("Location"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Regularisation"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Does") - .WithMany() - .HasForeignKey("DoesCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "User") - .WithMany("Activity") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Does"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Blog.BlogTrad", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Traducer") - .WithMany() - .HasForeignKey("TraducerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Traducer"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", "Repository") - .WithMany() - .HasForeignKey("GitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Regularisation"); - - b.Navigation("Repository"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.HasOne("Yavsc.Server.Models.IT.Project", "TargetProject") - .WithMany("Configurations") - .HasForeignKey("ProjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TargetProject"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Navigation("AccountBalance") - .IsRequired(); - - b.Navigation("BlackList"); - - b.Navigation("Book"); - - b.Navigation("Circles"); - - b.Navigation("Connections"); - - b.Navigation("DeviceDeclaration"); - - b.Navigation("Membership"); - - b.Navigation("Posts"); - - b.Navigation("RoomAccess"); - - b.Navigation("Rooms"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Navigation("Bill"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Navigation("Bill"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.Navigation("ACL"); - - b.Navigation("Comments"); - - b.Navigation("Tags"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.Navigation("Children"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Navigation("Events"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.Navigation("Moderation"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Navigation("Links"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Navigation("Prestations"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Navigation("Taints"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Navigation("SoundColor"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Navigation("SoundColor"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Navigation("Links"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Navigation("Members"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Navigation("Children"); - - b.Navigation("Forms"); - - b.Navigation("Services"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Navigation("Activity"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Navigation("CoWorking"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.Navigation("Configurations"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/Yavsc.Server/Migrations/20230326173049_net7.cs b/src/Yavsc.Server/Migrations/20230326173049_net7.cs deleted file mode 100644 index 00e07395..00000000 --- a/src/Yavsc.Server/Migrations/20230326173049_net7.cs +++ /dev/null @@ -1,7089 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; -using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; - -#nullable disable - -namespace Yavsc.Migrations -{ - /// - public partial class net7 : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.Sql("delete from \"Announce\" where \"OwnerId\" IS NULL"); - - migrationBuilder.DropForeignKey( - name: "FK_Comment_BlogPost_PostId", - table: "Comment" - ); - - migrationBuilder.DropForeignKey( - name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", - table: "CircleAuthorizationToBlogPost"); - - migrationBuilder.DropForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost"); - - - migrationBuilder.DropForeignKey( - name: "FK_BlogTag_BlogPost_PostId", - table: "BlogTag"); - - migrationBuilder.DropForeignKey( - name: "FK_BlogTag_Tag_TagId", - table: "BlogTag"); - - - - - migrationBuilder.DropForeignKey( - name: "FK_Activity_Activity_ParentCode", - table: "Activity"); - migrationBuilder.DropForeignKey( - name: "FK_AspNetUsers_Location_PostalAddressId", - table: "AspNetUsers"); - /* migrationBuilder.DropPrimaryKey( - name: "PK_Blog", - table: "BlogPost"); - - migrationBuilder.DropForeignKey( - name: "FK_AccountBalance_AspNetUsers_UserId", - table: "AccountBalance"); */ - - migrationBuilder.DropForeignKey( - name: "FK_Announce_AspNetUsers_OwnerId", - table: "Announce"); - - migrationBuilder.DropForeignKey( - name: "FK_AspNetRoleClaims_AspNetRoles_RoleId", - table: "AspNetRoleClaims"); - - migrationBuilder.DropForeignKey( - name: "FK_AspNetUserClaims_AspNetUsers_UserId", - table: "AspNetUserClaims"); - - migrationBuilder.DropForeignKey( - name: "FK_AspNetUserLogins_AspNetUsers_UserId", - table: "AspNetUserLogins"); - - migrationBuilder.DropForeignKey( - name: "FK_AspNetUserRoles_AspNetRoles_RoleId", - table: "AspNetUserRoles"); - - migrationBuilder.DropForeignKey( - name: "FK_AspNetUserRoles_AspNetUsers_UserId", - table: "AspNetUserRoles"); - - migrationBuilder.DropForeignKey( - name: "FK_AspNetUsers_BankIdentity_BankInfoId", - table: "AspNetUsers"); - - - migrationBuilder.DropForeignKey( - name: "FK_Ban_AspNetUsers_TargetId", - table: "Ban"); - migrationBuilder.DropForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact"); - - migrationBuilder.DropForeignKey( - name: "FK_BlackListed_AspNetUsers_OwnerId", - table: "BlackListed"); - migrationBuilder.DropForeignKey( - name: "FK_BlackListed_AspNetUsers_UserId", - table: "BlackListed"); - migrationBuilder.DropForeignKey( - name: "FK_BlogPost_AspNetUsers_AuthorId", - table: "BlogPost"); - - /* migrationBuilder.DropForeignKey( - name: "FK_ApplicationUser_BankIdentity_BankInfoId", - table: "AspNetUsers"); - migrationBuilder.DropForeignKey( - name: "FK_ApplicationUser_Location_PostalAddressId", - table: "AspNetUsers"); - migrationBuilder.DropForeignKey( - name: "FK_Ban_ApplicationUser_TargetId", - table: "Ban"); - -*/ - - migrationBuilder.DropForeignKey( - name: "FK_BlogTrad_AspNetUsers_TraducerId", - table: "BlogTrad"); - - migrationBuilder.DropForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile"); - - migrationBuilder.DropForeignKey( - name: "FK_BrusherProfile_Schedule_ScheduleOwnerId", - table: "BrusherProfile"); - - migrationBuilder.DropForeignKey( - name: "FK_Bug_Feature_FeatureId", - table: "Bug"); - migrationBuilder.DropForeignKey( - name: "FK_ChatConnection_AspNetUsers_ApplicationUserId", - table: "ChatConnection"); - migrationBuilder.DropForeignKey( - name: "FK_ChatRoom_AspNetUsers_OwnerId", - table: "ChatRoom"); - - migrationBuilder.DropForeignKey( - name: "FK_ChatRoomAccess_AspNetUsers_UserId", - table: "ChatRoomAccess"); - - migrationBuilder.DropForeignKey( - name: "FK_ChatRoomAccess_ChatRoom_ChannelName", - table: "ChatRoomAccess"); - - migrationBuilder.DropForeignKey( - name: "FK_CircleMember_AspNetUsers_MemberId", - table: "CircleMember"); - - migrationBuilder.DropForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember"); - - migrationBuilder.DropForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm"); - - migrationBuilder.DropForeignKey( - name: "FK_CommandLine_EstimateTemplate_EstimateTemplateId", - table: "CommandLine"); - - migrationBuilder.DropForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine"); - - migrationBuilder.DropForeignKey( - name: "FK_Comment_AspNetUsers_AuthorId", - table: "Comment"); - - - migrationBuilder.DropForeignKey( - name: "FK_Contact_PostalAddress_AddressId", - table: "Contact"); - - migrationBuilder.DropForeignKey( - name: "FK_CoWorking_AspNetUsers_WorkingForId", - table: "CoWorking"); - - migrationBuilder.DropForeignKey( - name: "FK_CoWorking_PerformerProfile_PerformerId", - table: "CoWorking"); - - migrationBuilder.DropForeignKey( - name: "FK_DeviceDeclaration_AspNetUsers_DeviceOwnerId", - table: "DeviceDeclaration"); - - migrationBuilder.DropForeignKey( - name: "FK_DimissClicked_AspNetUsers_UserId", - table: "DimissClicked"); - - migrationBuilder.DropForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked"); - - migrationBuilder.DropForeignKey( - name: "FK_Estimate_AspNetUsers_ClientId", - table: "Estimate"); - - migrationBuilder.DropForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate"); - - migrationBuilder.DropForeignKey( - name: "FK_Estimate_RdvQuery_CommandId", - table: "Estimate"); - - migrationBuilder.DropForeignKey( - name: "FK_GitRepositoryReference_AspNetUsers_OwnerId", - table: "GitRepositoryReference"); - - migrationBuilder.DropForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery"); - - migrationBuilder.DropForeignKey( - name: "FK_HairCutQuery_AspNetUsers_ClientId", - table: "HairCutQuery"); - - migrationBuilder.DropForeignKey( - name: "FK_HairCutQuery_BrusherProfile_SelectedProfileUserId", - table: "HairCutQuery"); - - migrationBuilder.DropForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery"); - - migrationBuilder.DropForeignKey( - name: "FK_HairCutQuery_Location_LocationId", - table: "HairCutQuery"); - - - migrationBuilder.DropForeignKey( - name: "FK_HairCutQuery_PayPalPayment_PaymentId", - table: "HairCutQuery"); - - migrationBuilder.DropForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery"); - - migrationBuilder.DropForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery"); - - migrationBuilder.DropForeignKey( - name: "FK_HairMultiCutQuery_AspNetUsers_ClientId", - table: "HairMultiCutQuery"); - - migrationBuilder.DropForeignKey( - name: "FK_HairMultiCutQuery_Location_LocationId", - table: "HairMultiCutQuery"); - - migrationBuilder.DropForeignKey( - name: "FK_HairMultiCutQuery_PayPalPayment_PaymentId", - table: "HairMultiCutQuery"); - - migrationBuilder.DropForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery"); - - migrationBuilder.DropForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem"); - - migrationBuilder.DropForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem"); - - migrationBuilder.DropForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint"); - - migrationBuilder.DropForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance"); - - migrationBuilder.DropForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance"); - - migrationBuilder.DropForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation"); - - migrationBuilder.DropForeignKey( - name: "FK_Instrumentation_PerformerProfile_UserId", - table: "Instrumentation"); - - migrationBuilder.DropForeignKey( - name: "FK_InstrumentRating_Instrument_InstrumentId", - table: "InstrumentRating"); - - migrationBuilder.DropForeignKey( - name: "FK_InstrumentRating_PerformerProfile_OwnerId", - table: "InstrumentRating"); - - migrationBuilder.DropForeignKey( - name: "FK_LiveFlow_AspNetUsers_OwnerId", - table: "LiveFlow"); - - migrationBuilder.DropForeignKey( - name: "FK_PayPalPayment_AspNetUsers_ExecutorId", - table: "PayPalPayment"); - - migrationBuilder.DropForeignKey( - name: "FK_PerformerProfile_AspNetUsers_PerformerId", - table: "PerformerProfile"); - - migrationBuilder.DropForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile"); - - migrationBuilder.DropForeignKey( - name: "FK_Project_Activity_ActivityCode", - table: "Project"); - - migrationBuilder.DropForeignKey( - name: "FK_Project_AspNetUsers_ClientId", - table: "Project"); - - migrationBuilder.DropForeignKey( - name: "FK_Project_GitRepositoryReference_GitId", - table: "Project"); - - migrationBuilder.DropForeignKey( - name: "FK_Project_PayPalPayment_PaymentId", - table: "Project"); - - migrationBuilder.DropForeignKey( - name: "FK_Project_PerformerProfile_PerformerId", - table: "Project"); - - migrationBuilder.DropForeignKey( - name: "FK_ProjectBuildConfiguration_Project_ProjectId", - table: "ProjectBuildConfiguration"); - - migrationBuilder.DropForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery"); - - migrationBuilder.DropForeignKey( - name: "FK_RdvQuery_AspNetUsers_ClientId", - table: "RdvQuery"); - - migrationBuilder.DropForeignKey( - name: "FK_RdvQuery_Location_LocationId", - table: "RdvQuery"); - - migrationBuilder.DropForeignKey( - name: "FK_RdvQuery_PayPalPayment_PaymentId", - table: "RdvQuery"); - - migrationBuilder.DropForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery"); - - migrationBuilder.DropForeignKey( - name: "FK_Schedule_AspNetUsers_OwnerId", - table: "Schedule"); - - migrationBuilder.DropForeignKey( - name: "FK_ScheduledEvent_Period_PeriodStart_PeriodEnd", - table: "ScheduledEvent"); - - migrationBuilder.DropForeignKey( - name: "FK_Service_Activity_ContextId", - table: "Service"); - - migrationBuilder.DropForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity"); - - migrationBuilder.DropForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity"); - - - migrationBuilder.DropIndex( - name: "UserNameIndex", - table: "AspNetUsers"); - - migrationBuilder.DropIndex( - name: "RoleNameIndex", - table: "AspNetRoles"); - - migrationBuilder.DropPrimaryKey( - name: "PK_UserActivity", - table: "UserActivity"); - - migrationBuilder.DropPrimaryKey( - name: "PK_Tag", - table: "Tag"); - - migrationBuilder.DropPrimaryKey( - name: "PK_Skill", - table: "Skill"); - - migrationBuilder.DropPrimaryKey( - name: "PK_Service", - table: "Service"); - - migrationBuilder.DropPrimaryKey( - name: "PK_RefreshToken", - table: "RefreshToken"); - - migrationBuilder.DropPrimaryKey( - name: "PK_RdvQuery", - table: "RdvQuery"); - - migrationBuilder.DropPrimaryKey( - name: "PK_Product", - table: "Product"); - - migrationBuilder.DropPrimaryKey( - name: "PK_PerformerProfile", - table: "PerformerProfile"); - - migrationBuilder.DropPrimaryKey( - name: "PK_Location", - table: "Location"); - - migrationBuilder.DropPrimaryKey( - name: "PK_HairMultiCutQuery", - table: "HairMultiCutQuery"); - - migrationBuilder.DropPrimaryKey( - name: "PK_HairCutQuery", - table: "HairCutQuery"); - - migrationBuilder.DropPrimaryKey( - name: "PK_ExceptionSIREN", - table: "ExceptionSIREN"); - - migrationBuilder.DropPrimaryKey( - name: "PK_EstimateTemplate", - table: "EstimateTemplate"); - - migrationBuilder.DropPrimaryKey( - name: "PK_Estimate", - table: "Estimate"); - - migrationBuilder.DropPrimaryKey( - name: "PK_Client", - table: "Client"); - - migrationBuilder.DropPrimaryKey( - name: "PK_CircleMember", - table: "CircleMember"); - - /* migrationBuilder.DropPrimaryKey( - name: "PK_BlogPost", - table: "BlogPost"); */ - - migrationBuilder.DropPrimaryKey( - name: "PK_BalanceImpact", - table: "BalanceImpact"); - - migrationBuilder.DropPrimaryKey( - name: "PK_Activity", - table: "Activity"); - - migrationBuilder.DropPrimaryKey( - name: "PK_AccountBalance", - table: "AccountBalance"); - - migrationBuilder.RenameTable( - name: "UserActivity", - newName: "UserActivities"); - - migrationBuilder.RenameTable( - name: "Tag", - newName: "Tags"); - - migrationBuilder.RenameTable( - name: "Skill", - newName: "SiteSkills"); - - migrationBuilder.RenameTable( - name: "Service", - newName: "Services"); - - migrationBuilder.RenameTable( - name: "RefreshToken", - newName: "RefreshTokens"); - - migrationBuilder.RenameTable( - name: "RdvQuery", - newName: "RdvQueries"); - - migrationBuilder.RenameTable( - name: "Product", - newName: "Products"); - - migrationBuilder.RenameTable( - name: "PerformerProfile", - newName: "Performers"); - - migrationBuilder.RenameTable( - name: "Location", - newName: "Locations"); - - migrationBuilder.RenameTable( - name: "HairMultiCutQuery", - newName: "HairMultiCutQueries"); - - migrationBuilder.RenameTable( - name: "HairCutQuery", - newName: "HairCutQueries"); - - migrationBuilder.RenameTable( - name: "ExceptionSIREN", - newName: "ExceptionsSIREN"); - - migrationBuilder.RenameTable( - name: "EstimateTemplate", - newName: "EstimateTemplates"); - - migrationBuilder.RenameTable( - name: "Estimate", - newName: "Estimates"); - - migrationBuilder.RenameTable( - name: "Client", - newName: "Applications"); - - migrationBuilder.RenameTable( - name: "CircleMember", - newName: "CircleMembers"); - - migrationBuilder.RenameTable( - name: "BlogPost", - newName: "Blogspot"); - - migrationBuilder.RenameTable( - name: "BalanceImpact", - newName: "BankBook"); - - migrationBuilder.RenameTable( - name: "Activity", - newName: "Activities"); - - migrationBuilder.RenameTable( - name: "AccountBalance", - newName: "BankStatus"); - - migrationBuilder.AlterColumn( - name: "PeriodStart", - table: "ScheduledEvent", - type: "timestamp with time zone", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "timestamp with time zone", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PeriodEnd", - table: "ScheduledEvent", - type: "timestamp with time zone", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "timestamp with time zone", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Id", - table: "ScheduledEvent", - type: "bigint", - nullable: false, - oldClrType: typeof(long), - oldType: "bigint") - .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - migrationBuilder.AlterColumn( - name: "Name", - table: "ProjectBuildConfiguration", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Id", - table: "ProjectBuildConfiguration", - type: "bigint", - nullable: false, - oldClrType: typeof(long), - oldType: "bigint") - .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - migrationBuilder.AlterColumn( - name: "Version", - table: "Project", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "UserModified", - table: "Project", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "UserCreated", - table: "Project", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PaymentId", - table: "Project", - type: "text", - nullable: true, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "OwnerId", - table: "Project", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Name", - table: "Project", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Description", - table: "Project", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Id", - table: "Project", - type: "bigint", - nullable: false, - oldClrType: typeof(long), - oldType: "bigint") - .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - migrationBuilder.AlterColumn( - name: "Street2", - table: "PostalAddress", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Street1", - table: "PostalAddress", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "State", - table: "PostalAddress", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Province", - table: "PostalAddress", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PostalCode", - table: "PostalAddress", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Country", - table: "PostalAddress", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "City", - table: "PostalAddress", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Id", - table: "PostalAddress", - type: "bigint", - nullable: false, - oldClrType: typeof(long), - oldType: "bigint") - .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - migrationBuilder.AlterColumn( - name: "UserModified", - table: "PayPalPayment", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "UserCreated", - table: "PayPalPayment", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "State", - table: "PayPalPayment", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PaypalPayerId", - table: "PayPalPayment", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "OrderReference", - table: "PayPalPayment", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ExecutorId", - table: "PayPalPayment", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "UserModified", - table: "Option", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "UserCreated", - table: "Option", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Description", - table: "Option", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "TokenType", - table: "OAuth2Tokens", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RefreshToken", - table: "OAuth2Tokens", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ExpiresIn", - table: "OAuth2Tokens", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "AccessToken", - table: "OAuth2Tokens", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "title", - table: "Notification", - type: "character varying(1024)", - maxLength: 1024, - nullable: false, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "tag", - table: "Notification", - type: "character varying(512)", - maxLength: 512, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "sound", - table: "Notification", - type: "character varying(512)", - maxLength: 512, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "icon", - table: "Notification", - type: "character varying(512)", - maxLength: 512, - nullable: false, - defaultValue: "exclam", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true, - oldDefaultValue: "exclam"); - - migrationBuilder.AlterColumn( - name: "color", - table: "Notification", - type: "character varying(512)", - maxLength: 512, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "click_action", - table: "Notification", - type: "character varying(512)", - maxLength: 512, - nullable: false, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "body", - table: "Notification", - type: "character varying(512)", - maxLength: 512, - nullable: false, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "Target", - table: "Notification", - type: "character varying(512)", - maxLength: 512, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Id", - table: "Notification", - type: "bigint", - nullable: false, - oldClrType: typeof(long), - oldType: "bigint") - .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - migrationBuilder.AlterColumn( - name: "Name", - table: "MusicalTendency", - type: "character varying(255)", - maxLength: 255, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "character varying(255)", - oldMaxLength: 255, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Id", - table: "MusicalTendency", - type: "bigint", - nullable: false, - oldClrType: typeof(long), - oldType: "bigint") - .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - migrationBuilder.AlterColumn( - name: "UserModified", - table: "MailingTemplate", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "UserCreated", - table: "MailingTemplate", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Topic", - table: "MailingTemplate", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ReplyToAddress", - table: "MailingTemplate", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Body", - table: "MailingTemplate", - type: "character varying(65536)", - maxLength: 65536, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "character varying(65536)", - oldMaxLength: 65536, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Title", - table: "LiveFlow", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Pitch", - table: "LiveFlow", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "OwnerId", - table: "LiveFlow", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "MediaType", - table: "LiveFlow", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "DifferedFileName", - table: "LiveFlow", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Id", - table: "LiveFlow", - type: "bigint", - nullable: false, - oldClrType: typeof(long), - oldType: "bigint") - .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - migrationBuilder.AlterColumn( - name: "Id", - table: "InstrumentRating", - type: "bigint", - nullable: false, - oldClrType: typeof(long), - oldType: "bigint") - .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - migrationBuilder.AlterColumn( - name: "Name", - table: "Instrument", - type: "character varying(255)", - maxLength: 255, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "character varying(255)", - oldMaxLength: 255, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Id", - table: "Instrument", - type: "bigint", - nullable: false, - oldClrType: typeof(long), - oldType: "bigint") - .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - migrationBuilder.AlterColumn( - name: "Rel", - table: "HyperLink", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ContentType", - table: "HyperLink", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Brand", - table: "HairTaint", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Id", - table: "HairTaint", - type: "bigint", - nullable: false, - oldClrType: typeof(long), - oldType: "bigint") - .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - migrationBuilder.AlterColumn( - name: "Id", - table: "HairPrestationCollectionItem", - type: "bigint", - nullable: false, - oldClrType: typeof(long), - oldType: "bigint") - .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - migrationBuilder.AlterColumn( - name: "Id", - table: "HairPrestation", - type: "bigint", - nullable: false, - oldClrType: typeof(long), - oldType: "bigint") - .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - migrationBuilder.AlterColumn( - name: "Url", - table: "GitRepositoryReference", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Path", - table: "GitRepositoryReference", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "OwnerId", - table: "GitRepositoryReference", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Branch", - table: "GitRepositoryReference", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Id", - table: "GitRepositoryReference", - type: "bigint", - nullable: false, - oldClrType: typeof(long), - oldType: "bigint") - .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - migrationBuilder.AlterColumn( - name: "DisplayName", - table: "FormationSettings", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Summary", - table: "Form", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ShortName", - table: "Feature", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Description", - table: "Feature", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Id", - table: "Feature", - type: "bigint", - nullable: false, - oldClrType: typeof(long), - oldType: "bigint") - .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - migrationBuilder.AlterColumn( - name: "SoundCloudId", - table: "DjSettings", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Version", - table: "DeviceDeclaration", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Platform", - table: "DeviceDeclaration", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Model", - table: "DeviceDeclaration", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "DeviceOwnerId", - table: "DeviceDeclaration", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "DeclarationDate", - table: "DeviceDeclaration", - type: "timestamp with time zone", - nullable: false, - defaultValueSql: "LOCALTIMESTAMP", - oldClrType: typeof(DateTime), - oldType: "timestamp with time zone"); - - migrationBuilder.AlterColumn( - name: "WorkingForId", - table: "CoWorking", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PerformerId", - table: "CoWorking", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Id", - table: "CoWorking", - type: "bigint", - nullable: false, - oldClrType: typeof(long), - oldType: "bigint") - .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - migrationBuilder.AlterColumn( - name: "Name", - table: "Contact", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "EMail", - table: "Contact", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "UserModified", - table: "Comment", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "UserCreated", - table: "Comment", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Content", - table: "Comment", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Id", - table: "Comment", - type: "bigint", - nullable: false, - oldClrType: typeof(long), - oldType: "bigint") - .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - migrationBuilder.AlterColumn( - name: "Currency", - table: "CommandLine", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Id", - table: "CommandLine", - type: "bigint", - nullable: false, - oldClrType: typeof(long), - oldType: "bigint") - .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - migrationBuilder.AlterColumn( - name: "Title", - table: "CommandForm", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ActivityCode", - table: "CommandForm", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ActionName", - table: "CommandForm", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Id", - table: "CommandForm", - type: "bigint", - nullable: false, - oldClrType: typeof(long), - oldType: "bigint") - .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - migrationBuilder.AlterColumn( - name: "Name", - table: "Color", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Id", - table: "Color", - type: "bigint", - nullable: false, - oldClrType: typeof(long), - oldType: "bigint") - .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - migrationBuilder.AlterColumn( - name: "UserName", - table: "ClientProviderInfo", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Phone", - table: "ClientProviderInfo", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "EMail", - table: "ClientProviderInfo", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Avatar", - table: "ClientProviderInfo", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "OwnerId", - table: "Circle", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Name", - table: "Circle", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Id", - table: "Circle", - type: "bigint", - nullable: false, - oldClrType: typeof(long), - oldType: "bigint") - .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - migrationBuilder.AlterColumn( - name: "Id", - table: "ChatRoomAccess", - type: "bigint", - nullable: false, - oldClrType: typeof(long), - oldType: "bigint") - .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - migrationBuilder.AlterColumn( - name: "UserModified", - table: "ChatRoom", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "UserCreated", - table: "ChatRoom", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Topic", - table: "ChatRoom", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "OwnerId", - table: "ChatRoom", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "UserAgent", - table: "ChatConnection", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Title", - table: "Bug", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FeatureId", - table: "Bug", - type: "bigint", - nullable: true, - defaultValue: 0L, - oldClrType: typeof(long), - oldType: "bigint", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Description", - table: "Bug", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Id", - table: "Bug", - type: "bigint", - nullable: false, - oldClrType: typeof(long), - oldType: "bigint") - .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - migrationBuilder.AlterColumn( - name: "ScheduleOwnerId", - table: "BrusherProfile", - type: "text", - nullable: true, - defaultValue: null, - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "TraducerId", - table: "BlogTrad", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Title", - table: "BlogTrad", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Body", - table: "BlogTrad", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Id", - table: "BlackListed", - type: "bigint", - nullable: false, - oldClrType: typeof(long), - oldType: "bigint") - .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - migrationBuilder.AlterColumn( - name: "WicketCode", - table: "BankIdentity", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "IBAN", - table: "BankIdentity", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "BankCode", - table: "BankIdentity", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "BIC", - table: "BankIdentity", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "AccountNumber", - table: "BankIdentity", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Id", - table: "BankIdentity", - type: "bigint", - nullable: false, - oldClrType: typeof(long), - oldType: "bigint") - .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - migrationBuilder.AlterColumn( - name: "UserModified", - table: "Ban", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "UserCreated", - table: "Ban", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Id", - table: "Ban", - type: "bigint", - nullable: false, - oldClrType: typeof(long), - oldType: "bigint") - .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - migrationBuilder.AlterColumn( - name: "UserModified", - table: "AspNetUsers", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "UserCreated", - table: "AspNetUsers", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PostalAddressId", - table: "AspNetUsers", - type: "bigint", - nullable: true, - defaultValue: 0L, - oldClrType: typeof(long), - oldType: "bigint", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FullName", - table: "AspNetUsers", - type: "character varying(512)", - maxLength: 512, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "character varying(512)", - oldMaxLength: 512, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "DedicatedGoogleCalendar", - table: "AspNetUsers", - type: "character varying(512)", - maxLength: 512, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "character varying(512)", - oldMaxLength: 512, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "BankInfoId", - table: "AspNetUsers", - type: "bigint", - nullable: true, - defaultValue: null, - oldClrType: typeof(long), - oldType: "bigint", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Avatar", - table: "AspNetUsers", - type: "character varying(512)", - maxLength: 512, - nullable: false, - defaultValue: "/images/Users/icon_user.png", - oldClrType: typeof(string), - oldType: "character varying(512)", - oldMaxLength: 512, - oldNullable: true, - oldDefaultValue: "/images/Users/icon_user.png"); - - migrationBuilder.AlterColumn( - name: "Id", - table: "AspNetUserClaims", - type: "integer", - nullable: false, - oldClrType: typeof(int), - oldType: "integer") - .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - migrationBuilder.AlterColumn( - name: "Id", - table: "AspNetRoleClaims", - type: "integer", - nullable: false, - oldClrType: typeof(int), - oldType: "integer") - .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - migrationBuilder.AlterColumn( - name: "Topic", - table: "Announce", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Sender", - table: "Announce", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "OwnerId", - table: "Announce", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Message", - table: "Announce", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Id", - table: "Announce", - type: "bigint", - nullable: false, - oldClrType: typeof(long), - oldType: "bigint") - .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - migrationBuilder.AlterColumn( - name: "Name", - table: "Tags", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Id", - table: "Tags", - type: "bigint", - nullable: false, - oldClrType: typeof(long), - oldType: "bigint") - .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - migrationBuilder.AlterColumn( - name: "Name", - table: "SiteSkills", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Id", - table: "SiteSkills", - type: "bigint", - nullable: false, - oldClrType: typeof(long), - oldType: "bigint") - .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - migrationBuilder.AlterColumn( - name: "Name", - table: "Services", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Description", - table: "Services", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ContextId", - table: "Services", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Id", - table: "Services", - type: "bigint", - nullable: false, - oldClrType: typeof(long), - oldType: "bigint") - .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - migrationBuilder.AlterColumn( - name: "UserModified", - table: "RdvQueries", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "UserCreated", - table: "RdvQueries", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Reason", - table: "RdvQueries", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PaymentId", - table: "RdvQueries", - type: "text", - nullable: true, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "LocationId", - table: "RdvQueries", - type: "bigint", - nullable: false, - defaultValue: 0L, - oldClrType: typeof(long), - oldType: "bigint", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Description", - table: "RdvQueries", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Id", - table: "RdvQueries", - type: "bigint", - nullable: false, - oldClrType: typeof(long), - oldType: "bigint") - .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - migrationBuilder.AlterColumn( - name: "Name", - table: "Products", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Description", - table: "Products", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Id", - table: "Products", - type: "bigint", - nullable: false, - oldClrType: typeof(long), - oldType: "bigint") - .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - migrationBuilder.AlterColumn( - name: "WebSite", - table: "Performers", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "SIREN", - table: "Performers", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Address", - table: "Locations", - type: "character varying(512)", - maxLength: 512, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "character varying(512)", - oldMaxLength: 512, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Id", - table: "Locations", - type: "bigint", - nullable: false, - oldClrType: typeof(long), - oldType: "bigint") - .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - migrationBuilder.AlterColumn( - name: "UserModified", - table: "HairMultiCutQueries", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "UserCreated", - table: "HairMultiCutQueries", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PaymentId", - table: "HairMultiCutQueries", - type: "text", - nullable: true, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "LocationId", - table: "HairMultiCutQueries", - type: "bigint", - nullable: false, - defaultValue: 0L, - oldClrType: typeof(long), - oldType: "bigint", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Description", - table: "HairMultiCutQueries", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Id", - table: "HairMultiCutQueries", - type: "bigint", - nullable: false, - oldClrType: typeof(long), - oldType: "bigint") - .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - migrationBuilder.AlterColumn( - name: "UserModified", - table: "HairCutQueries", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "UserCreated", - table: "HairCutQueries", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PaymentId", - table: "HairCutQueries", - type: "text", - nullable: true, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "LocationId", - table: "HairCutQueries", - type: "bigint", - nullable: false, - defaultValue: 0L, - oldClrType: typeof(long), - oldType: "bigint", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Description", - table: "HairCutQueries", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "AdditionalInfo", - table: "HairCutQueries", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Id", - table: "HairCutQueries", - type: "bigint", - nullable: false, - oldClrType: typeof(long), - oldType: "bigint") - .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - migrationBuilder.AlterColumn( - name: "Title", - table: "EstimateTemplates", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Description", - table: "EstimateTemplates", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Id", - table: "EstimateTemplates", - type: "bigint", - nullable: false, - oldClrType: typeof(long), - oldType: "bigint") - .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - migrationBuilder.AlterColumn( - name: "Title", - table: "Estimates", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "OwnerId", - table: "Estimates", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Description", - table: "Estimates", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "AttachedGraphicsString", - table: "Estimates", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "AttachedFilesString", - table: "Estimates", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Id", - table: "Estimates", - type: "bigint", - nullable: false, - oldClrType: typeof(long), - oldType: "bigint") - .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - migrationBuilder.AlterColumn( - name: "Secret", - table: "Applications", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RedirectUri", - table: "Applications", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "LogoutRedirectUri", - table: "Applications", - type: "character varying(100)", - maxLength: 100, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "character varying(100)", - oldMaxLength: 100, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "DisplayName", - table: "Applications", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "UserModified", - table: "Blogspot", - type: "text", - nullable: true, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "UserCreated", - table: "Blogspot", - type: "text", - nullable: true, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Title", - table: "Blogspot", - type: "text", - nullable: true, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Photo", - table: "Blogspot", - type: "text", - nullable: true, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Lang", - table: "Blogspot", - type: "text", - nullable: true, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Content", - table: "Blogspot", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "AuthorId", - table: "Blogspot", - type: "text", - nullable: true, - defaultValue: null, - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Id", - table: "Blogspot", - type: "bigint", - nullable: false, - oldClrType: typeof(long), - oldType: "bigint") - .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - migrationBuilder.AlterColumn( - name: "Id", - table: "BankBook", - type: "bigint", - nullable: false, - oldClrType: typeof(long), - oldType: "bigint") - .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - migrationBuilder.AlterColumn( - name: "UserModified", - table: "Activities", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "UserCreated", - table: "Activities", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "SettingsClassName", - table: "Activities", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Photo", - table: "Activities", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ParentCode", - table: "Activities", - type: "text", - nullable: true, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Name", - table: "Activities", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ModeratorGroupName", - table: "Activities", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Description", - table: "Activities", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AddPrimaryKey( - name: "PK_UserActivities", - table: "UserActivities", - columns: new[] { "DoesCode", "UserId" }); - - migrationBuilder.AddPrimaryKey( - name: "PK_Tags", - table: "Tags", - column: "Id"); - - migrationBuilder.AddPrimaryKey( - name: "PK_SiteSkills", - table: "SiteSkills", - column: "Id"); - - migrationBuilder.AddPrimaryKey( - name: "PK_Services", - table: "Services", - column: "Id"); - - migrationBuilder.AddPrimaryKey( - name: "PK_RefreshTokens", - table: "RefreshTokens", - column: "Id"); - - migrationBuilder.AddPrimaryKey( - name: "PK_RdvQueries", - table: "RdvQueries", - column: "Id"); - - migrationBuilder.AddPrimaryKey( - name: "PK_Products", - table: "Products", - column: "Id"); - - migrationBuilder.AddPrimaryKey( - name: "PK_Performers", - table: "Performers", - column: "PerformerId"); - - migrationBuilder.AddPrimaryKey( - name: "PK_Locations", - table: "Locations", - column: "Id"); - - migrationBuilder.AddPrimaryKey( - name: "PK_HairMultiCutQueries", - table: "HairMultiCutQueries", - column: "Id"); - - migrationBuilder.AddPrimaryKey( - name: "PK_HairCutQueries", - table: "HairCutQueries", - column: "Id"); - - migrationBuilder.AddPrimaryKey( - name: "PK_ExceptionsSIREN", - table: "ExceptionsSIREN", - column: "SIREN"); - - migrationBuilder.AddPrimaryKey( - name: "PK_EstimateTemplates", - table: "EstimateTemplates", - column: "Id"); - - migrationBuilder.AddPrimaryKey( - name: "PK_Estimates", - table: "Estimates", - column: "Id"); - - migrationBuilder.AddPrimaryKey( - name: "PK_Applications", - table: "Applications", - column: "Id"); - - migrationBuilder.AddPrimaryKey( - name: "PK_CircleMembers", - table: "CircleMembers", - columns: new[] { "MemberId", "CircleId" }); - migrationBuilder.DropPrimaryKey( - "PK_BlogPost","Blogspot" - ); - - migrationBuilder.AddPrimaryKey( - name: "PK_Blogspot", - table: "Blogspot", - column: "Id"); - - migrationBuilder.AddPrimaryKey( - name: "PK_BankBook", - table: "BankBook", - column: "Id"); - - migrationBuilder.AddPrimaryKey( - name: "PK_Activities", - table: "Activities", - column: "Code"); - - migrationBuilder.AddPrimaryKey( - name: "PK_BankStatus", - table: "BankStatus", - column: "UserId"); - - migrationBuilder.CreateTable( - name: "AspNetUserTokens", - columns: table => new - { - UserId = table.Column(type: "text", nullable: false), - LoginProvider = table.Column(type: "text", nullable: false), - Name = table.Column(type: "text", nullable: false), - Value = table.Column(type: "text", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_AspNetUserTokens", x => new { x.UserId, x.LoginProvider, x.Name }); - table.ForeignKey( - name: "FK_AspNetUserTokens_AspNetUsers_UserId", - column: x => x.UserId, - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateIndex( - name: "IX_ScheduledEvent_PeriodStart_PeriodEnd", - table: "ScheduledEvent", - columns: new[] { "PeriodStart", "PeriodEnd" }); - - migrationBuilder.CreateIndex( - name: "IX_ScheduledEvent_ScheduleOwnerId", - table: "ScheduledEvent", - column: "ScheduleOwnerId"); - - migrationBuilder.CreateIndex( - name: "IX_ProjectBuildConfiguration_ProjectId", - table: "ProjectBuildConfiguration", - column: "ProjectId"); - - migrationBuilder.CreateIndex( - name: "IX_Project_ActivityCode", - table: "Project", - column: "ActivityCode"); - - migrationBuilder.CreateIndex( - name: "IX_Project_ClientId", - table: "Project", - column: "ClientId"); - - migrationBuilder.CreateIndex( - name: "IX_Project_GitId", - table: "Project", - column: "GitId"); - - migrationBuilder.CreateIndex( - name: "IX_Project_PaymentId", - table: "Project", - column: "PaymentId"); - - migrationBuilder.CreateIndex( - name: "IX_Project_PerformerId", - table: "Project", - column: "PerformerId"); - - migrationBuilder.CreateIndex( - name: "IX_PayPalPayment_ExecutorId", - table: "PayPalPayment", - column: "ExecutorId"); - - migrationBuilder.CreateIndex( - name: "IX_MusicalPreference_DjSettingsUserId", - table: "MusicalPreference", - column: "DjSettingsUserId"); - - migrationBuilder.CreateIndex( - name: "IX_MusicalPreference_GeneralSettingsUserId", - table: "MusicalPreference", - column: "GeneralSettingsUserId"); - - migrationBuilder.CreateIndex( - name: "IX_LiveFlow_OwnerId", - table: "LiveFlow", - column: "OwnerId"); - - migrationBuilder.CreateIndex( - name: "IX_InstrumentRating_OwnerId", - table: "InstrumentRating", - column: "OwnerId"); - - migrationBuilder.CreateIndex( - name: "IX_Instrumentation_UserId", - table: "Instrumentation", - column: "UserId"); - - migrationBuilder.CreateIndex( - name: "IX_HyperLink_BrusherProfileUserId", - table: "HyperLink", - column: "BrusherProfileUserId"); - - migrationBuilder.CreateIndex( - name: "IX_HyperLink_PayPalPaymentCreationToken", - table: "HyperLink", - column: "PayPalPaymentCreationToken"); - - migrationBuilder.CreateIndex( - name: "IX_HairTaintInstance_PrestationId", - table: "HairTaintInstance", - column: "PrestationId"); - - migrationBuilder.CreateIndex( - name: "IX_HairTaint_ColorId", - table: "HairTaint", - column: "ColorId"); - - migrationBuilder.CreateIndex( - name: "IX_HairPrestationCollectionItem_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId"); - - migrationBuilder.CreateIndex( - name: "IX_HairPrestationCollectionItem_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId"); - - migrationBuilder.CreateIndex( - name: "IX_GitRepositoryReference_OwnerId", - table: "GitRepositoryReference", - column: "OwnerId"); - - migrationBuilder.CreateIndex( - name: "IX_DimissClicked_NotificationId", - table: "DimissClicked", - column: "NotificationId"); - - migrationBuilder.CreateIndex( - name: "IX_DeviceDeclaration_DeviceOwnerId", - table: "DeviceDeclaration", - column: "DeviceOwnerId"); - - migrationBuilder.CreateIndex( - name: "IX_CoWorking_FormationSettingsUserId", - table: "CoWorking", - column: "FormationSettingsUserId"); - - migrationBuilder.CreateIndex( - name: "IX_CoWorking_PerformerId", - table: "CoWorking", - column: "PerformerId"); - - migrationBuilder.CreateIndex( - name: "IX_CoWorking_WorkingForId", - table: "CoWorking", - column: "WorkingForId"); - - migrationBuilder.CreateIndex( - name: "IX_Contact_AddressId", - table: "Contact", - column: "AddressId"); - - migrationBuilder.CreateIndex( - name: "IX_Contact_ApplicationUserId", - table: "Contact", - column: "ApplicationUserId"); - - migrationBuilder.CreateIndex( - name: "IX_Comment_AuthorId", - table: "Comment", - column: "AuthorId"); - - migrationBuilder.CreateIndex( - name: "IX_Comment_ParentId", - table: "Comment", - column: "ParentId"); - - migrationBuilder.CreateIndex( - name: "IX_Comment_PostId", - table: "Comment", - column: "PostId"); - - migrationBuilder.CreateIndex( - name: "IX_CommandLine_EstimateId", - table: "CommandLine", - column: "EstimateId"); - - migrationBuilder.CreateIndex( - name: "IX_CommandLine_EstimateTemplateId", - table: "CommandLine", - column: "EstimateTemplateId"); - - migrationBuilder.CreateIndex( - name: "IX_CommandForm_ActivityCode", - table: "CommandForm", - column: "ActivityCode"); - - migrationBuilder.CreateIndex( - name: "IX_CircleAuthorizationToBlogPost_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId"); - - migrationBuilder.CreateIndex( - name: "IX_Circle_ApplicationUserId", - table: "Circle", - column: "ApplicationUserId"); - - migrationBuilder.CreateIndex( - name: "IX_ChatRoomAccess_UserId", - table: "ChatRoomAccess", - column: "UserId"); - - migrationBuilder.CreateIndex( - name: "IX_ChatRoom_OwnerId", - table: "ChatRoom", - column: "OwnerId"); - - migrationBuilder.CreateIndex( - name: "IX_ChatConnection_ApplicationUserId", - table: "ChatConnection", - column: "ApplicationUserId"); - - migrationBuilder.CreateIndex( - name: "IX_Bug_FeatureId", - table: "Bug", - column: "FeatureId"); - - migrationBuilder.CreateIndex( - name: "IX_BrusherProfile_ScheduleOwnerId", - table: "BrusherProfile", - column: "ScheduleOwnerId"); - - migrationBuilder.CreateIndex( - name: "IX_BlogTrad_TraducerId", - table: "BlogTrad", - column: "TraducerId"); - - migrationBuilder.CreateIndex( - name: "IX_BlogTag_TagId", - table: "BlogTag", - column: "TagId"); - - migrationBuilder.CreateIndex( - name: "IX_BlackListed_OwnerId", - table: "BlackListed", - column: "OwnerId"); - - migrationBuilder.CreateIndex( - name: "IX_BlackListed_UserId", - table: "BlackListed", - column: "UserId"); - - migrationBuilder.CreateIndex( - name: "IX_Ban_TargetId", - table: "Ban", - column: "TargetId"); - - migrationBuilder.CreateIndex( - name: "IX_AspNetUsers_BankInfoId", - table: "AspNetUsers", - column: "BankInfoId"); - - migrationBuilder.CreateIndex( - name: "IX_AspNetUsers_PostalAddressId", - table: "AspNetUsers", - column: "PostalAddressId"); - - migrationBuilder.CreateIndex( - name: "UserNameIndex", - table: "AspNetUsers", - column: "NormalizedUserName", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_AspNetUserRoles_RoleId", - table: "AspNetUserRoles", - column: "RoleId"); - - migrationBuilder.CreateIndex( - name: "IX_AspNetUserLogins_UserId", - table: "AspNetUserLogins", - column: "UserId"); - - migrationBuilder.CreateIndex( - name: "IX_AspNetUserClaims_UserId", - table: "AspNetUserClaims", - column: "UserId"); - - migrationBuilder.CreateIndex( - name: "RoleNameIndex", - table: "AspNetRoles", - column: "NormalizedName", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_AspNetRoleClaims_RoleId", - table: "AspNetRoleClaims", - column: "RoleId"); - - migrationBuilder.CreateIndex( - name: "IX_Announce_OwnerId", - table: "Announce", - column: "OwnerId"); - - migrationBuilder.CreateIndex( - name: "IX_UserActivities_UserId", - table: "UserActivities", - column: "UserId"); - - migrationBuilder.CreateIndex( - name: "IX_Services_ContextId", - table: "Services", - column: "ContextId"); - - migrationBuilder.CreateIndex( - name: "IX_RdvQueries_ActivityCode", - table: "RdvQueries", - column: "ActivityCode"); - - migrationBuilder.CreateIndex( - name: "IX_RdvQueries_ClientId", - table: "RdvQueries", - column: "ClientId"); - - migrationBuilder.CreateIndex( - name: "IX_RdvQueries_LocationId", - table: "RdvQueries", - column: "LocationId"); - - migrationBuilder.CreateIndex( - name: "IX_RdvQueries_PaymentId", - table: "RdvQueries", - column: "PaymentId"); - - migrationBuilder.CreateIndex( - name: "IX_RdvQueries_PerformerId", - table: "RdvQueries", - column: "PerformerId"); - - migrationBuilder.CreateIndex( - name: "IX_Performers_OrganizationAddressId", - table: "Performers", - column: "OrganizationAddressId"); - - migrationBuilder.CreateIndex( - name: "IX_HairMultiCutQueries_ActivityCode", - table: "HairMultiCutQueries", - column: "ActivityCode"); - - migrationBuilder.CreateIndex( - name: "IX_HairMultiCutQueries_ClientId", - table: "HairMultiCutQueries", - column: "ClientId"); - - migrationBuilder.CreateIndex( - name: "IX_HairMultiCutQueries_LocationId", - table: "HairMultiCutQueries", - column: "LocationId"); - - migrationBuilder.CreateIndex( - name: "IX_HairMultiCutQueries_PaymentId", - table: "HairMultiCutQueries", - column: "PaymentId"); - - migrationBuilder.CreateIndex( - name: "IX_HairMultiCutQueries_PerformerId", - table: "HairMultiCutQueries", - column: "PerformerId"); - - migrationBuilder.CreateIndex( - name: "IX_HairCutQueries_ActivityCode", - table: "HairCutQueries", - column: "ActivityCode"); - - migrationBuilder.CreateIndex( - name: "IX_HairCutQueries_ClientId", - table: "HairCutQueries", - column: "ClientId"); - - migrationBuilder.CreateIndex( - name: "IX_HairCutQueries_LocationId", - table: "HairCutQueries", - column: "LocationId"); - - migrationBuilder.CreateIndex( - name: "IX_HairCutQueries_PaymentId", - table: "HairCutQueries", - column: "PaymentId"); - - migrationBuilder.CreateIndex( - name: "IX_HairCutQueries_PerformerId", - table: "HairCutQueries", - column: "PerformerId"); - - migrationBuilder.CreateIndex( - name: "IX_HairCutQueries_PrestationId", - table: "HairCutQueries", - column: "PrestationId"); - - migrationBuilder.CreateIndex( - name: "IX_HairCutQueries_SelectedProfileUserId", - table: "HairCutQueries", - column: "SelectedProfileUserId"); - - migrationBuilder.CreateIndex( - name: "IX_Estimates_ClientId", - table: "Estimates", - column: "ClientId"); - - migrationBuilder.CreateIndex( - name: "IX_Estimates_CommandId", - table: "Estimates", - column: "CommandId"); - - migrationBuilder.CreateIndex( - name: "IX_Estimates_OwnerId", - table: "Estimates", - column: "OwnerId"); - - migrationBuilder.CreateIndex( - name: "IX_CircleMembers_CircleId", - table: "CircleMembers", - column: "CircleId"); - - migrationBuilder.CreateIndex( - name: "IX_Blogspot_AuthorId", - table: "Blogspot", - column: "AuthorId"); - - migrationBuilder.CreateIndex( - name: "IX_BankBook_BalanceId", - table: "BankBook", - column: "BalanceId"); - - migrationBuilder.CreateIndex( - name: "IX_Activities_ParentCode", - table: "Activities", - column: "ParentCode"); - - migrationBuilder.AddForeignKey( - name: "FK_Activities_Activities_ParentCode", - table: "Activities", - column: "ParentCode", - principalTable: "Activities", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_Announce_AspNetUsers_OwnerId", - table: "Announce", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_AspNetRoleClaims_AspNetRoles_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_AspNetUserClaims_AspNetUsers_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_AspNetUserLogins_AspNetUsers_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_AspNetUserRoles_AspNetRoles_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_AspNetUserRoles_AspNetUsers_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_AspNetUsers_BankIdentity_BankInfoId", - table: "AspNetUsers", - column: "BankInfoId", - principalTable: "BankIdentity", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_AspNetUsers_Locations_PostalAddressId", - table: "AspNetUsers", - column: "PostalAddressId", - principalTable: "Locations", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_Ban_AspNetUsers_TargetId", - table: "Ban", - column: "TargetId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_BankBook_BankStatus_BalanceId", - table: "BankBook", - column: "BalanceId", - principalTable: "BankStatus", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_BankStatus_AspNetUsers_UserId", - table: "BankStatus", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_AspNetUsers_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_AspNetUsers_UserId", - table: "BlackListed", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_Blogspot_AspNetUsers_AuthorId", - table: "Blogspot", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_Blogspot_PostId", - table: "BlogTag", - column: "PostId", - principalTable: "Blogspot", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_Tags_TagId", - table: "BlogTag", - column: "TagId", - principalTable: "Tags", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_BlogTrad_AspNetUsers_TraducerId", - table: "BlogTrad", - column: "TraducerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_Performers_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "Performers", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_Schedule_ScheduleOwnerId", - table: "BrusherProfile", - column: "ScheduleOwnerId", - principalTable: "Schedule", - principalColumn: "OwnerId", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_Bug_Feature_FeatureId", - table: "Bug", - column: "FeatureId", - principalTable: "Feature", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_ChatConnection_AspNetUsers_ApplicationUserId", - table: "ChatConnection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_ChatRoom_AspNetUsers_OwnerId", - table: "ChatRoom", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_ChatRoomAccess_AspNetUsers_UserId", - table: "ChatRoomAccess", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_ChatRoomAccess_ChatRoom_ChannelName", - table: "ChatRoomAccess", - column: "ChannelName", - principalTable: "ChatRoom", - principalColumn: "Name", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blogspot_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "Blogspot", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_CircleMembers_AspNetUsers_MemberId", - table: "CircleMembers", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_CircleMembers_Circle_CircleId", - table: "CircleMembers", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activities_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activities", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_EstimateTemplates_EstimateTemplateId", - table: "CommandLine", - column: "EstimateTemplateId", - principalTable: "EstimateTemplates", - principalColumn: "Id"); - - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimates_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimates", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_Comment_AspNetUsers_AuthorId", - table: "Comment", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_Comment_Blogspot_PostId", - table: "Comment", - column: "PostId", - principalTable: "Blogspot", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_Contact_PostalAddress_AddressId", - table: "Contact", - column: "AddressId", - principalTable: "PostalAddress", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_CoWorking_AspNetUsers_WorkingForId", - table: "CoWorking", - column: "WorkingForId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_CoWorking_Performers_PerformerId", - table: "CoWorking", - column: "PerformerId", - principalTable: "Performers", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_DeviceDeclaration_AspNetUsers_DeviceOwnerId", - table: "DeviceDeclaration", - column: "DeviceOwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_AspNetUsers_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_Estimates_AspNetUsers_ClientId", - table: "Estimates", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_Estimates_Performers_OwnerId", - table: "Estimates", - column: "OwnerId", - principalTable: "Performers", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_Estimates_RdvQueries_CommandId", - table: "Estimates", - column: "CommandId", - principalTable: "RdvQueries", - principalColumn: "Id"); - - migrationBuilder.AddForeignKey( - name: "FK_GitRepositoryReference_AspNetUsers_OwnerId", - table: "GitRepositoryReference", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_HairCutQueries_Activities_ActivityCode", - table: "HairCutQueries", - column: "ActivityCode", - principalTable: "Activities", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_HairCutQueries_AspNetUsers_ClientId", - table: "HairCutQueries", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_HairCutQueries_BrusherProfile_SelectedProfileUserId", - table: "HairCutQueries", - column: "SelectedProfileUserId", - principalTable: "BrusherProfile", - principalColumn: "UserId"); - - migrationBuilder.AddForeignKey( - name: "FK_HairCutQueries_HairPrestation_PrestationId", - table: "HairCutQueries", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_HairCutQueries_Locations_LocationId", - table: "HairCutQueries", - column: "LocationId", - principalTable: "Locations", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_HairCutQueries_PayPalPayment_PaymentId", - table: "HairCutQueries", - column: "PaymentId", - principalTable: "PayPalPayment", - principalColumn: "CreationToken", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_HairCutQueries_Performers_PerformerId", - table: "HairCutQueries", - column: "PerformerId", - principalTable: "Performers", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQueries_Activities_ActivityCode", - table: "HairMultiCutQueries", - column: "ActivityCode", - principalTable: "Activities", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQueries_AspNetUsers_ClientId", - table: "HairMultiCutQueries", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQueries_Locations_LocationId", - table: "HairMultiCutQueries", - column: "LocationId", - principalTable: "Locations", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQueries_PayPalPayment_PaymentId", - table: "HairMultiCutQueries", - column: "PaymentId", - principalTable: "PayPalPayment", - principalColumn: "CreationToken", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQueries_Performers_PerformerId", - table: "HairMultiCutQueries", - column: "PerformerId", - principalTable: "Performers", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQueries_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQueries", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Performers_UserId", - table: "Instrumentation", - column: "UserId", - principalTable: "Performers", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_InstrumentRating_Instrument_InstrumentId", - table: "InstrumentRating", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_InstrumentRating_Performers_OwnerId", - table: "InstrumentRating", - column: "OwnerId", - principalTable: "Performers", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_LiveFlow_AspNetUsers_OwnerId", - table: "LiveFlow", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_PayPalPayment_AspNetUsers_ExecutorId", - table: "PayPalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_Performers_AspNetUsers_PerformerId", - table: "Performers", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_Performers_Locations_OrganizationAddressId", - table: "Performers", - column: "OrganizationAddressId", - principalTable: "Locations", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_Project_Activities_ActivityCode", - table: "Project", - column: "ActivityCode", - principalTable: "Activities", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_Project_AspNetUsers_ClientId", - table: "Project", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_Project_GitRepositoryReference_GitId", - table: "Project", - column: "GitId", - principalTable: "GitRepositoryReference", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_Project_PayPalPayment_PaymentId", - table: "Project", - column: "PaymentId", - principalTable: "PayPalPayment", - principalColumn: "CreationToken", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_Project_Performers_PerformerId", - table: "Project", - column: "PerformerId", - principalTable: "Performers", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_ProjectBuildConfiguration_Project_ProjectId", - table: "ProjectBuildConfiguration", - column: "ProjectId", - principalTable: "Project", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_RdvQueries_Activities_ActivityCode", - table: "RdvQueries", - column: "ActivityCode", - principalTable: "Activities", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_RdvQueries_AspNetUsers_ClientId", - table: "RdvQueries", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_RdvQueries_Locations_LocationId", - table: "RdvQueries", - column: "LocationId", - principalTable: "Locations", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_RdvQueries_PayPalPayment_PaymentId", - table: "RdvQueries", - column: "PaymentId", - principalTable: "PayPalPayment", - principalColumn: "CreationToken", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_RdvQueries_Performers_PerformerId", - table: "RdvQueries", - column: "PerformerId", - principalTable: "Performers", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_Schedule_AspNetUsers_OwnerId", - table: "Schedule", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_ScheduledEvent_Period_PeriodStart_PeriodEnd", - table: "ScheduledEvent", - columns: new[] { "PeriodStart", "PeriodEnd" }, - principalTable: "Period", - principalColumns: new[] { "Start", "End" }, - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_Services_Activities_ContextId", - table: "Services", - column: "ContextId", - principalTable: "Activities", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_UserActivities_Activities_DoesCode", - table: "UserActivities", - column: "DoesCode", - principalTable: "Activities", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_UserActivities_Performers_UserId", - table: "UserActivities", - column: "UserId", - principalTable: "Performers", - principalColumn: "PerformerId", - onDelete: ReferentialAction.Cascade); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey( - name: "FK_Activities_Activities_ParentCode", - table: "Activities"); - - migrationBuilder.DropForeignKey( - name: "FK_Announce_AspNetUsers_OwnerId", - table: "Announce"); - - migrationBuilder.DropForeignKey( - name: "FK_AspNetRoleClaims_AspNetRoles_RoleId", - table: "AspNetRoleClaims"); - - migrationBuilder.DropForeignKey( - name: "FK_AspNetUserClaims_AspNetUsers_UserId", - table: "AspNetUserClaims"); - - migrationBuilder.DropForeignKey( - name: "FK_AspNetUserLogins_AspNetUsers_UserId", - table: "AspNetUserLogins"); - - migrationBuilder.DropForeignKey( - name: "FK_AspNetUserRoles_AspNetRoles_RoleId", - table: "AspNetUserRoles"); - - migrationBuilder.DropForeignKey( - name: "FK_AspNetUserRoles_AspNetUsers_UserId", - table: "AspNetUserRoles"); - - migrationBuilder.DropForeignKey( - name: "FK_AspNetUsers_BankIdentity_BankInfoId", - table: "AspNetUsers"); - - migrationBuilder.DropForeignKey( - name: "FK_AspNetUsers_Locations_PostalAddressId", - table: "AspNetUsers"); - - migrationBuilder.DropForeignKey( - name: "FK_Ban_AspNetUsers_TargetId", - table: "Ban"); - - migrationBuilder.DropForeignKey( - name: "FK_BankBook_BankStatus_BalanceId", - table: "BankBook"); - - migrationBuilder.DropForeignKey( - name: "FK_BankStatus_AspNetUsers_UserId", - table: "BankStatus"); - - migrationBuilder.DropForeignKey( - name: "FK_BlackListed_AspNetUsers_OwnerId", - table: "BlackListed"); - - migrationBuilder.DropForeignKey( - name: "FK_BlackListed_AspNetUsers_UserId", - table: "BlackListed"); - - migrationBuilder.DropForeignKey( - name: "FK_Blogspot_AspNetUsers_AuthorId", - table: "Blogspot"); - - migrationBuilder.DropForeignKey( - name: "FK_BlogTag_Blogspot_PostId", - table: "BlogTag"); - - migrationBuilder.DropForeignKey( - name: "FK_BlogTag_Tags_TagId", - table: "BlogTag"); - - migrationBuilder.DropForeignKey( - name: "FK_BlogTrad_AspNetUsers_TraducerId", - table: "BlogTrad"); - - migrationBuilder.DropForeignKey( - name: "FK_BrusherProfile_Performers_UserId", - table: "BrusherProfile"); - - migrationBuilder.DropForeignKey( - name: "FK_BrusherProfile_Schedule_ScheduleOwnerId", - table: "BrusherProfile"); - - migrationBuilder.DropForeignKey( - name: "FK_Bug_Feature_FeatureId", - table: "Bug"); - - migrationBuilder.DropForeignKey( - name: "FK_ChatConnection_AspNetUsers_ApplicationUserId", - table: "ChatConnection"); - - migrationBuilder.DropForeignKey( - name: "FK_ChatRoom_AspNetUsers_OwnerId", - table: "ChatRoom"); - - migrationBuilder.DropForeignKey( - name: "FK_ChatRoomAccess_AspNetUsers_UserId", - table: "ChatRoomAccess"); - - migrationBuilder.DropForeignKey( - name: "FK_ChatRoomAccess_ChatRoom_ChannelName", - table: "ChatRoomAccess"); - - migrationBuilder.DropForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blogspot_BlogPostId", - table: "CircleAuthorizationToBlogPost"); - - migrationBuilder.DropForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost"); - - migrationBuilder.DropForeignKey( - name: "FK_CircleMembers_AspNetUsers_MemberId", - table: "CircleMembers"); - - migrationBuilder.DropForeignKey( - name: "FK_CircleMembers_Circle_CircleId", - table: "CircleMembers"); - - migrationBuilder.DropForeignKey( - name: "FK_CommandForm_Activities_ActivityCode", - table: "CommandForm"); - - migrationBuilder.DropForeignKey( - name: "FK_CommandLine_EstimateTemplates_EstimateTemplateId", - table: "CommandLine"); - - migrationBuilder.DropForeignKey( - name: "FK_CommandLine_Estimates_EstimateId", - table: "CommandLine"); - - migrationBuilder.DropForeignKey( - name: "FK_Comment_AspNetUsers_AuthorId", - table: "Comment"); - - migrationBuilder.DropForeignKey( - name: "FK_Comment_Blogspot_PostId", - table: "Comment"); - - migrationBuilder.DropForeignKey( - name: "FK_Contact_PostalAddress_AddressId", - table: "Contact"); - - migrationBuilder.DropForeignKey( - name: "FK_CoWorking_AspNetUsers_WorkingForId", - table: "CoWorking"); - - migrationBuilder.DropForeignKey( - name: "FK_CoWorking_Performers_PerformerId", - table: "CoWorking"); - - migrationBuilder.DropForeignKey( - name: "FK_DeviceDeclaration_AspNetUsers_DeviceOwnerId", - table: "DeviceDeclaration"); - - migrationBuilder.DropForeignKey( - name: "FK_DimissClicked_AspNetUsers_UserId", - table: "DimissClicked"); - - migrationBuilder.DropForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked"); - - migrationBuilder.DropForeignKey( - name: "FK_Estimates_AspNetUsers_ClientId", - table: "Estimates"); - - migrationBuilder.DropForeignKey( - name: "FK_Estimates_Performers_OwnerId", - table: "Estimates"); - - migrationBuilder.DropForeignKey( - name: "FK_Estimates_RdvQueries_CommandId", - table: "Estimates"); - - migrationBuilder.DropForeignKey( - name: "FK_GitRepositoryReference_AspNetUsers_OwnerId", - table: "GitRepositoryReference"); - - migrationBuilder.DropForeignKey( - name: "FK_HairCutQueries_Activities_ActivityCode", - table: "HairCutQueries"); - - migrationBuilder.DropForeignKey( - name: "FK_HairCutQueries_AspNetUsers_ClientId", - table: "HairCutQueries"); - - migrationBuilder.DropForeignKey( - name: "FK_HairCutQueries_BrusherProfile_SelectedProfileUserId", - table: "HairCutQueries"); - - migrationBuilder.DropForeignKey( - name: "FK_HairCutQueries_HairPrestation_PrestationId", - table: "HairCutQueries"); - - migrationBuilder.DropForeignKey( - name: "FK_HairCutQueries_Locations_LocationId", - table: "HairCutQueries"); - - migrationBuilder.DropForeignKey( - name: "FK_HairCutQueries_PayPalPayment_PaymentId", - table: "HairCutQueries"); - - migrationBuilder.DropForeignKey( - name: "FK_HairCutQueries_Performers_PerformerId", - table: "HairCutQueries"); - - migrationBuilder.DropForeignKey( - name: "FK_HairMultiCutQueries_Activities_ActivityCode", - table: "HairMultiCutQueries"); - - migrationBuilder.DropForeignKey( - name: "FK_HairMultiCutQueries_AspNetUsers_ClientId", - table: "HairMultiCutQueries"); - - migrationBuilder.DropForeignKey( - name: "FK_HairMultiCutQueries_Locations_LocationId", - table: "HairMultiCutQueries"); - - migrationBuilder.DropForeignKey( - name: "FK_HairMultiCutQueries_PayPalPayment_PaymentId", - table: "HairMultiCutQueries"); - - migrationBuilder.DropForeignKey( - name: "FK_HairMultiCutQueries_Performers_PerformerId", - table: "HairMultiCutQueries"); - - migrationBuilder.DropForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQueries_QueryId", - table: "HairPrestationCollectionItem"); - - migrationBuilder.DropForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem"); - - migrationBuilder.DropForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint"); - - migrationBuilder.DropForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance"); - - migrationBuilder.DropForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance"); - - migrationBuilder.DropForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation"); - - migrationBuilder.DropForeignKey( - name: "FK_Instrumentation_Performers_UserId", - table: "Instrumentation"); - - migrationBuilder.DropForeignKey( - name: "FK_InstrumentRating_Instrument_InstrumentId", - table: "InstrumentRating"); - - migrationBuilder.DropForeignKey( - name: "FK_InstrumentRating_Performers_OwnerId", - table: "InstrumentRating"); - - migrationBuilder.DropForeignKey( - name: "FK_LiveFlow_AspNetUsers_OwnerId", - table: "LiveFlow"); - - migrationBuilder.DropForeignKey( - name: "FK_PayPalPayment_AspNetUsers_ExecutorId", - table: "PayPalPayment"); - - migrationBuilder.DropForeignKey( - name: "FK_Performers_AspNetUsers_PerformerId", - table: "Performers"); - - migrationBuilder.DropForeignKey( - name: "FK_Performers_Locations_OrganizationAddressId", - table: "Performers"); - - migrationBuilder.DropForeignKey( - name: "FK_Project_Activities_ActivityCode", - table: "Project"); - - migrationBuilder.DropForeignKey( - name: "FK_Project_AspNetUsers_ClientId", - table: "Project"); - - migrationBuilder.DropForeignKey( - name: "FK_Project_GitRepositoryReference_GitId", - table: "Project"); - - migrationBuilder.DropForeignKey( - name: "FK_Project_PayPalPayment_PaymentId", - table: "Project"); - - migrationBuilder.DropForeignKey( - name: "FK_Project_Performers_PerformerId", - table: "Project"); - - migrationBuilder.DropForeignKey( - name: "FK_ProjectBuildConfiguration_Project_ProjectId", - table: "ProjectBuildConfiguration"); - - migrationBuilder.DropForeignKey( - name: "FK_RdvQueries_Activities_ActivityCode", - table: "RdvQueries"); - - migrationBuilder.DropForeignKey( - name: "FK_RdvQueries_AspNetUsers_ClientId", - table: "RdvQueries"); - - migrationBuilder.DropForeignKey( - name: "FK_RdvQueries_Locations_LocationId", - table: "RdvQueries"); - - migrationBuilder.DropForeignKey( - name: "FK_RdvQueries_PayPalPayment_PaymentId", - table: "RdvQueries"); - - migrationBuilder.DropForeignKey( - name: "FK_RdvQueries_Performers_PerformerId", - table: "RdvQueries"); - - migrationBuilder.DropForeignKey( - name: "FK_Schedule_AspNetUsers_OwnerId", - table: "Schedule"); - - migrationBuilder.DropForeignKey( - name: "FK_ScheduledEvent_Period_PeriodStart_PeriodEnd", - table: "ScheduledEvent"); - - migrationBuilder.DropForeignKey( - name: "FK_Services_Activities_ContextId", - table: "Services"); - - migrationBuilder.DropForeignKey( - name: "FK_UserActivities_Activities_DoesCode", - table: "UserActivities"); - - migrationBuilder.DropForeignKey( - name: "FK_UserActivities_Performers_UserId", - table: "UserActivities"); - - migrationBuilder.DropTable( - name: "AspNetUserTokens"); - - migrationBuilder.DropIndex( - name: "IX_ScheduledEvent_PeriodStart_PeriodEnd", - table: "ScheduledEvent"); - - migrationBuilder.DropIndex( - name: "IX_ScheduledEvent_ScheduleOwnerId", - table: "ScheduledEvent"); - - migrationBuilder.DropIndex( - name: "IX_ProjectBuildConfiguration_ProjectId", - table: "ProjectBuildConfiguration"); - - migrationBuilder.DropIndex( - name: "IX_Project_ActivityCode", - table: "Project"); - - migrationBuilder.DropIndex( - name: "IX_Project_ClientId", - table: "Project"); - - migrationBuilder.DropIndex( - name: "IX_Project_GitId", - table: "Project"); - - migrationBuilder.DropIndex( - name: "IX_Project_PaymentId", - table: "Project"); - - migrationBuilder.DropIndex( - name: "IX_Project_PerformerId", - table: "Project"); - - migrationBuilder.DropIndex( - name: "IX_PayPalPayment_ExecutorId", - table: "PayPalPayment"); - - migrationBuilder.DropIndex( - name: "IX_MusicalPreference_DjSettingsUserId", - table: "MusicalPreference"); - - migrationBuilder.DropIndex( - name: "IX_MusicalPreference_GeneralSettingsUserId", - table: "MusicalPreference"); - - migrationBuilder.DropIndex( - name: "IX_LiveFlow_OwnerId", - table: "LiveFlow"); - - migrationBuilder.DropIndex( - name: "IX_InstrumentRating_OwnerId", - table: "InstrumentRating"); - - migrationBuilder.DropIndex( - name: "IX_Instrumentation_UserId", - table: "Instrumentation"); - - migrationBuilder.DropIndex( - name: "IX_HyperLink_BrusherProfileUserId", - table: "HyperLink"); - - migrationBuilder.DropIndex( - name: "IX_HyperLink_PayPalPaymentCreationToken", - table: "HyperLink"); - - migrationBuilder.DropIndex( - name: "IX_HairTaintInstance_PrestationId", - table: "HairTaintInstance"); - - migrationBuilder.DropIndex( - name: "IX_HairTaint_ColorId", - table: "HairTaint"); - - migrationBuilder.DropIndex( - name: "IX_HairPrestationCollectionItem_PrestationId", - table: "HairPrestationCollectionItem"); - - migrationBuilder.DropIndex( - name: "IX_HairPrestationCollectionItem_QueryId", - table: "HairPrestationCollectionItem"); - - migrationBuilder.DropIndex( - name: "IX_GitRepositoryReference_OwnerId", - table: "GitRepositoryReference"); - - migrationBuilder.DropIndex( - name: "IX_DimissClicked_NotificationId", - table: "DimissClicked"); - - migrationBuilder.DropIndex( - name: "IX_DeviceDeclaration_DeviceOwnerId", - table: "DeviceDeclaration"); - - migrationBuilder.DropIndex( - name: "IX_CoWorking_FormationSettingsUserId", - table: "CoWorking"); - - migrationBuilder.DropIndex( - name: "IX_CoWorking_PerformerId", - table: "CoWorking"); - - migrationBuilder.DropIndex( - name: "IX_CoWorking_WorkingForId", - table: "CoWorking"); - - migrationBuilder.DropIndex( - name: "IX_Contact_AddressId", - table: "Contact"); - - migrationBuilder.DropIndex( - name: "IX_Contact_ApplicationUserId", - table: "Contact"); - - migrationBuilder.DropIndex( - name: "IX_Comment_AuthorId", - table: "Comment"); - - migrationBuilder.DropIndex( - name: "IX_Comment_ParentId", - table: "Comment"); - - migrationBuilder.DropIndex( - name: "IX_Comment_PostId", - table: "Comment"); - - migrationBuilder.DropIndex( - name: "IX_CommandLine_EstimateId", - table: "CommandLine"); - - migrationBuilder.DropIndex( - name: "IX_CommandLine_EstimateTemplateId", - table: "CommandLine"); - - migrationBuilder.DropIndex( - name: "IX_CommandForm_ActivityCode", - table: "CommandForm"); - - migrationBuilder.DropIndex( - name: "IX_CircleAuthorizationToBlogPost_BlogPostId", - table: "CircleAuthorizationToBlogPost"); - - migrationBuilder.DropIndex( - name: "IX_Circle_ApplicationUserId", - table: "Circle"); - - migrationBuilder.DropIndex( - name: "IX_ChatRoomAccess_UserId", - table: "ChatRoomAccess"); - - migrationBuilder.DropIndex( - name: "IX_ChatRoom_OwnerId", - table: "ChatRoom"); - - migrationBuilder.DropIndex( - name: "IX_ChatConnection_ApplicationUserId", - table: "ChatConnection"); - - migrationBuilder.DropIndex( - name: "IX_Bug_FeatureId", - table: "Bug"); - - migrationBuilder.DropIndex( - name: "IX_BrusherProfile_ScheduleOwnerId", - table: "BrusherProfile"); - - migrationBuilder.DropIndex( - name: "IX_BlogTrad_TraducerId", - table: "BlogTrad"); - - migrationBuilder.DropIndex( - name: "IX_BlogTag_TagId", - table: "BlogTag"); - - migrationBuilder.DropIndex( - name: "IX_BlackListed_OwnerId", - table: "BlackListed"); - - migrationBuilder.DropIndex( - name: "IX_BlackListed_UserId", - table: "BlackListed"); - - migrationBuilder.DropIndex( - name: "IX_Ban_TargetId", - table: "Ban"); - - migrationBuilder.DropIndex( - name: "IX_AspNetUsers_BankInfoId", - table: "AspNetUsers"); - - migrationBuilder.DropIndex( - name: "IX_AspNetUsers_PostalAddressId", - table: "AspNetUsers"); - - migrationBuilder.DropIndex( - name: "UserNameIndex", - table: "AspNetUsers"); - - migrationBuilder.DropIndex( - name: "IX_AspNetUserRoles_RoleId", - table: "AspNetUserRoles"); - - migrationBuilder.DropIndex( - name: "IX_AspNetUserLogins_UserId", - table: "AspNetUserLogins"); - - migrationBuilder.DropIndex( - name: "IX_AspNetUserClaims_UserId", - table: "AspNetUserClaims"); - - migrationBuilder.DropIndex( - name: "RoleNameIndex", - table: "AspNetRoles"); - - migrationBuilder.DropIndex( - name: "IX_AspNetRoleClaims_RoleId", - table: "AspNetRoleClaims"); - - migrationBuilder.DropIndex( - name: "IX_Announce_OwnerId", - table: "Announce"); - - migrationBuilder.DropPrimaryKey( - name: "PK_UserActivities", - table: "UserActivities"); - - migrationBuilder.DropIndex( - name: "IX_UserActivities_UserId", - table: "UserActivities"); - - migrationBuilder.DropPrimaryKey( - name: "PK_Tags", - table: "Tags"); - - migrationBuilder.DropPrimaryKey( - name: "PK_SiteSkills", - table: "SiteSkills"); - - migrationBuilder.DropPrimaryKey( - name: "PK_Services", - table: "Services"); - - migrationBuilder.DropIndex( - name: "IX_Services_ContextId", - table: "Services"); - - migrationBuilder.DropPrimaryKey( - name: "PK_RefreshTokens", - table: "RefreshTokens"); - - migrationBuilder.DropPrimaryKey( - name: "PK_RdvQueries", - table: "RdvQueries"); - - migrationBuilder.DropIndex( - name: "IX_RdvQueries_ActivityCode", - table: "RdvQueries"); - - migrationBuilder.DropIndex( - name: "IX_RdvQueries_ClientId", - table: "RdvQueries"); - - migrationBuilder.DropIndex( - name: "IX_RdvQueries_LocationId", - table: "RdvQueries"); - - migrationBuilder.DropIndex( - name: "IX_RdvQueries_PaymentId", - table: "RdvQueries"); - - migrationBuilder.DropIndex( - name: "IX_RdvQueries_PerformerId", - table: "RdvQueries"); - - migrationBuilder.DropPrimaryKey( - name: "PK_Products", - table: "Products"); - - migrationBuilder.DropPrimaryKey( - name: "PK_Performers", - table: "Performers"); - - migrationBuilder.DropIndex( - name: "IX_Performers_OrganizationAddressId", - table: "Performers"); - - migrationBuilder.DropPrimaryKey( - name: "PK_Locations", - table: "Locations"); - - migrationBuilder.DropPrimaryKey( - name: "PK_HairMultiCutQueries", - table: "HairMultiCutQueries"); - - migrationBuilder.DropIndex( - name: "IX_HairMultiCutQueries_ActivityCode", - table: "HairMultiCutQueries"); - - migrationBuilder.DropIndex( - name: "IX_HairMultiCutQueries_ClientId", - table: "HairMultiCutQueries"); - - migrationBuilder.DropIndex( - name: "IX_HairMultiCutQueries_LocationId", - table: "HairMultiCutQueries"); - - migrationBuilder.DropIndex( - name: "IX_HairMultiCutQueries_PaymentId", - table: "HairMultiCutQueries"); - - migrationBuilder.DropIndex( - name: "IX_HairMultiCutQueries_PerformerId", - table: "HairMultiCutQueries"); - - migrationBuilder.DropPrimaryKey( - name: "PK_HairCutQueries", - table: "HairCutQueries"); - - migrationBuilder.DropIndex( - name: "IX_HairCutQueries_ActivityCode", - table: "HairCutQueries"); - - migrationBuilder.DropIndex( - name: "IX_HairCutQueries_ClientId", - table: "HairCutQueries"); - - migrationBuilder.DropIndex( - name: "IX_HairCutQueries_LocationId", - table: "HairCutQueries"); - - migrationBuilder.DropIndex( - name: "IX_HairCutQueries_PaymentId", - table: "HairCutQueries"); - - migrationBuilder.DropIndex( - name: "IX_HairCutQueries_PerformerId", - table: "HairCutQueries"); - - migrationBuilder.DropIndex( - name: "IX_HairCutQueries_PrestationId", - table: "HairCutQueries"); - - migrationBuilder.DropIndex( - name: "IX_HairCutQueries_SelectedProfileUserId", - table: "HairCutQueries"); - - migrationBuilder.DropPrimaryKey( - name: "PK_ExceptionsSIREN", - table: "ExceptionsSIREN"); - - migrationBuilder.DropPrimaryKey( - name: "PK_EstimateTemplates", - table: "EstimateTemplates"); - - migrationBuilder.DropPrimaryKey( - name: "PK_Estimates", - table: "Estimates"); - - migrationBuilder.DropIndex( - name: "IX_Estimates_ClientId", - table: "Estimates"); - - migrationBuilder.DropIndex( - name: "IX_Estimates_CommandId", - table: "Estimates"); - - migrationBuilder.DropIndex( - name: "IX_Estimates_OwnerId", - table: "Estimates"); - - migrationBuilder.DropPrimaryKey( - name: "PK_CircleMembers", - table: "CircleMembers"); - - migrationBuilder.DropIndex( - name: "IX_CircleMembers_CircleId", - table: "CircleMembers"); - - migrationBuilder.DropPrimaryKey( - name: "PK_Blogspot", - table: "Blogspot"); - - migrationBuilder.DropIndex( - name: "IX_Blogspot_AuthorId", - table: "Blogspot"); - - migrationBuilder.DropPrimaryKey( - name: "PK_BankStatus", - table: "BankStatus"); - - migrationBuilder.DropPrimaryKey( - name: "PK_BankBook", - table: "BankBook"); - - migrationBuilder.DropIndex( - name: "IX_BankBook_BalanceId", - table: "BankBook"); - - migrationBuilder.DropPrimaryKey( - name: "PK_Applications", - table: "Applications"); - - migrationBuilder.DropPrimaryKey( - name: "PK_Activities", - table: "Activities"); - - migrationBuilder.DropIndex( - name: "IX_Activities_ParentCode", - table: "Activities"); - - migrationBuilder.RenameTable( - name: "UserActivities", - newName: "UserActivity"); - - migrationBuilder.RenameTable( - name: "Tags", - newName: "Tag"); - - migrationBuilder.RenameTable( - name: "SiteSkills", - newName: "Skill"); - - migrationBuilder.RenameTable( - name: "Services", - newName: "Service"); - - migrationBuilder.RenameTable( - name: "RefreshTokens", - newName: "RefreshToken"); - - migrationBuilder.RenameTable( - name: "RdvQueries", - newName: "RdvQuery"); - - migrationBuilder.RenameTable( - name: "Products", - newName: "Product"); - - migrationBuilder.RenameTable( - name: "Performers", - newName: "PerformerProfile"); - - migrationBuilder.RenameTable( - name: "Locations", - newName: "Location"); - - migrationBuilder.RenameTable( - name: "HairMultiCutQueries", - newName: "HairMultiCutQuery"); - - migrationBuilder.RenameTable( - name: "HairCutQueries", - newName: "HairCutQuery"); - - migrationBuilder.RenameTable( - name: "ExceptionsSIREN", - newName: "ExceptionSIREN"); - - migrationBuilder.RenameTable( - name: "EstimateTemplates", - newName: "EstimateTemplate"); - - migrationBuilder.RenameTable( - name: "Estimates", - newName: "Estimate"); - - migrationBuilder.RenameTable( - name: "CircleMembers", - newName: "CircleMember"); - - migrationBuilder.RenameTable( - name: "Blogspot", - newName: "BlogPost"); - - migrationBuilder.RenameTable( - name: "BankStatus", - newName: "AccountBalance"); - - migrationBuilder.RenameTable( - name: "BankBook", - newName: "BalanceImpact"); - - migrationBuilder.RenameTable( - name: "Applications", - newName: "Client"); - - migrationBuilder.RenameTable( - name: "Activities", - newName: "Activity"); - - migrationBuilder.AlterColumn( - name: "PeriodStart", - table: "ScheduledEvent", - type: "timestamp with time zone", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "timestamp with time zone"); - - migrationBuilder.AlterColumn( - name: "PeriodEnd", - table: "ScheduledEvent", - type: "timestamp with time zone", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "timestamp with time zone"); - - migrationBuilder.AlterColumn( - name: "Id", - table: "ScheduledEvent", - type: "bigint", - nullable: false, - oldClrType: typeof(long), - oldType: "bigint") - .OldAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - migrationBuilder.AlterColumn( - name: "Name", - table: "ProjectBuildConfiguration", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "Id", - table: "ProjectBuildConfiguration", - type: "bigint", - nullable: false, - oldClrType: typeof(long), - oldType: "bigint") - .OldAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - migrationBuilder.AlterColumn( - name: "Version", - table: "Project", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "UserModified", - table: "Project", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "UserCreated", - table: "Project", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "PaymentId", - table: "Project", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "OwnerId", - table: "Project", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "Name", - table: "Project", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "Description", - table: "Project", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "Id", - table: "Project", - type: "bigint", - nullable: false, - oldClrType: typeof(long), - oldType: "bigint") - .OldAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - migrationBuilder.AlterColumn( - name: "Street2", - table: "PostalAddress", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "Street1", - table: "PostalAddress", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "State", - table: "PostalAddress", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "Province", - table: "PostalAddress", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "PostalCode", - table: "PostalAddress", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "Country", - table: "PostalAddress", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "City", - table: "PostalAddress", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "Id", - table: "PostalAddress", - type: "bigint", - nullable: false, - oldClrType: typeof(long), - oldType: "bigint") - .OldAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - migrationBuilder.AlterColumn( - name: "UserModified", - table: "PayPalPayment", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "UserCreated", - table: "PayPalPayment", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "State", - table: "PayPalPayment", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "PaypalPayerId", - table: "PayPalPayment", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "OrderReference", - table: "PayPalPayment", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "ExecutorId", - table: "PayPalPayment", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "UserModified", - table: "Option", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "UserCreated", - table: "Option", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "Description", - table: "Option", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "TokenType", - table: "OAuth2Tokens", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "RefreshToken", - table: "OAuth2Tokens", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "ExpiresIn", - table: "OAuth2Tokens", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "AccessToken", - table: "OAuth2Tokens", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "title", - table: "Notification", - type: "text", - nullable: false, - oldClrType: typeof(string), - oldType: "character varying(1024)", - oldMaxLength: 1024); - - migrationBuilder.AlterColumn( - name: "tag", - table: "Notification", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "character varying(512)", - oldMaxLength: 512); - - migrationBuilder.AlterColumn( - name: "sound", - table: "Notification", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "character varying(512)", - oldMaxLength: 512); - - migrationBuilder.AlterColumn( - name: "icon", - table: "Notification", - type: "text", - nullable: true, - defaultValue: "exclam", - oldClrType: typeof(string), - oldType: "character varying(512)", - oldMaxLength: 512, - oldDefaultValue: "exclam"); - - migrationBuilder.AlterColumn( - name: "color", - table: "Notification", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "character varying(512)", - oldMaxLength: 512); - - migrationBuilder.AlterColumn( - name: "click_action", - table: "Notification", - type: "text", - nullable: false, - oldClrType: typeof(string), - oldType: "character varying(512)", - oldMaxLength: 512); - - migrationBuilder.AlterColumn( - name: "body", - table: "Notification", - type: "text", - nullable: false, - oldClrType: typeof(string), - oldType: "character varying(512)", - oldMaxLength: 512); - - migrationBuilder.AlterColumn( - name: "Target", - table: "Notification", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "character varying(512)", - oldMaxLength: 512); - - migrationBuilder.AlterColumn( - name: "Id", - table: "Notification", - type: "bigint", - nullable: false, - oldClrType: typeof(long), - oldType: "bigint") - .OldAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - migrationBuilder.AlterColumn( - name: "Name", - table: "MusicalTendency", - type: "character varying(255)", - maxLength: 255, - nullable: true, - oldClrType: typeof(string), - oldType: "character varying(255)", - oldMaxLength: 255); - - migrationBuilder.AlterColumn( - name: "Id", - table: "MusicalTendency", - type: "bigint", - nullable: false, - oldClrType: typeof(long), - oldType: "bigint") - .OldAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - migrationBuilder.AlterColumn( - name: "UserModified", - table: "MailingTemplate", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "UserCreated", - table: "MailingTemplate", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "Topic", - table: "MailingTemplate", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "ReplyToAddress", - table: "MailingTemplate", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "Body", - table: "MailingTemplate", - type: "character varying(65536)", - maxLength: 65536, - nullable: true, - oldClrType: typeof(string), - oldType: "character varying(65536)", - oldMaxLength: 65536); - - migrationBuilder.AlterColumn( - name: "Title", - table: "LiveFlow", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "Pitch", - table: "LiveFlow", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "OwnerId", - table: "LiveFlow", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "MediaType", - table: "LiveFlow", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "DifferedFileName", - table: "LiveFlow", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "Id", - table: "LiveFlow", - type: "bigint", - nullable: false, - oldClrType: typeof(long), - oldType: "bigint") - .OldAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - migrationBuilder.AlterColumn( - name: "Id", - table: "InstrumentRating", - type: "bigint", - nullable: false, - oldClrType: typeof(long), - oldType: "bigint") - .OldAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - migrationBuilder.AlterColumn( - name: "Name", - table: "Instrument", - type: "character varying(255)", - maxLength: 255, - nullable: true, - oldClrType: typeof(string), - oldType: "character varying(255)", - oldMaxLength: 255); - - migrationBuilder.AlterColumn( - name: "Id", - table: "Instrument", - type: "bigint", - nullable: false, - oldClrType: typeof(long), - oldType: "bigint") - .OldAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - migrationBuilder.AlterColumn( - name: "Rel", - table: "HyperLink", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "ContentType", - table: "HyperLink", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "Brand", - table: "HairTaint", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "Id", - table: "HairTaint", - type: "bigint", - nullable: false, - oldClrType: typeof(long), - oldType: "bigint") - .OldAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - migrationBuilder.AlterColumn( - name: "Id", - table: "HairPrestationCollectionItem", - type: "bigint", - nullable: false, - oldClrType: typeof(long), - oldType: "bigint") - .OldAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - migrationBuilder.AlterColumn( - name: "Id", - table: "HairPrestation", - type: "bigint", - nullable: false, - oldClrType: typeof(long), - oldType: "bigint") - .OldAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - migrationBuilder.AlterColumn( - name: "Url", - table: "GitRepositoryReference", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "Path", - table: "GitRepositoryReference", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "OwnerId", - table: "GitRepositoryReference", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "Branch", - table: "GitRepositoryReference", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "Id", - table: "GitRepositoryReference", - type: "bigint", - nullable: false, - oldClrType: typeof(long), - oldType: "bigint") - .OldAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - migrationBuilder.AlterColumn( - name: "DisplayName", - table: "FormationSettings", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "Summary", - table: "Form", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "ShortName", - table: "Feature", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "Description", - table: "Feature", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "Id", - table: "Feature", - type: "bigint", - nullable: false, - oldClrType: typeof(long), - oldType: "bigint") - .OldAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - migrationBuilder.AlterColumn( - name: "SoundCloudId", - table: "DjSettings", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "Version", - table: "DeviceDeclaration", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "Platform", - table: "DeviceDeclaration", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "Model", - table: "DeviceDeclaration", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "DeviceOwnerId", - table: "DeviceDeclaration", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "DeclarationDate", - table: "DeviceDeclaration", - type: "timestamp with time zone", - nullable: false, - oldClrType: typeof(DateTime), - oldType: "timestamp with time zone", - oldDefaultValueSql: "LOCALTIMESTAMP"); - - migrationBuilder.AlterColumn( - name: "WorkingForId", - table: "CoWorking", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "PerformerId", - table: "CoWorking", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "Id", - table: "CoWorking", - type: "bigint", - nullable: false, - oldClrType: typeof(long), - oldType: "bigint") - .OldAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - migrationBuilder.AlterColumn( - name: "Name", - table: "Contact", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "EMail", - table: "Contact", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "UserModified", - table: "Comment", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "UserCreated", - table: "Comment", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "Content", - table: "Comment", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "Id", - table: "Comment", - type: "bigint", - nullable: false, - oldClrType: typeof(long), - oldType: "bigint") - .OldAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - migrationBuilder.AlterColumn( - name: "Currency", - table: "CommandLine", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "Id", - table: "CommandLine", - type: "bigint", - nullable: false, - oldClrType: typeof(long), - oldType: "bigint") - .OldAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - migrationBuilder.AlterColumn( - name: "Title", - table: "CommandForm", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "ActivityCode", - table: "CommandForm", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "ActionName", - table: "CommandForm", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "Id", - table: "CommandForm", - type: "bigint", - nullable: false, - oldClrType: typeof(long), - oldType: "bigint") - .OldAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - migrationBuilder.AlterColumn( - name: "Name", - table: "Color", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "Id", - table: "Color", - type: "bigint", - nullable: false, - oldClrType: typeof(long), - oldType: "bigint") - .OldAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - migrationBuilder.AlterColumn( - name: "UserName", - table: "ClientProviderInfo", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "Phone", - table: "ClientProviderInfo", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "EMail", - table: "ClientProviderInfo", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "Avatar", - table: "ClientProviderInfo", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "OwnerId", - table: "Circle", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "Name", - table: "Circle", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "Id", - table: "Circle", - type: "bigint", - nullable: false, - oldClrType: typeof(long), - oldType: "bigint") - .OldAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - migrationBuilder.AlterColumn( - name: "Id", - table: "ChatRoomAccess", - type: "bigint", - nullable: false, - oldClrType: typeof(long), - oldType: "bigint") - .OldAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - migrationBuilder.AlterColumn( - name: "UserModified", - table: "ChatRoom", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "UserCreated", - table: "ChatRoom", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "Topic", - table: "ChatRoom", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "OwnerId", - table: "ChatRoom", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "UserAgent", - table: "ChatConnection", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "Title", - table: "Bug", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "FeatureId", - table: "Bug", - type: "bigint", - nullable: true, - oldClrType: typeof(long), - oldType: "bigint"); - - migrationBuilder.AlterColumn( - name: "Description", - table: "Bug", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "Id", - table: "Bug", - type: "bigint", - nullable: false, - oldClrType: typeof(long), - oldType: "bigint") - .OldAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - migrationBuilder.AlterColumn( - name: "ScheduleOwnerId", - table: "BrusherProfile", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "TraducerId", - table: "BlogTrad", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "Title", - table: "BlogTrad", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "Body", - table: "BlogTrad", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "Id", - table: "BlackListed", - type: "bigint", - nullable: false, - oldClrType: typeof(long), - oldType: "bigint") - .OldAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - migrationBuilder.AlterColumn( - name: "WicketCode", - table: "BankIdentity", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "IBAN", - table: "BankIdentity", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "BankCode", - table: "BankIdentity", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "BIC", - table: "BankIdentity", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "AccountNumber", - table: "BankIdentity", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "Id", - table: "BankIdentity", - type: "bigint", - nullable: false, - oldClrType: typeof(long), - oldType: "bigint") - .OldAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - migrationBuilder.AlterColumn( - name: "UserModified", - table: "Ban", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "UserCreated", - table: "Ban", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "Id", - table: "Ban", - type: "bigint", - nullable: false, - oldClrType: typeof(long), - oldType: "bigint") - .OldAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - migrationBuilder.AlterColumn( - name: "UserModified", - table: "AspNetUsers", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "UserCreated", - table: "AspNetUsers", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "PostalAddressId", - table: "AspNetUsers", - type: "bigint", - nullable: true, - oldClrType: typeof(long), - oldType: "bigint"); - - migrationBuilder.AlterColumn( - name: "FullName", - table: "AspNetUsers", - type: "character varying(512)", - maxLength: 512, - nullable: true, - oldClrType: typeof(string), - oldType: "character varying(512)", - oldMaxLength: 512); - - migrationBuilder.AlterColumn( - name: "DedicatedGoogleCalendar", - table: "AspNetUsers", - type: "character varying(512)", - maxLength: 512, - nullable: true, - oldClrType: typeof(string), - oldType: "character varying(512)", - oldMaxLength: 512); - - migrationBuilder.AlterColumn( - name: "BankInfoId", - table: "AspNetUsers", - type: "bigint", - nullable: true, - oldClrType: typeof(long), - oldType: "bigint"); - - migrationBuilder.AlterColumn( - name: "Avatar", - table: "AspNetUsers", - type: "character varying(512)", - maxLength: 512, - nullable: true, - defaultValue: "/images/Users/icon_user.png", - oldClrType: typeof(string), - oldType: "character varying(512)", - oldMaxLength: 512, - oldDefaultValue: "/images/Users/icon_user.png"); - - migrationBuilder.AlterColumn( - name: "Id", - table: "AspNetUserClaims", - type: "integer", - nullable: false, - oldClrType: typeof(int), - oldType: "integer") - .OldAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - migrationBuilder.AlterColumn( - name: "Id", - table: "AspNetRoleClaims", - type: "integer", - nullable: false, - oldClrType: typeof(int), - oldType: "integer") - .OldAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - migrationBuilder.AlterColumn( - name: "Topic", - table: "Announce", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "Sender", - table: "Announce", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "OwnerId", - table: "Announce", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "Message", - table: "Announce", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "Id", - table: "Announce", - type: "bigint", - nullable: false, - oldClrType: typeof(long), - oldType: "bigint") - .OldAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - migrationBuilder.AlterColumn( - name: "Name", - table: "Tag", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "Id", - table: "Tag", - type: "bigint", - nullable: false, - oldClrType: typeof(long), - oldType: "bigint") - .OldAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - migrationBuilder.AlterColumn( - name: "Name", - table: "Skill", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "Id", - table: "Skill", - type: "bigint", - nullable: false, - oldClrType: typeof(long), - oldType: "bigint") - .OldAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - migrationBuilder.AlterColumn( - name: "Name", - table: "Service", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "Description", - table: "Service", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "ContextId", - table: "Service", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "Id", - table: "Service", - type: "bigint", - nullable: false, - oldClrType: typeof(long), - oldType: "bigint") - .OldAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - migrationBuilder.AlterColumn( - name: "UserModified", - table: "RdvQuery", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "UserCreated", - table: "RdvQuery", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "Reason", - table: "RdvQuery", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "PaymentId", - table: "RdvQuery", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "LocationId", - table: "RdvQuery", - type: "bigint", - nullable: true, - oldClrType: typeof(long), - oldType: "bigint"); - - migrationBuilder.AlterColumn( - name: "Description", - table: "RdvQuery", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "Id", - table: "RdvQuery", - type: "bigint", - nullable: false, - oldClrType: typeof(long), - oldType: "bigint") - .OldAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - migrationBuilder.AlterColumn( - name: "Name", - table: "Product", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "Description", - table: "Product", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "Id", - table: "Product", - type: "bigint", - nullable: false, - oldClrType: typeof(long), - oldType: "bigint") - .OldAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - migrationBuilder.AlterColumn( - name: "WebSite", - table: "PerformerProfile", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "SIREN", - table: "PerformerProfile", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "Address", - table: "Location", - type: "character varying(512)", - maxLength: 512, - nullable: true, - oldClrType: typeof(string), - oldType: "character varying(512)", - oldMaxLength: 512); - - migrationBuilder.AlterColumn( - name: "Id", - table: "Location", - type: "bigint", - nullable: false, - oldClrType: typeof(long), - oldType: "bigint") - .OldAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - migrationBuilder.AlterColumn( - name: "UserModified", - table: "HairMultiCutQuery", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "UserCreated", - table: "HairMultiCutQuery", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "PaymentId", - table: "HairMultiCutQuery", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "LocationId", - table: "HairMultiCutQuery", - type: "bigint", - nullable: true, - oldClrType: typeof(long), - oldType: "bigint"); - - migrationBuilder.AlterColumn( - name: "Description", - table: "HairMultiCutQuery", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "Id", - table: "HairMultiCutQuery", - type: "bigint", - nullable: false, - oldClrType: typeof(long), - oldType: "bigint") - .OldAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - migrationBuilder.AlterColumn( - name: "UserModified", - table: "HairCutQuery", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "UserCreated", - table: "HairCutQuery", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "PaymentId", - table: "HairCutQuery", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "LocationId", - table: "HairCutQuery", - type: "bigint", - nullable: true, - oldClrType: typeof(long), - oldType: "bigint"); - - migrationBuilder.AlterColumn( - name: "Description", - table: "HairCutQuery", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "AdditionalInfo", - table: "HairCutQuery", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "Id", - table: "HairCutQuery", - type: "bigint", - nullable: false, - oldClrType: typeof(long), - oldType: "bigint") - .OldAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - migrationBuilder.AlterColumn( - name: "Title", - table: "EstimateTemplate", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "Description", - table: "EstimateTemplate", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "Id", - table: "EstimateTemplate", - type: "bigint", - nullable: false, - oldClrType: typeof(long), - oldType: "bigint") - .OldAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - migrationBuilder.AlterColumn( - name: "Title", - table: "Estimate", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "OwnerId", - table: "Estimate", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "Description", - table: "Estimate", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "AttachedGraphicsString", - table: "Estimate", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "AttachedFilesString", - table: "Estimate", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "Id", - table: "Estimate", - type: "bigint", - nullable: false, - oldClrType: typeof(long), - oldType: "bigint") - .OldAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - migrationBuilder.AlterColumn( - name: "UserModified", - table: "BlogPost", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "UserCreated", - table: "BlogPost", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "Title", - table: "BlogPost", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "Photo", - table: "BlogPost", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "Lang", - table: "BlogPost", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "Content", - table: "BlogPost", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "AuthorId", - table: "BlogPost", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "Id", - table: "BlogPost", - type: "bigint", - nullable: false, - oldClrType: typeof(long), - oldType: "bigint") - .OldAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - migrationBuilder.AlterColumn( - name: "Id", - table: "BalanceImpact", - type: "bigint", - nullable: false, - oldClrType: typeof(long), - oldType: "bigint") - .OldAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - migrationBuilder.AlterColumn( - name: "Secret", - table: "Client", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "RedirectUri", - table: "Client", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "LogoutRedirectUri", - table: "Client", - type: "character varying(100)", - maxLength: 100, - nullable: true, - oldClrType: typeof(string), - oldType: "character varying(100)", - oldMaxLength: 100); - - migrationBuilder.AlterColumn( - name: "DisplayName", - table: "Client", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "UserModified", - table: "Activity", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "UserCreated", - table: "Activity", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "SettingsClassName", - table: "Activity", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "Photo", - table: "Activity", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "ParentCode", - table: "Activity", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "Name", - table: "Activity", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "ModeratorGroupName", - table: "Activity", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "Description", - table: "Activity", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AddPrimaryKey( - name: "PK_UserActivity", - table: "UserActivity", - columns: new[] { "DoesCode", "UserId" }); - - migrationBuilder.AddPrimaryKey( - name: "PK_Tag", - table: "Tag", - column: "Id"); - - migrationBuilder.AddPrimaryKey( - name: "PK_Skill", - table: "Skill", - column: "Id"); - - migrationBuilder.AddPrimaryKey( - name: "PK_Service", - table: "Service", - column: "Id"); - - migrationBuilder.AddPrimaryKey( - name: "PK_RefreshToken", - table: "RefreshToken", - column: "Id"); - - migrationBuilder.AddPrimaryKey( - name: "PK_RdvQuery", - table: "RdvQuery", - column: "Id"); - - migrationBuilder.AddPrimaryKey( - name: "PK_Product", - table: "Product", - column: "Id"); - - migrationBuilder.AddPrimaryKey( - name: "PK_PerformerProfile", - table: "PerformerProfile", - column: "PerformerId"); - - migrationBuilder.AddPrimaryKey( - name: "PK_Location", - table: "Location", - column: "Id"); - - migrationBuilder.AddPrimaryKey( - name: "PK_HairMultiCutQuery", - table: "HairMultiCutQuery", - column: "Id"); - - migrationBuilder.AddPrimaryKey( - name: "PK_HairCutQuery", - table: "HairCutQuery", - column: "Id"); - - migrationBuilder.AddPrimaryKey( - name: "PK_ExceptionSIREN", - table: "ExceptionSIREN", - column: "SIREN"); - - migrationBuilder.AddPrimaryKey( - name: "PK_EstimateTemplate", - table: "EstimateTemplate", - column: "Id"); - - migrationBuilder.AddPrimaryKey( - name: "PK_Estimate", - table: "Estimate", - column: "Id"); - - migrationBuilder.AddPrimaryKey( - name: "PK_CircleMember", - table: "CircleMember", - columns: new[] { "MemberId", "CircleId" }); - - migrationBuilder.AddPrimaryKey( - name: "PK_BlogPost", - table: "BlogPost", - column: "Id"); - - migrationBuilder.AddPrimaryKey( - name: "PK_AccountBalance", - table: "AccountBalance", - column: "UserId"); - - migrationBuilder.AddPrimaryKey( - name: "PK_BalanceImpact", - table: "BalanceImpact", - column: "Id"); - - migrationBuilder.AddPrimaryKey( - name: "PK_Client", - table: "Client", - column: "Id"); - - migrationBuilder.AddPrimaryKey( - name: "PK_Activity", - table: "Activity", - column: "Code"); - - migrationBuilder.CreateIndex( - name: "UserNameIndex", - table: "AspNetUsers", - column: "NormalizedUserName"); - - migrationBuilder.CreateIndex( - name: "RoleNameIndex", - table: "AspNetRoles", - column: "NormalizedName"); - - migrationBuilder.AddForeignKey( - name: "FK_AccountBalance_AspNetUsers_UserId", - table: "AccountBalance", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id"); - - migrationBuilder.AddForeignKey( - name: "FK_Activity_Activity_ParentCode", - table: "Activity", - column: "ParentCode", - principalTable: "Activity", - principalColumn: "Code"); - - migrationBuilder.AddForeignKey( - name: "FK_Announce_AspNetUsers_OwnerId", - table: "Announce", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id"); - - migrationBuilder.AddForeignKey( - name: "FK_AspNetRoleClaims_AspNetRoles_RoleId", - table: "AspNetRoleClaims", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id"); - - migrationBuilder.AddForeignKey( - name: "FK_AspNetUserClaims_AspNetUsers_UserId", - table: "AspNetUserClaims", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id"); - - migrationBuilder.AddForeignKey( - name: "FK_AspNetUserLogins_AspNetUsers_UserId", - table: "AspNetUserLogins", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id"); - - migrationBuilder.AddForeignKey( - name: "FK_AspNetUserRoles_AspNetRoles_RoleId", - table: "AspNetUserRoles", - column: "RoleId", - principalTable: "AspNetRoles", - principalColumn: "Id"); - - migrationBuilder.AddForeignKey( - name: "FK_AspNetUserRoles_AspNetUsers_UserId", - table: "AspNetUserRoles", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id"); - - migrationBuilder.AddForeignKey( - name: "FK_AspNetUsers_BankIdentity_BankInfoId", - table: "AspNetUsers", - column: "BankInfoId", - principalTable: "BankIdentity", - principalColumn: "Id"); - - migrationBuilder.AddForeignKey( - name: "FK_AspNetUsers_Location_PostalAddressId", - table: "AspNetUsers", - column: "PostalAddressId", - principalTable: "Location", - principalColumn: "Id"); - - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_AccountBalance_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "AccountBalance", - principalColumn: "UserId"); - - migrationBuilder.AddForeignKey( - name: "FK_Ban_AspNetUsers_TargetId", - table: "Ban", - column: "TargetId", - principalTable: "AspNetUsers", - principalColumn: "Id"); - - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_AspNetUsers_OwnerId", - table: "BlackListed", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id"); - - migrationBuilder.AddForeignKey( - name: "FK_BlackListed_AspNetUsers_UserId", - table: "BlackListed", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id"); - - migrationBuilder.AddForeignKey( - name: "FK_BlogPost_AspNetUsers_AuthorId", - table: "BlogPost", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id"); - - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_BlogPost_PostId", - table: "BlogTag", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id"); - - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_Tag_TagId", - table: "BlogTag", - column: "TagId", - principalTable: "Tag", - principalColumn: "Id"); - - migrationBuilder.AddForeignKey( - name: "FK_BlogTrad_AspNetUsers_TraducerId", - table: "BlogTrad", - column: "TraducerId", - principalTable: "AspNetUsers", - principalColumn: "Id"); - - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_PerformerProfile_UserId", - table: "BrusherProfile", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId"); - - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_Schedule_ScheduleOwnerId", - table: "BrusherProfile", - column: "ScheduleOwnerId", - principalTable: "Schedule", - principalColumn: "OwnerId"); - - migrationBuilder.AddForeignKey( - name: "FK_Bug_Feature_FeatureId", - table: "Bug", - column: "FeatureId", - principalTable: "Feature", - principalColumn: "Id"); - - migrationBuilder.AddForeignKey( - name: "FK_ChatConnection_AspNetUsers_ApplicationUserId", - table: "ChatConnection", - column: "ApplicationUserId", - principalTable: "AspNetUsers", - principalColumn: "Id"); - - migrationBuilder.AddForeignKey( - name: "FK_ChatRoom_AspNetUsers_OwnerId", - table: "ChatRoom", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id"); - - migrationBuilder.AddForeignKey( - name: "FK_ChatRoomAccess_AspNetUsers_UserId", - table: "ChatRoomAccess", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id"); - - migrationBuilder.AddForeignKey( - name: "FK_ChatRoomAccess_ChatRoom_ChannelName", - table: "ChatRoomAccess", - column: "ChannelName", - principalTable: "ChatRoom", - principalColumn: "Name"); - - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_BlogPost_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "BlogPost", - principalColumn: "Id"); - - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", - table: "CircleAuthorizationToBlogPost", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id"); - - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_AspNetUsers_MemberId", - table: "CircleMember", - column: "MemberId", - principalTable: "AspNetUsers", - principalColumn: "Id"); - - migrationBuilder.AddForeignKey( - name: "FK_CircleMember_Circle_CircleId", - table: "CircleMember", - column: "CircleId", - principalTable: "Circle", - principalColumn: "Id"); - - migrationBuilder.AddForeignKey( - name: "FK_CommandForm_Activity_ActivityCode", - table: "CommandForm", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code"); - - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_EstimateTemplate_EstimateTemplateId", - table: "CommandLine", - column: "EstimateTemplateId", - principalTable: "EstimateTemplate", - principalColumn: "Id"); - - migrationBuilder.AddForeignKey( - name: "FK_CommandLine_Estimate_EstimateId", - table: "CommandLine", - column: "EstimateId", - principalTable: "Estimate", - principalColumn: "Id"); - - migrationBuilder.AddForeignKey( - name: "FK_Comment_AspNetUsers_AuthorId", - table: "Comment", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id"); - - migrationBuilder.AddForeignKey( - name: "FK_Comment_BlogPost_PostId", - table: "Comment", - column: "PostId", - principalTable: "BlogPost", - principalColumn: "Id"); - - migrationBuilder.AddForeignKey( - name: "FK_Contact_PostalAddress_AddressId", - table: "Contact", - column: "AddressId", - principalTable: "PostalAddress", - principalColumn: "Id"); - - migrationBuilder.AddForeignKey( - name: "FK_CoWorking_AspNetUsers_WorkingForId", - table: "CoWorking", - column: "WorkingForId", - principalTable: "AspNetUsers", - principalColumn: "Id"); - - migrationBuilder.AddForeignKey( - name: "FK_CoWorking_PerformerProfile_PerformerId", - table: "CoWorking", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId"); - - migrationBuilder.AddForeignKey( - name: "FK_DeviceDeclaration_AspNetUsers_DeviceOwnerId", - table: "DeviceDeclaration", - column: "DeviceOwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id"); - - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_AspNetUsers_UserId", - table: "DimissClicked", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id"); - - migrationBuilder.AddForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - table: "DimissClicked", - column: "NotificationId", - principalTable: "Notification", - principalColumn: "Id"); - - migrationBuilder.AddForeignKey( - name: "FK_Estimate_AspNetUsers_ClientId", - table: "Estimate", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id"); - - migrationBuilder.AddForeignKey( - name: "FK_Estimate_PerformerProfile_OwnerId", - table: "Estimate", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId"); - - migrationBuilder.AddForeignKey( - name: "FK_Estimate_RdvQuery_CommandId", - table: "Estimate", - column: "CommandId", - principalTable: "RdvQuery", - principalColumn: "Id"); - - migrationBuilder.AddForeignKey( - name: "FK_GitRepositoryReference_AspNetUsers_OwnerId", - table: "GitRepositoryReference", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id"); - - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Activity_ActivityCode", - table: "HairCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code"); - - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_AspNetUsers_ClientId", - table: "HairCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id"); - - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_BrusherProfile_SelectedProfileUserId", - table: "HairCutQuery", - column: "SelectedProfileUserId", - principalTable: "BrusherProfile", - principalColumn: "UserId"); - - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_HairPrestation_PrestationId", - table: "HairCutQuery", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id"); - - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_Location_LocationId", - table: "HairCutQuery", - column: "LocationId", - principalTable: "Location", - principalColumn: "Id"); - - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PayPalPayment_PaymentId", - table: "HairCutQuery", - column: "PaymentId", - principalTable: "PayPalPayment", - principalColumn: "CreationToken" - ); - - migrationBuilder.AddForeignKey( - name: "FK_HairCutQuery_PerformerProfile_PerformerId", - table: "HairCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId"); - - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Activity_ActivityCode", - table: "HairMultiCutQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code"); - - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_AspNetUsers_ClientId", - table: "HairMultiCutQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id"); - - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_Location_LocationId", - table: "HairMultiCutQuery", - column: "LocationId", - principalTable: "Location", - principalColumn: "Id"); - - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PayPalPayment_PaymentId", - table: "HairMultiCutQuery", - column: "PaymentId", - principalTable: "PayPalPayment", - principalColumn: "CreationToken"); - - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQuery_PerformerProfile_PerformerId", - table: "HairMultiCutQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId"); - - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairMultiCutQuery_QueryId", - table: "HairPrestationCollectionItem", - column: "QueryId", - principalTable: "HairMultiCutQuery", - principalColumn: "Id"); - - migrationBuilder.AddForeignKey( - name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", - table: "HairPrestationCollectionItem", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id"); - - migrationBuilder.AddForeignKey( - name: "FK_HairTaint_Color_ColorId", - table: "HairTaint", - column: "ColorId", - principalTable: "Color", - principalColumn: "Id"); - - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairPrestation_PrestationId", - table: "HairTaintInstance", - column: "PrestationId", - principalTable: "HairPrestation", - principalColumn: "Id"); - - migrationBuilder.AddForeignKey( - name: "FK_HairTaintInstance_HairTaint_TaintId", - table: "HairTaintInstance", - column: "TaintId", - principalTable: "HairTaint", - principalColumn: "Id"); - - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_Instrument_InstrumentId", - table: "Instrumentation", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id"); - - migrationBuilder.AddForeignKey( - name: "FK_Instrumentation_PerformerProfile_UserId", - table: "Instrumentation", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId"); - - migrationBuilder.AddForeignKey( - name: "FK_InstrumentRating_Instrument_InstrumentId", - table: "InstrumentRating", - column: "InstrumentId", - principalTable: "Instrument", - principalColumn: "Id"); - - migrationBuilder.AddForeignKey( - name: "FK_InstrumentRating_PerformerProfile_OwnerId", - table: "InstrumentRating", - column: "OwnerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId"); - - migrationBuilder.AddForeignKey( - name: "FK_LiveFlow_AspNetUsers_OwnerId", - table: "LiveFlow", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id"); - - migrationBuilder.AddForeignKey( - name: "FK_PayPalPayment_AspNetUsers_ExecutorId", - table: "PayPalPayment", - column: "ExecutorId", - principalTable: "AspNetUsers", - principalColumn: "Id"); - - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_AspNetUsers_PerformerId", - table: "PerformerProfile", - column: "PerformerId", - principalTable: "AspNetUsers", - principalColumn: "Id"); - - migrationBuilder.AddForeignKey( - name: "FK_PerformerProfile_Location_OrganizationAddressId", - table: "PerformerProfile", - column: "OrganizationAddressId", - principalTable: "Location", - principalColumn: "Id"); - - migrationBuilder.AddForeignKey( - name: "FK_Project_Activity_ActivityCode", - table: "Project", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code"); - - migrationBuilder.AddForeignKey( - name: "FK_Project_AspNetUsers_ClientId", - table: "Project", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id"); - - migrationBuilder.AddForeignKey( - name: "FK_Project_GitRepositoryReference_GitId", - table: "Project", - column: "GitId", - principalTable: "GitRepositoryReference", - principalColumn: "Id"); - - migrationBuilder.AddForeignKey( - name: "FK_Project_PayPalPayment_PaymentId", - table: "Project", - column: "PaymentId", - principalTable: "PayPalPayment", - principalColumn: "CreationToken"); - - migrationBuilder.AddForeignKey( - name: "FK_Project_PerformerProfile_PerformerId", - table: "Project", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId"); - - migrationBuilder.AddForeignKey( - name: "FK_ProjectBuildConfiguration_Project_ProjectId", - table: "ProjectBuildConfiguration", - column: "ProjectId", - principalTable: "Project", - principalColumn: "Id"); - - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Activity_ActivityCode", - table: "RdvQuery", - column: "ActivityCode", - principalTable: "Activity", - principalColumn: "Code"); - - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_AspNetUsers_ClientId", - table: "RdvQuery", - column: "ClientId", - principalTable: "AspNetUsers", - principalColumn: "Id"); - - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_Location_LocationId", - table: "RdvQuery", - column: "LocationId", - principalTable: "Location", - principalColumn: "Id"); - - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PayPalPayment_PaymentId", - table: "RdvQuery", - column: "PaymentId", - principalTable: "PayPalPayment", - principalColumn: "CreationToken"); - - migrationBuilder.AddForeignKey( - name: "FK_RdvQuery_PerformerProfile_PerformerId", - table: "RdvQuery", - column: "PerformerId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId"); - - migrationBuilder.AddForeignKey( - name: "FK_Schedule_AspNetUsers_OwnerId", - table: "Schedule", - column: "OwnerId", - principalTable: "AspNetUsers", - principalColumn: "Id"); - - migrationBuilder.AddForeignKey( - name: "FK_ScheduledEvent_Period_PeriodStart_PeriodEnd", - table: "ScheduledEvent", - columns: new[] { "PeriodStart", "PeriodEnd" }, - principalTable: "Period", - principalColumns: new[] { "Start", "End" }); - - migrationBuilder.AddForeignKey( - name: "FK_Service_Activity_ContextId", - table: "Service", - column: "ContextId", - principalTable: "Activity", - principalColumn: "Code"); - - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_Activity_DoesCode", - table: "UserActivity", - column: "DoesCode", - principalTable: "Activity", - principalColumn: "Code"); - - migrationBuilder.AddForeignKey( - name: "FK_UserActivity_PerformerProfile_UserId", - table: "UserActivity", - column: "UserId", - principalTable: "PerformerProfile", - principalColumn: "PerformerId"); - } - } -} diff --git a/src/Yavsc.Server/Migrations/20230405203545_userreload.Designer.cs b/src/Yavsc.Server/Migrations/20230405203545_userreload.Designer.cs deleted file mode 100644 index 78750130..00000000 --- a/src/Yavsc.Server/Migrations/20230405203545_userreload.Designer.cs +++ /dev/null @@ -1,3556 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; -using Yavsc.Models; - -#nullable disable - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20230405203545_userreload")] - partial class userreload - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "7.0.4") - .HasAnnotation("Relational:MaxIdentifierLength", 63); - - NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasColumnType("text"); - - b.Property("Name") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("NormalizedName") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .IsUnique() - .HasDatabaseName("RoleNameIndex"); - - b.ToTable("AspNetRoles", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ClaimType") - .HasColumnType("text"); - - b.Property("ClaimValue") - .HasColumnType("text"); - - b.Property("RoleId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("RoleId"); - - b.ToTable("AspNetRoleClaims", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ClaimType") - .HasColumnType("text"); - - b.Property("ClaimValue") - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.ToTable("AspNetUserClaims", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => - { - b.Property("LoginProvider") - .HasColumnType("text"); - - b.Property("ProviderKey") - .HasColumnType("text"); - - b.Property("ProviderDisplayName") - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasIndex("UserId"); - - b.ToTable("AspNetUserLogins", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("RoleId") - .HasColumnType("text"); - - b.HasKey("UserId", "RoleId"); - - b.HasIndex("RoleId"); - - b.ToTable("AspNetUserRoles", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("LoginProvider") - .HasColumnType("text"); - - b.Property("Name") - .HasColumnType("text"); - - b.Property("Value") - .HasColumnType("text"); - - b.HasKey("UserId", "LoginProvider", "Name"); - - b.ToTable("AspNetUserTokens", (string)null); - }); - - modelBuilder.Entity("Yavsc.Abstract.Identity.ClientProviderInfo", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("Avatar") - .IsRequired() - .HasColumnType("text"); - - b.Property("BillingAddressId") - .HasColumnType("bigint"); - - b.Property("EMail") - .IsRequired() - .HasColumnType("text"); - - b.Property("Phone") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserName") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("ClientProviderInfo"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Reason") - .IsRequired() - .HasColumnType("text"); - - b.Property("TargetId") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("TargetId"); - - b.ToTable("Ban"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.HasIndex("UserId"); - - b.ToTable("BlackListed"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId") - .HasColumnType("bigint"); - - b.Property("BlogPostId") - .HasColumnType("bigint"); - - b.HasKey("CircleId", "BlogPostId"); - - b.HasIndex("BlogPostId"); - - b.ToTable("CircleAuthorizationToBlogPost"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("ContactCredits") - .HasColumnType("bigint"); - - b.Property("Credits") - .HasColumnType("numeric"); - - b.HasKey("UserId"); - - b.ToTable("BankStatus"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("AccessFailedCount") - .HasColumnType("integer"); - - b.Property("AllowMonthlyEmail") - .HasColumnType("boolean"); - - b.Property("Avatar") - .IsRequired() - .ValueGeneratedOnAdd() - .HasMaxLength(512) - .HasColumnType("character varying(512)") - .HasDefaultValue("/images/Users/icon_user.png"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("DedicatedGoogleCalendar") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("DiskQuota") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasDefaultValue(524288000L); - - b.Property("DiskUsage") - .HasColumnType("bigint"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("EmailConfirmed") - .HasColumnType("boolean"); - - b.Property("FullName") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("LockoutEnabled") - .HasColumnType("boolean"); - - b.Property("LockoutEnd") - .HasColumnType("timestamp with time zone"); - - b.Property("MaxFileSize") - .HasColumnType("bigint"); - - b.Property("NormalizedEmail") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("NormalizedUserName") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("PasswordHash") - .HasColumnType("text"); - - b.Property("PhoneNumber") - .HasColumnType("text"); - - b.Property("PhoneNumberConfirmed") - .HasColumnType("boolean"); - - b.Property("PostalAddressId") - .HasColumnType("bigint"); - - b.Property("SecurityStamp") - .HasColumnType("text"); - - b.Property("TwoFactorEnabled") - .HasColumnType("boolean"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserName") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.HasKey("Id"); - - b.HasAlternateKey("Email"); - - b.HasIndex("NormalizedEmail") - .HasDatabaseName("EmailIndex"); - - b.HasIndex("NormalizedUserName") - .IsUnique() - .HasDatabaseName("UserNameIndex"); - - b.HasIndex("PostalAddressId"); - - b.ToTable("AspNetUsers", (string)null); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("Active") - .HasColumnType("boolean"); - - b.Property("DisplayName") - .IsRequired() - .HasColumnType("text"); - - b.Property("LogoutRedirectUri") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("character varying(100)"); - - b.Property("RedirectUri") - .IsRequired() - .HasColumnType("text"); - - b.Property("RefreshTokenLifeTime") - .HasColumnType("integer"); - - b.Property("Secret") - .IsRequired() - .HasColumnType("text"); - - b.Property("Type") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("Applications"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.OAuth2Tokens", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("AccessToken") - .IsRequired() - .HasColumnType("text"); - - b.Property("Expiration") - .HasColumnType("timestamp with time zone"); - - b.Property("ExpiresIn") - .IsRequired() - .HasColumnType("text"); - - b.Property("RefreshToken") - .IsRequired() - .HasColumnType("text"); - - b.Property("TokenType") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("OAuth2Tokens"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("character varying(50)"); - - b.Property("ExpiresUtc") - .HasColumnType("timestamp with time zone"); - - b.Property("IssuedUtc") - .HasColumnType("timestamp with time zone"); - - b.Property("ProtectedTicket") - .IsRequired() - .HasColumnType("text"); - - b.Property("Subject") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("character varying(50)"); - - b.HasKey("Id"); - - b.ToTable("RefreshTokens"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("BalanceId") - .IsRequired() - .HasColumnType("text"); - - b.Property("ExecDate") - .HasColumnType("timestamp with time zone"); - - b.Property("Impact") - .HasColumnType("numeric"); - - b.Property("Reason") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("BalanceId"); - - b.ToTable("BankBook"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AccountNumber") - .IsRequired() - .HasColumnType("text"); - - b.Property("BIC") - .IsRequired() - .HasColumnType("text"); - - b.Property("BankCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("BankedKey") - .HasColumnType("integer"); - - b.Property("IBAN") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.Property("WicketCode") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.ToTable("BankIdentity"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Count") - .HasColumnType("integer"); - - b.Property("Currency") - .IsRequired() - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("EstimateId") - .HasColumnType("bigint"); - - b.Property("EstimateTemplateId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("UnitaryCost") - .HasColumnType("numeric"); - - b.HasKey("Id"); - - b.HasIndex("EstimateId"); - - b.HasIndex("EstimateTemplateId"); - - b.ToTable("CommandLine"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AttachedFilesString") - .IsRequired() - .HasColumnType("text"); - - b.Property("AttachedGraphicsString") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientValidationDate") - .HasColumnType("timestamp with time zone"); - - b.Property("CommandId") - .HasColumnType("bigint"); - - b.Property("CommandType") - .IsRequired() - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("ProviderValidationDate") - .HasColumnType("timestamp with time zone"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ClientId"); - - b.HasIndex("CommandId"); - - b.HasIndex("OwnerId"); - - b.ToTable("Estimates"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("EstimateTemplates"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN") - .HasColumnType("text"); - - b.HasKey("SIREN"); - - b.ToTable("ExceptionsSIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AuthorId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Content") - .IsRequired() - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Lang") - .IsRequired() - .HasColumnType("text"); - - b.Property("Photo") - .IsRequired() - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("Visible") - .HasColumnType("boolean"); - - b.HasKey("Id"); - - b.HasIndex("AuthorId"); - - b.ToTable("Blogspot"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.Property("PostId") - .HasColumnType("bigint"); - - b.Property("TagId") - .HasColumnType("bigint"); - - b.HasKey("PostId", "TagId"); - - b.HasIndex("TagId"); - - b.ToTable("BlogTag"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AuthorId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Content") - .IsRequired() - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("ParentId") - .HasColumnType("bigint"); - - b.Property("PostId") - .HasColumnType("bigint"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("Visible") - .HasColumnType("boolean"); - - b.HasKey("Id"); - - b.HasIndex("AuthorId"); - - b.HasIndex("ParentId"); - - b.HasIndex("PostId"); - - b.ToTable("Comment"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Property("OwnerId") - .HasColumnType("text"); - - b.HasKey("OwnerId"); - - b.ToTable("Schedule"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("PeriodEnd") - .HasColumnType("timestamp with time zone"); - - b.Property("PeriodStart") - .HasColumnType("timestamp with time zone"); - - b.Property("Reccurence") - .HasColumnType("integer"); - - b.Property("ScheduleOwnerId") - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ScheduleOwnerId"); - - b.HasIndex("PeriodStart", "PeriodEnd"); - - b.ToTable("ScheduledEvent"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.Property("ConnectionId") - .HasColumnType("text"); - - b.Property("ApplicationUserId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Connected") - .HasColumnType("boolean"); - - b.Property("UserAgent") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("ConnectionId"); - - b.HasIndex("ApplicationUserId"); - - b.ToTable("ChatConnection"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.Property("Name") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("LatestJoinPart") - .HasColumnType("timestamp with time zone"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Topic") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Name"); - - b.HasIndex("OwnerId"); - - b.ToTable("ChatRoom"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomAccess", b => - { - b.Property("ChannelName") - .HasColumnType("text"); - - b.Property("UserId") - .HasColumnType("text"); - - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Level") - .HasColumnType("integer"); - - b.HasKey("ChannelName", "UserId"); - - b.HasIndex("UserId"); - - b.ToTable("ChatRoomAccess"); - }); - - modelBuilder.Entity("Yavsc.Models.Cratie.Option", b => - { - b.Property("Code") - .HasColumnType("text"); - - b.Property("CodeScrutin") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Code", "CodeScrutin"); - - b.ToTable("Option"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Blue") - .HasColumnType("smallint"); - - b.Property("Green") - .HasColumnType("smallint"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Red") - .HasColumnType("smallint"); - - b.HasKey("Id"); - - b.ToTable("Color"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("Summary") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("Form"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("ActionDistance") - .HasColumnType("integer"); - - b.Property("CarePrice") - .HasColumnType("numeric"); - - b.Property("FlatFeeDiscount") - .HasColumnType("numeric"); - - b.Property("HalfBalayagePrice") - .HasColumnType("numeric"); - - b.Property("HalfBrushingPrice") - .HasColumnType("numeric"); - - b.Property("HalfColorPrice") - .HasColumnType("numeric"); - - b.Property("HalfDefrisPrice") - .HasColumnType("numeric"); - - b.Property("HalfFoldingPrice") - .HasColumnType("numeric"); - - b.Property("HalfMechPrice") - .HasColumnType("numeric"); - - b.Property("HalfMultiColorPrice") - .HasColumnType("numeric"); - - b.Property("HalfPermanentPrice") - .HasColumnType("numeric"); - - b.Property("KidCutPrice") - .HasColumnType("numeric"); - - b.Property("LongBalayagePrice") - .HasColumnType("numeric"); - - b.Property("LongBrushingPrice") - .HasColumnType("numeric"); - - b.Property("LongColorPrice") - .HasColumnType("numeric"); - - b.Property("LongDefrisPrice") - .HasColumnType("numeric"); - - b.Property("LongFoldingPrice") - .HasColumnType("numeric"); - - b.Property("LongMechPrice") - .HasColumnType("numeric"); - - b.Property("LongMultiColorPrice") - .HasColumnType("numeric"); - - b.Property("LongPermanentPrice") - .HasColumnType("numeric"); - - b.Property("ManBrushPrice") - .HasColumnType("numeric"); - - b.Property("ManCutPrice") - .HasColumnType("numeric"); - - b.Property("ScheduleOwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("ShampooPrice") - .HasColumnType("numeric"); - - b.Property("ShortBalayagePrice") - .HasColumnType("numeric"); - - b.Property("ShortBrushingPrice") - .HasColumnType("numeric"); - - b.Property("ShortColorPrice") - .HasColumnType("numeric"); - - b.Property("ShortDefrisPrice") - .HasColumnType("numeric"); - - b.Property("ShortFoldingPrice") - .HasColumnType("numeric"); - - b.Property("ShortMechPrice") - .HasColumnType("numeric"); - - b.Property("ShortMultiColorPrice") - .HasColumnType("numeric"); - - b.Property("ShortPermanentPrice") - .HasColumnType("numeric"); - - b.Property("WomenHalfCutPrice") - .HasColumnType("numeric"); - - b.Property("WomenLongCutPrice") - .HasColumnType("numeric"); - - b.Property("WomenShortCutPrice") - .HasColumnType("numeric"); - - b.HasKey("UserId"); - - b.HasIndex("ScheduleOwnerId"); - - b.ToTable("BrusherProfile"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("AdditionalInfo") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("EventDate") - .HasColumnType("timestamp with time zone"); - - b.Property("LocationId") - .IsRequired() - .HasColumnType("bigint"); - - b.Property("PaymentId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PrestationId") - .HasColumnType("bigint"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("Rejected") - .HasColumnType("boolean"); - - b.Property("RejectedAt") - .HasColumnType("timestamp with time zone"); - - b.Property("SelectedProfileUserId") - .HasColumnType("text"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("LocationId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.HasIndex("PrestationId"); - - b.HasIndex("SelectedProfileUserId"); - - b.ToTable("HairCutQueries"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("EventDate") - .HasColumnType("timestamp with time zone"); - - b.Property("LocationId") - .HasColumnType("bigint"); - - b.Property("PaymentId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("Rejected") - .HasColumnType("boolean"); - - b.Property("RejectedAt") - .HasColumnType("timestamp with time zone"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("LocationId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.ToTable("HairMultiCutQueries"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Cares") - .HasColumnType("boolean"); - - b.Property("Cut") - .HasColumnType("boolean"); - - b.Property("Dressing") - .HasColumnType("integer"); - - b.Property("Gender") - .HasColumnType("integer"); - - b.Property("Length") - .HasColumnType("integer"); - - b.Property("Shampoo") - .HasColumnType("boolean"); - - b.Property("Tech") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("HairPrestation"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("PrestationId") - .HasColumnType("bigint"); - - b.Property("QueryId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("PrestationId"); - - b.HasIndex("QueryId"); - - b.ToTable("HairPrestationCollectionItem"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Brand") - .IsRequired() - .HasColumnType("text"); - - b.Property("ColorId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("ColorId"); - - b.ToTable("HairTaint"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.Property("TaintId") - .HasColumnType("bigint"); - - b.Property("PrestationId") - .HasColumnType("bigint"); - - b.HasKey("TaintId", "PrestationId"); - - b.HasIndex("PrestationId"); - - b.ToTable("HairTaintInstance"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Evolution.Feature", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("ShortName") - .IsRequired() - .HasColumnType("text"); - - b.Property("Status") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("Feature"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("FeatureId") - .IsRequired() - .HasColumnType("bigint"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("FeatureId"); - - b.ToTable("Bug"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.DeviceDeclaration", b => - { - b.Property("DeviceId") - .HasColumnType("text"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasColumnType("timestamp with time zone") - .HasDefaultValueSql("LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("LatestActivityUpdate") - .HasColumnType("timestamp with time zone"); - - b.Property("Model") - .IsRequired() - .HasColumnType("text"); - - b.Property("Platform") - .IsRequired() - .HasColumnType("text"); - - b.Property("Version") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("DeviceId"); - - b.HasIndex("DeviceOwnerId"); - - b.ToTable("DeviceDeclaration"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Depth") - .HasColumnType("numeric"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("Height") - .HasColumnType("numeric"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Price") - .HasColumnType("numeric"); - - b.Property("Public") - .HasColumnType("boolean"); - - b.Property("Weight") - .HasColumnType("numeric"); - - b.Property("Width") - .HasColumnType("numeric"); - - b.HasKey("Id"); - - b.ToTable("Products"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ContextId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Public") - .HasColumnType("boolean"); - - b.HasKey("Id"); - - b.HasIndex("ContextId"); - - b.ToTable("Services"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("For") - .HasColumnType("smallint"); - - b.Property("Message") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Sender") - .IsRequired() - .HasColumnType("text"); - - b.Property("Topic") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.ToTable("Announce"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("NotificationId") - .HasColumnType("bigint"); - - b.HasKey("UserId", "NotificationId"); - - b.HasIndex("NotificationId"); - - b.ToTable("DimissClicked"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Target") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("body") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("click_action") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("color") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("icon") - .IsRequired() - .ValueGeneratedOnAdd() - .HasMaxLength(512) - .HasColumnType("character varying(512)") - .HasDefaultValue("exclam"); - - b.Property("sound") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("tag") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("title") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("character varying(1024)"); - - b.HasKey("Id"); - - b.ToTable("Notification"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("character varying(255)"); - - b.HasKey("Id"); - - b.ToTable("Instrument"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.InstrumentRating", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("InstrumentId") - .HasColumnType("bigint"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.HasAlternateKey("InstrumentId", "OwnerId"); - - b.HasIndex("OwnerId"); - - b.ToTable("InstrumentRating"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId") - .HasColumnType("text"); - - b.Property("DjSettingsUserId") - .HasColumnType("text"); - - b.Property("GeneralSettingsUserId") - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.Property("TendencyId") - .HasColumnType("bigint"); - - b.HasKey("OwnerProfileId"); - - b.HasIndex("DjSettingsUserId"); - - b.HasIndex("GeneralSettingsUserId"); - - b.ToTable("MusicalPreference"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("character varying(255)"); - - b.HasKey("Id"); - - b.ToTable("MusicalTendency"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("SoundCloudId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("DjSettings"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("GeneralSettings"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId") - .HasColumnType("bigint"); - - b.Property("UserId") - .HasColumnType("text"); - - b.HasKey("InstrumentId", "UserId"); - - b.HasIndex("UserId"); - - b.ToTable("Instrumentation"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Property("CreationToken") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("ExecutorId") - .IsRequired() - .HasColumnType("text"); - - b.Property("OrderReference") - .IsRequired() - .HasColumnType("text"); - - b.Property("PaypalPayerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("State") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("CreationToken"); - - b.HasIndex("ExecutorId"); - - b.ToTable("PayPalPayment"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ApplicationUserId") - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Public") - .HasColumnType("boolean"); - - b.HasKey("Id"); - - b.HasIndex("ApplicationUserId"); - - b.ToTable("Circle"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId") - .HasColumnType("text"); - - b.Property("CircleId") - .HasColumnType("bigint"); - - b.HasKey("MemberId", "CircleId"); - - b.HasIndex("CircleId"); - - b.ToTable("CircleMembers"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId") - .HasColumnType("text"); - - b.Property("UserId") - .HasColumnType("text"); - - b.Property("AddressId") - .HasColumnType("bigint"); - - b.Property("ApplicationUserId") - .HasColumnType("text"); - - b.Property("EMail") - .IsRequired() - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("OwnerId", "UserId"); - - b.HasIndex("AddressId"); - - b.HasIndex("ApplicationUserId"); - - b.ToTable("Contact"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.Property("HRef") - .HasColumnType("text"); - - b.Property("Method") - .HasColumnType("text"); - - b.Property("BrusherProfileUserId") - .HasColumnType("text"); - - b.Property("ContentType") - .IsRequired() - .HasColumnType("text"); - - b.Property("PayPalPaymentCreationToken") - .HasColumnType("text"); - - b.Property("Rel") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("HRef", "Method"); - - b.HasIndex("BrusherProfileUserId"); - - b.HasIndex("PayPalPaymentCreationToken"); - - b.ToTable("HyperLink"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Address") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("Latitude") - .HasColumnType("double precision"); - - b.Property("Longitude") - .HasColumnType("double precision"); - - b.HasKey("Id"); - - b.ToTable("Locations"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostalAddress", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("City") - .IsRequired() - .HasColumnType("text"); - - b.Property("Country") - .IsRequired() - .HasColumnType("text"); - - b.Property("PostalCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("Province") - .IsRequired() - .HasColumnType("text"); - - b.Property("State") - .IsRequired() - .HasColumnType("text"); - - b.Property("Street1") - .IsRequired() - .HasColumnType("text"); - - b.Property("Street2") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("PostalAddress"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("Tags"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("SiteSkills"); - }); - - modelBuilder.Entity("Yavsc.Models.Streaming.LiveFlow", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("DifferedFileName") - .IsRequired() - .HasColumnType("text"); - - b.Property("MediaType") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Pitch") - .IsRequired() - .HasColumnType("text"); - - b.Property("SequenceNumber") - .HasColumnType("integer"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.ToTable("LiveFlow"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("Hidden") - .HasColumnType("boolean"); - - b.Property("ModeratorGroupName") - .IsRequired() - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("ParentCode") - .HasColumnType("text"); - - b.Property("Photo") - .IsRequired() - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.Property("SettingsClassName") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Code"); - - b.HasIndex("ParentCode"); - - b.ToTable("Activities"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("FormationSettingsUserId") - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("WorkingForId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("FormationSettingsUserId"); - - b.HasIndex("PerformerId"); - - b.HasIndex("WorkingForId"); - - b.ToTable("CoWorking"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ActionName") - .IsRequired() - .HasColumnType("text"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.ToTable("CommandForm"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId") - .HasColumnType("text"); - - b.Property("AcceptNotifications") - .HasColumnType("boolean"); - - b.Property("AcceptPublicContact") - .HasColumnType("boolean"); - - b.Property("Active") - .HasColumnType("boolean"); - - b.Property("MaxDailyCost") - .HasColumnType("integer"); - - b.Property("MinDailyCost") - .HasColumnType("integer"); - - b.Property("OrganizationAddressId") - .HasColumnType("bigint"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.Property("SIREN") - .IsRequired() - .HasColumnType("text"); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients") - .HasColumnType("boolean"); - - b.Property("WebSite") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("PerformerId"); - - b.HasIndex("OrganizationAddressId"); - - b.ToTable("Performers"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("DisplayName") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("FormationSettings"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("EventDate") - .HasColumnType("timestamp with time zone"); - - b.Property("LocationId") - .HasColumnType("bigint"); - - b.Property("LocationType") - .HasColumnType("integer"); - - b.Property("PaymentId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("Reason") - .IsRequired() - .HasColumnType("text"); - - b.Property("Rejected") - .HasColumnType("boolean"); - - b.Property("RejectedAt") - .HasColumnType("timestamp with time zone"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("LocationId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.ToTable("RdvQueries"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode") - .HasColumnType("text"); - - b.Property("UserId") - .HasColumnType("text"); - - b.Property("Weight") - .HasColumnType("integer"); - - b.HasKey("DoesCode", "UserId"); - - b.HasIndex("UserId"); - - b.ToTable("UserActivities"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Blog.BlogTrad", b => - { - b.Property("PostId") - .HasColumnType("bigint"); - - b.Property("Lang") - .HasColumnType("text"); - - b.Property("Body") - .IsRequired() - .HasColumnType("text"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.Property("TraducerId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("PostId", "Lang"); - - b.HasIndex("TraducerId"); - - b.ToTable("BlogTrad"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Calendar.Period", b => - { - b.Property("Start") - .HasColumnType("timestamp with time zone"); - - b.Property("End") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Start", "End"); - - b.ToTable("Period"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.EMailing.MailingTemplate", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("Body") - .IsRequired() - .HasMaxLength(65536) - .HasColumnType("character varying(65536)"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("ReplyToAddress") - .IsRequired() - .HasColumnType("text"); - - b.Property("ToSend") - .HasColumnType("integer"); - - b.Property("Topic") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("MailingTemplate"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("GitId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PaymentId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("Rejected") - .HasColumnType("boolean"); - - b.Property("RejectedAt") - .HasColumnType("timestamp with time zone"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.Property("Version") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("GitId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.ToTable("Project"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("ProjectId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("ProjectId"); - - b.ToTable("ProjectBuildConfiguration"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Branch") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Path") - .IsRequired() - .HasColumnType("text"); - - b.Property("Url") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.ToTable("GitRepositoryReference"); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null) - .WithMany() - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null) - .WithMany() - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "TargetUser") - .WithMany() - .HasForeignKey("TargetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TargetUser"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany("BlackList") - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost", "Target") - .WithMany("ACL") - .HasForeignKey("BlogPostId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Circle", "Allowed") - .WithMany() - .HasForeignKey("CircleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Allowed"); - - b.Navigation("Target"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithOne("AccountBalance") - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Relationship.Location", "PostalAddress") - .WithMany() - .HasForeignKey("PostalAddressId"); - - b.Navigation("PostalAddress"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance", "Balance") - .WithMany() - .HasForeignKey("BalanceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Balance"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany("BankInfo") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate", null) - .WithMany("Bill") - .HasForeignKey("EstimateId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate", null) - .WithMany("Bill") - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery", "Query") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Owner"); - - b.Navigation("Query"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Author") - .WithMany("Posts") - .HasForeignKey("AuthorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Author"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost", "Post") - .WithMany("Tags") - .HasForeignKey("PostId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Tag", "Tag") - .WithMany() - .HasForeignKey("TagId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Post"); - - b.Navigation("Tag"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Author") - .WithMany() - .HasForeignKey("AuthorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Blog.Comment", "Parent") - .WithMany("Children") - .HasForeignKey("ParentId"); - - b.HasOne("Yavsc.Models.Blog.BlogPost", "Post") - .WithMany("Comments") - .HasForeignKey("PostId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Author"); - - b.Navigation("Parent"); - - b.Navigation("Post"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule", null) - .WithMany("Events") - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Server.Models.Calendar.Period", "Period") - .WithMany() - .HasForeignKey("PeriodStart", "PeriodEnd") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Period"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany("Connections") - .HasForeignKey("ApplicationUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany("Rooms") - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomAccess", b => - { - b.HasOne("Yavsc.Models.Chat.ChatRoom", "Room") - .WithMany("Moderation") - .HasForeignKey("ChannelName") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany("RoomAccess") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Room"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule", "Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "BaseProfile") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("BaseProfile"); - - b.Navigation("Schedule"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Location", "Location") - .WithMany() - .HasForeignKey("LocationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation", "Prestation") - .WithMany() - .HasForeignKey("PrestationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.BrusherProfile", "SelectedProfile") - .WithMany() - .HasForeignKey("SelectedProfileUserId"); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("Location"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Prestation"); - - b.Navigation("Regularisation"); - - b.Navigation("SelectedProfile"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Location", "Location") - .WithMany() - .HasForeignKey("LocationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("Location"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Regularisation"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation", "Prestation") - .WithMany() - .HasForeignKey("PrestationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery", "Query") - .WithMany("Prestations") - .HasForeignKey("QueryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Prestation"); - - b.Navigation("Query"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color", "Color") - .WithMany() - .HasForeignKey("ColorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Color"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation", "Prestation") - .WithMany("Taints") - .HasForeignKey("PrestationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.HairTaint", "Taint") - .WithMany() - .HasForeignKey("TaintId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Prestation"); - - b.Navigation("Taint"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.HasOne("Yavsc.Models.IT.Evolution.Feature", "False") - .WithMany() - .HasForeignKey("FeatureId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("False"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.DeviceDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "DeviceOwner") - .WithMany("DeviceDeclaration") - .HasForeignKey("DeviceOwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("DeviceOwner"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany("Services") - .HasForeignKey("ContextId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Context"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.HasOne("Yavsc.Models.Messaging.Notification", "Notified") - .WithMany() - .HasForeignKey("NotificationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Notified"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.InstrumentRating", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument", "Instrument") - .WithMany() - .HasForeignKey("InstrumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "Profile") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Instrument"); - - b.Navigation("Profile"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings", null) - .WithMany("SoundColor") - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings", null) - .WithMany("SoundColor") - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument", "Tool") - .WithMany() - .HasForeignKey("InstrumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tool"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Executor") - .WithMany() - .HasForeignKey("ExecutorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Executor"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany("Circles") - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle", "Circle") - .WithMany("Members") - .HasForeignKey("CircleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Member") - .WithMany("Membership") - .HasForeignKey("MemberId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Circle"); - - b.Navigation("Member"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.Relationship.PostalAddress", "PostalAddress") - .WithMany() - .HasForeignKey("AddressId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany("Book") - .HasForeignKey("ApplicationUserId"); - - b.Navigation("PostalAddress"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.HasOne("Yavsc.Models.Haircut.BrusherProfile", null) - .WithMany("Links") - .HasForeignKey("BrusherProfileUserId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", null) - .WithMany("Links") - .HasForeignKey("PayPalPaymentCreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Streaming.LiveFlow", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Parent") - .WithMany("Children") - .HasForeignKey("ParentCode"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings", null) - .WithMany("CoWorking") - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "Performer") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "WorkingFor") - .WithMany() - .HasForeignKey("WorkingForId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Performer"); - - b.Navigation("WorkingFor"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany("Forms") - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Context"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location", "OrganizationAddress") - .WithMany() - .HasForeignKey("OrganizationAddressId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Performer") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("OrganizationAddress"); - - b.Navigation("Performer"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Location", "Location") - .WithMany() - .HasForeignKey("LocationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("Location"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Regularisation"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Does") - .WithMany() - .HasForeignKey("DoesCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "User") - .WithMany("Activity") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Does"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Blog.BlogTrad", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Traducer") - .WithMany() - .HasForeignKey("TraducerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Traducer"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", "Repository") - .WithMany() - .HasForeignKey("GitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Regularisation"); - - b.Navigation("Repository"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.HasOne("Yavsc.Server.Models.IT.Project", "TargetProject") - .WithMany("Configurations") - .HasForeignKey("ProjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TargetProject"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Navigation("AccountBalance") - .IsRequired(); - - b.Navigation("BankInfo"); - - b.Navigation("BlackList"); - - b.Navigation("Book"); - - b.Navigation("Circles"); - - b.Navigation("Connections"); - - b.Navigation("DeviceDeclaration"); - - b.Navigation("Membership"); - - b.Navigation("Posts"); - - b.Navigation("RoomAccess"); - - b.Navigation("Rooms"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Navigation("Bill"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Navigation("Bill"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.Navigation("ACL"); - - b.Navigation("Comments"); - - b.Navigation("Tags"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.Navigation("Children"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Navigation("Events"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.Navigation("Moderation"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Navigation("Links"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Navigation("Prestations"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Navigation("Taints"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Navigation("SoundColor"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Navigation("SoundColor"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Navigation("Links"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Navigation("Members"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Navigation("Children"); - - b.Navigation("Forms"); - - b.Navigation("Services"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Navigation("Activity"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Navigation("CoWorking"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.Navigation("Configurations"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/Yavsc.Server/Migrations/20230405203545_userreload.cs b/src/Yavsc.Server/Migrations/20230405203545_userreload.cs deleted file mode 100644 index 7dbed581..00000000 --- a/src/Yavsc.Server/Migrations/20230405203545_userreload.cs +++ /dev/null @@ -1,219 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace Yavsc.Migrations -{ - /// - public partial class userreload : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey( - name: "FK_Activities_Activities_ParentCode", - table: "Activities"); - - migrationBuilder.DropForeignKey( - name: "FK_AspNetUsers_BankIdentity_BankInfoId", - table: "AspNetUsers"); - - migrationBuilder.DropForeignKey( - name: "FK_AspNetUsers_Locations_PostalAddressId", - table: "AspNetUsers"); - - migrationBuilder.DropIndex( - name: "IX_AspNetUsers_BankInfoId", - table: "AspNetUsers"); - - migrationBuilder.DropColumn( - name: "BankInfoId", - table: "AspNetUsers"); - - migrationBuilder.Sql("delete from \"BankIdentity\""); - - migrationBuilder.AddColumn( - name: "UserId", - table: "BankIdentity", - type: "text", - nullable: false, - defaultValue: ""); - - migrationBuilder.AlterColumn( - name: "PostalAddressId", - table: "AspNetUsers", - type: "bigint", - nullable: true, - oldClrType: typeof(long), - oldType: "bigint"); - - migrationBuilder.AlterColumn( - name: "Email", - table: "AspNetUsers", - type: "character varying(256)", - maxLength: 256, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "character varying(256)", - oldMaxLength: 256, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "DedicatedGoogleCalendar", - table: "AspNetUsers", - type: "character varying(512)", - maxLength: 512, - nullable: true, - oldClrType: typeof(string), - oldType: "character varying(512)", - oldMaxLength: 512); - - migrationBuilder.AlterColumn( - name: "ParentCode", - table: "Activities", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AddUniqueConstraint( - name: "AK_AspNetUsers_Email", - table: "AspNetUsers", - column: "Email"); - - migrationBuilder.CreateIndex( - name: "IX_BankIdentity_UserId", - table: "BankIdentity", - column: "UserId"); - - migrationBuilder.AddForeignKey( - name: "FK_Activities_Activities_ParentCode", - table: "Activities", - column: "ParentCode", - principalTable: "Activities", - principalColumn: "Code"); - - migrationBuilder.AddForeignKey( - name: "FK_AspNetUsers_Locations_PostalAddressId", - table: "AspNetUsers", - column: "PostalAddressId", - principalTable: "Locations", - principalColumn: "Id"); - - migrationBuilder.AddForeignKey( - name: "FK_BankIdentity_AspNetUsers_UserId", - table: "BankIdentity", - column: "UserId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey( - name: "FK_Activities_Activities_ParentCode", - table: "Activities"); - - migrationBuilder.DropForeignKey( - name: "FK_AspNetUsers_Locations_PostalAddressId", - table: "AspNetUsers"); - - migrationBuilder.DropForeignKey( - name: "FK_BankIdentity_AspNetUsers_UserId", - table: "BankIdentity"); - - migrationBuilder.DropIndex( - name: "IX_BankIdentity_UserId", - table: "BankIdentity"); - - migrationBuilder.DropUniqueConstraint( - name: "AK_AspNetUsers_Email", - table: "AspNetUsers"); - - migrationBuilder.DropColumn( - name: "UserId", - table: "BankIdentity"); - - migrationBuilder.AlterColumn( - name: "PostalAddressId", - table: "AspNetUsers", - type: "bigint", - nullable: false, - defaultValue: 0L, - oldClrType: typeof(long), - oldType: "bigint", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Email", - table: "AspNetUsers", - type: "character varying(256)", - maxLength: 256, - nullable: true, - oldClrType: typeof(string), - oldType: "character varying(256)", - oldMaxLength: 256); - - migrationBuilder.AlterColumn( - name: "DedicatedGoogleCalendar", - table: "AspNetUsers", - type: "character varying(512)", - maxLength: 512, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "character varying(512)", - oldMaxLength: 512, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "BankInfoId", - table: "AspNetUsers", - type: "bigint", - nullable: false, - defaultValue: 0L); - - migrationBuilder.AlterColumn( - name: "ParentCode", - table: "Activities", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.CreateIndex( - name: "IX_AspNetUsers_BankInfoId", - table: "AspNetUsers", - column: "BankInfoId"); - - migrationBuilder.AddForeignKey( - name: "FK_Activities_Activities_ParentCode", - table: "Activities", - column: "ParentCode", - principalTable: "Activities", - principalColumn: "Code", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_AspNetUsers_BankIdentity_BankInfoId", - table: "AspNetUsers", - column: "BankInfoId", - principalTable: "BankIdentity", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_AspNetUsers_Locations_PostalAddressId", - table: "AspNetUsers", - column: "PostalAddressId", - principalTable: "Locations", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - } -} diff --git a/src/Yavsc.Server/Migrations/20230405210700_nullableFullname.Designer.cs b/src/Yavsc.Server/Migrations/20230405210700_nullableFullname.Designer.cs deleted file mode 100644 index c2428cb6..00000000 --- a/src/Yavsc.Server/Migrations/20230405210700_nullableFullname.Designer.cs +++ /dev/null @@ -1,3555 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; -using Yavsc.Models; - -#nullable disable - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20230405210700_nullableFullname")] - partial class nullableFullname - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "7.0.4") - .HasAnnotation("Relational:MaxIdentifierLength", 63); - - NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasColumnType("text"); - - b.Property("Name") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("NormalizedName") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .IsUnique() - .HasDatabaseName("RoleNameIndex"); - - b.ToTable("AspNetRoles", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ClaimType") - .HasColumnType("text"); - - b.Property("ClaimValue") - .HasColumnType("text"); - - b.Property("RoleId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("RoleId"); - - b.ToTable("AspNetRoleClaims", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ClaimType") - .HasColumnType("text"); - - b.Property("ClaimValue") - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.ToTable("AspNetUserClaims", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => - { - b.Property("LoginProvider") - .HasColumnType("text"); - - b.Property("ProviderKey") - .HasColumnType("text"); - - b.Property("ProviderDisplayName") - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasIndex("UserId"); - - b.ToTable("AspNetUserLogins", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("RoleId") - .HasColumnType("text"); - - b.HasKey("UserId", "RoleId"); - - b.HasIndex("RoleId"); - - b.ToTable("AspNetUserRoles", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("LoginProvider") - .HasColumnType("text"); - - b.Property("Name") - .HasColumnType("text"); - - b.Property("Value") - .HasColumnType("text"); - - b.HasKey("UserId", "LoginProvider", "Name"); - - b.ToTable("AspNetUserTokens", (string)null); - }); - - modelBuilder.Entity("Yavsc.Abstract.Identity.ClientProviderInfo", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("Avatar") - .IsRequired() - .HasColumnType("text"); - - b.Property("BillingAddressId") - .HasColumnType("bigint"); - - b.Property("EMail") - .IsRequired() - .HasColumnType("text"); - - b.Property("Phone") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserName") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("ClientProviderInfo"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Reason") - .IsRequired() - .HasColumnType("text"); - - b.Property("TargetId") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("TargetId"); - - b.ToTable("Ban"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.HasIndex("UserId"); - - b.ToTable("BlackListed"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId") - .HasColumnType("bigint"); - - b.Property("BlogPostId") - .HasColumnType("bigint"); - - b.HasKey("CircleId", "BlogPostId"); - - b.HasIndex("BlogPostId"); - - b.ToTable("CircleAuthorizationToBlogPost"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("ContactCredits") - .HasColumnType("bigint"); - - b.Property("Credits") - .HasColumnType("numeric"); - - b.HasKey("UserId"); - - b.ToTable("BankStatus"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("AccessFailedCount") - .HasColumnType("integer"); - - b.Property("AllowMonthlyEmail") - .HasColumnType("boolean"); - - b.Property("Avatar") - .IsRequired() - .ValueGeneratedOnAdd() - .HasMaxLength(512) - .HasColumnType("character varying(512)") - .HasDefaultValue("/images/Users/icon_user.png"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("DedicatedGoogleCalendar") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("DiskQuota") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasDefaultValue(524288000L); - - b.Property("DiskUsage") - .HasColumnType("bigint"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("EmailConfirmed") - .HasColumnType("boolean"); - - b.Property("FullName") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("LockoutEnabled") - .HasColumnType("boolean"); - - b.Property("LockoutEnd") - .HasColumnType("timestamp with time zone"); - - b.Property("MaxFileSize") - .HasColumnType("bigint"); - - b.Property("NormalizedEmail") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("NormalizedUserName") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("PasswordHash") - .HasColumnType("text"); - - b.Property("PhoneNumber") - .HasColumnType("text"); - - b.Property("PhoneNumberConfirmed") - .HasColumnType("boolean"); - - b.Property("PostalAddressId") - .HasColumnType("bigint"); - - b.Property("SecurityStamp") - .HasColumnType("text"); - - b.Property("TwoFactorEnabled") - .HasColumnType("boolean"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserName") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.HasKey("Id"); - - b.HasAlternateKey("Email"); - - b.HasIndex("NormalizedEmail") - .HasDatabaseName("EmailIndex"); - - b.HasIndex("NormalizedUserName") - .IsUnique() - .HasDatabaseName("UserNameIndex"); - - b.HasIndex("PostalAddressId"); - - b.ToTable("AspNetUsers", (string)null); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("Active") - .HasColumnType("boolean"); - - b.Property("DisplayName") - .IsRequired() - .HasColumnType("text"); - - b.Property("LogoutRedirectUri") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("character varying(100)"); - - b.Property("RedirectUri") - .IsRequired() - .HasColumnType("text"); - - b.Property("RefreshTokenLifeTime") - .HasColumnType("integer"); - - b.Property("Secret") - .IsRequired() - .HasColumnType("text"); - - b.Property("Type") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("Applications"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.OAuth2Tokens", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("AccessToken") - .IsRequired() - .HasColumnType("text"); - - b.Property("Expiration") - .HasColumnType("timestamp with time zone"); - - b.Property("ExpiresIn") - .IsRequired() - .HasColumnType("text"); - - b.Property("RefreshToken") - .IsRequired() - .HasColumnType("text"); - - b.Property("TokenType") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("OAuth2Tokens"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("character varying(50)"); - - b.Property("ExpiresUtc") - .HasColumnType("timestamp with time zone"); - - b.Property("IssuedUtc") - .HasColumnType("timestamp with time zone"); - - b.Property("ProtectedTicket") - .IsRequired() - .HasColumnType("text"); - - b.Property("Subject") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("character varying(50)"); - - b.HasKey("Id"); - - b.ToTable("RefreshTokens"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("BalanceId") - .IsRequired() - .HasColumnType("text"); - - b.Property("ExecDate") - .HasColumnType("timestamp with time zone"); - - b.Property("Impact") - .HasColumnType("numeric"); - - b.Property("Reason") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("BalanceId"); - - b.ToTable("BankBook"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AccountNumber") - .IsRequired() - .HasColumnType("text"); - - b.Property("BIC") - .IsRequired() - .HasColumnType("text"); - - b.Property("BankCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("BankedKey") - .HasColumnType("integer"); - - b.Property("IBAN") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.Property("WicketCode") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.ToTable("BankIdentity"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Count") - .HasColumnType("integer"); - - b.Property("Currency") - .IsRequired() - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("EstimateId") - .HasColumnType("bigint"); - - b.Property("EstimateTemplateId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("UnitaryCost") - .HasColumnType("numeric"); - - b.HasKey("Id"); - - b.HasIndex("EstimateId"); - - b.HasIndex("EstimateTemplateId"); - - b.ToTable("CommandLine"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AttachedFilesString") - .IsRequired() - .HasColumnType("text"); - - b.Property("AttachedGraphicsString") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientValidationDate") - .HasColumnType("timestamp with time zone"); - - b.Property("CommandId") - .HasColumnType("bigint"); - - b.Property("CommandType") - .IsRequired() - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("ProviderValidationDate") - .HasColumnType("timestamp with time zone"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ClientId"); - - b.HasIndex("CommandId"); - - b.HasIndex("OwnerId"); - - b.ToTable("Estimates"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("EstimateTemplates"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN") - .HasColumnType("text"); - - b.HasKey("SIREN"); - - b.ToTable("ExceptionsSIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AuthorId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Content") - .IsRequired() - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Lang") - .IsRequired() - .HasColumnType("text"); - - b.Property("Photo") - .IsRequired() - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("Visible") - .HasColumnType("boolean"); - - b.HasKey("Id"); - - b.HasIndex("AuthorId"); - - b.ToTable("Blogspot"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.Property("PostId") - .HasColumnType("bigint"); - - b.Property("TagId") - .HasColumnType("bigint"); - - b.HasKey("PostId", "TagId"); - - b.HasIndex("TagId"); - - b.ToTable("BlogTag"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AuthorId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Content") - .IsRequired() - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("ParentId") - .HasColumnType("bigint"); - - b.Property("PostId") - .HasColumnType("bigint"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("Visible") - .HasColumnType("boolean"); - - b.HasKey("Id"); - - b.HasIndex("AuthorId"); - - b.HasIndex("ParentId"); - - b.HasIndex("PostId"); - - b.ToTable("Comment"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Property("OwnerId") - .HasColumnType("text"); - - b.HasKey("OwnerId"); - - b.ToTable("Schedule"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("PeriodEnd") - .HasColumnType("timestamp with time zone"); - - b.Property("PeriodStart") - .HasColumnType("timestamp with time zone"); - - b.Property("Reccurence") - .HasColumnType("integer"); - - b.Property("ScheduleOwnerId") - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ScheduleOwnerId"); - - b.HasIndex("PeriodStart", "PeriodEnd"); - - b.ToTable("ScheduledEvent"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.Property("ConnectionId") - .HasColumnType("text"); - - b.Property("ApplicationUserId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Connected") - .HasColumnType("boolean"); - - b.Property("UserAgent") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("ConnectionId"); - - b.HasIndex("ApplicationUserId"); - - b.ToTable("ChatConnection"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.Property("Name") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("LatestJoinPart") - .HasColumnType("timestamp with time zone"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Topic") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Name"); - - b.HasIndex("OwnerId"); - - b.ToTable("ChatRoom"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomAccess", b => - { - b.Property("ChannelName") - .HasColumnType("text"); - - b.Property("UserId") - .HasColumnType("text"); - - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Level") - .HasColumnType("integer"); - - b.HasKey("ChannelName", "UserId"); - - b.HasIndex("UserId"); - - b.ToTable("ChatRoomAccess"); - }); - - modelBuilder.Entity("Yavsc.Models.Cratie.Option", b => - { - b.Property("Code") - .HasColumnType("text"); - - b.Property("CodeScrutin") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Code", "CodeScrutin"); - - b.ToTable("Option"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Blue") - .HasColumnType("smallint"); - - b.Property("Green") - .HasColumnType("smallint"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Red") - .HasColumnType("smallint"); - - b.HasKey("Id"); - - b.ToTable("Color"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("Summary") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("Form"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("ActionDistance") - .HasColumnType("integer"); - - b.Property("CarePrice") - .HasColumnType("numeric"); - - b.Property("FlatFeeDiscount") - .HasColumnType("numeric"); - - b.Property("HalfBalayagePrice") - .HasColumnType("numeric"); - - b.Property("HalfBrushingPrice") - .HasColumnType("numeric"); - - b.Property("HalfColorPrice") - .HasColumnType("numeric"); - - b.Property("HalfDefrisPrice") - .HasColumnType("numeric"); - - b.Property("HalfFoldingPrice") - .HasColumnType("numeric"); - - b.Property("HalfMechPrice") - .HasColumnType("numeric"); - - b.Property("HalfMultiColorPrice") - .HasColumnType("numeric"); - - b.Property("HalfPermanentPrice") - .HasColumnType("numeric"); - - b.Property("KidCutPrice") - .HasColumnType("numeric"); - - b.Property("LongBalayagePrice") - .HasColumnType("numeric"); - - b.Property("LongBrushingPrice") - .HasColumnType("numeric"); - - b.Property("LongColorPrice") - .HasColumnType("numeric"); - - b.Property("LongDefrisPrice") - .HasColumnType("numeric"); - - b.Property("LongFoldingPrice") - .HasColumnType("numeric"); - - b.Property("LongMechPrice") - .HasColumnType("numeric"); - - b.Property("LongMultiColorPrice") - .HasColumnType("numeric"); - - b.Property("LongPermanentPrice") - .HasColumnType("numeric"); - - b.Property("ManBrushPrice") - .HasColumnType("numeric"); - - b.Property("ManCutPrice") - .HasColumnType("numeric"); - - b.Property("ScheduleOwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("ShampooPrice") - .HasColumnType("numeric"); - - b.Property("ShortBalayagePrice") - .HasColumnType("numeric"); - - b.Property("ShortBrushingPrice") - .HasColumnType("numeric"); - - b.Property("ShortColorPrice") - .HasColumnType("numeric"); - - b.Property("ShortDefrisPrice") - .HasColumnType("numeric"); - - b.Property("ShortFoldingPrice") - .HasColumnType("numeric"); - - b.Property("ShortMechPrice") - .HasColumnType("numeric"); - - b.Property("ShortMultiColorPrice") - .HasColumnType("numeric"); - - b.Property("ShortPermanentPrice") - .HasColumnType("numeric"); - - b.Property("WomenHalfCutPrice") - .HasColumnType("numeric"); - - b.Property("WomenLongCutPrice") - .HasColumnType("numeric"); - - b.Property("WomenShortCutPrice") - .HasColumnType("numeric"); - - b.HasKey("UserId"); - - b.HasIndex("ScheduleOwnerId"); - - b.ToTable("BrusherProfile"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("AdditionalInfo") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("EventDate") - .HasColumnType("timestamp with time zone"); - - b.Property("LocationId") - .IsRequired() - .HasColumnType("bigint"); - - b.Property("PaymentId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PrestationId") - .HasColumnType("bigint"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("Rejected") - .HasColumnType("boolean"); - - b.Property("RejectedAt") - .HasColumnType("timestamp with time zone"); - - b.Property("SelectedProfileUserId") - .HasColumnType("text"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("LocationId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.HasIndex("PrestationId"); - - b.HasIndex("SelectedProfileUserId"); - - b.ToTable("HairCutQueries"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("EventDate") - .HasColumnType("timestamp with time zone"); - - b.Property("LocationId") - .HasColumnType("bigint"); - - b.Property("PaymentId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("Rejected") - .HasColumnType("boolean"); - - b.Property("RejectedAt") - .HasColumnType("timestamp with time zone"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("LocationId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.ToTable("HairMultiCutQueries"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Cares") - .HasColumnType("boolean"); - - b.Property("Cut") - .HasColumnType("boolean"); - - b.Property("Dressing") - .HasColumnType("integer"); - - b.Property("Gender") - .HasColumnType("integer"); - - b.Property("Length") - .HasColumnType("integer"); - - b.Property("Shampoo") - .HasColumnType("boolean"); - - b.Property("Tech") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("HairPrestation"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("PrestationId") - .HasColumnType("bigint"); - - b.Property("QueryId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("PrestationId"); - - b.HasIndex("QueryId"); - - b.ToTable("HairPrestationCollectionItem"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Brand") - .IsRequired() - .HasColumnType("text"); - - b.Property("ColorId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("ColorId"); - - b.ToTable("HairTaint"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.Property("TaintId") - .HasColumnType("bigint"); - - b.Property("PrestationId") - .HasColumnType("bigint"); - - b.HasKey("TaintId", "PrestationId"); - - b.HasIndex("PrestationId"); - - b.ToTable("HairTaintInstance"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Evolution.Feature", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("ShortName") - .IsRequired() - .HasColumnType("text"); - - b.Property("Status") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("Feature"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("FeatureId") - .IsRequired() - .HasColumnType("bigint"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("FeatureId"); - - b.ToTable("Bug"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.DeviceDeclaration", b => - { - b.Property("DeviceId") - .HasColumnType("text"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasColumnType("timestamp with time zone") - .HasDefaultValueSql("LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("LatestActivityUpdate") - .HasColumnType("timestamp with time zone"); - - b.Property("Model") - .IsRequired() - .HasColumnType("text"); - - b.Property("Platform") - .IsRequired() - .HasColumnType("text"); - - b.Property("Version") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("DeviceId"); - - b.HasIndex("DeviceOwnerId"); - - b.ToTable("DeviceDeclaration"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Depth") - .HasColumnType("numeric"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("Height") - .HasColumnType("numeric"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Price") - .HasColumnType("numeric"); - - b.Property("Public") - .HasColumnType("boolean"); - - b.Property("Weight") - .HasColumnType("numeric"); - - b.Property("Width") - .HasColumnType("numeric"); - - b.HasKey("Id"); - - b.ToTable("Products"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ContextId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Public") - .HasColumnType("boolean"); - - b.HasKey("Id"); - - b.HasIndex("ContextId"); - - b.ToTable("Services"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("For") - .HasColumnType("smallint"); - - b.Property("Message") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Sender") - .IsRequired() - .HasColumnType("text"); - - b.Property("Topic") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.ToTable("Announce"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("NotificationId") - .HasColumnType("bigint"); - - b.HasKey("UserId", "NotificationId"); - - b.HasIndex("NotificationId"); - - b.ToTable("DimissClicked"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Target") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("body") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("click_action") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("color") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("icon") - .IsRequired() - .ValueGeneratedOnAdd() - .HasMaxLength(512) - .HasColumnType("character varying(512)") - .HasDefaultValue("exclam"); - - b.Property("sound") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("tag") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("title") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("character varying(1024)"); - - b.HasKey("Id"); - - b.ToTable("Notification"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("character varying(255)"); - - b.HasKey("Id"); - - b.ToTable("Instrument"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.InstrumentRating", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("InstrumentId") - .HasColumnType("bigint"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.HasAlternateKey("InstrumentId", "OwnerId"); - - b.HasIndex("OwnerId"); - - b.ToTable("InstrumentRating"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId") - .HasColumnType("text"); - - b.Property("DjSettingsUserId") - .HasColumnType("text"); - - b.Property("GeneralSettingsUserId") - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.Property("TendencyId") - .HasColumnType("bigint"); - - b.HasKey("OwnerProfileId"); - - b.HasIndex("DjSettingsUserId"); - - b.HasIndex("GeneralSettingsUserId"); - - b.ToTable("MusicalPreference"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("character varying(255)"); - - b.HasKey("Id"); - - b.ToTable("MusicalTendency"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("SoundCloudId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("DjSettings"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("GeneralSettings"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId") - .HasColumnType("bigint"); - - b.Property("UserId") - .HasColumnType("text"); - - b.HasKey("InstrumentId", "UserId"); - - b.HasIndex("UserId"); - - b.ToTable("Instrumentation"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Property("CreationToken") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("ExecutorId") - .IsRequired() - .HasColumnType("text"); - - b.Property("OrderReference") - .IsRequired() - .HasColumnType("text"); - - b.Property("PaypalPayerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("State") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("CreationToken"); - - b.HasIndex("ExecutorId"); - - b.ToTable("PayPalPayment"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ApplicationUserId") - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Public") - .HasColumnType("boolean"); - - b.HasKey("Id"); - - b.HasIndex("ApplicationUserId"); - - b.ToTable("Circle"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId") - .HasColumnType("text"); - - b.Property("CircleId") - .HasColumnType("bigint"); - - b.HasKey("MemberId", "CircleId"); - - b.HasIndex("CircleId"); - - b.ToTable("CircleMembers"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId") - .HasColumnType("text"); - - b.Property("UserId") - .HasColumnType("text"); - - b.Property("AddressId") - .HasColumnType("bigint"); - - b.Property("ApplicationUserId") - .HasColumnType("text"); - - b.Property("EMail") - .IsRequired() - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("OwnerId", "UserId"); - - b.HasIndex("AddressId"); - - b.HasIndex("ApplicationUserId"); - - b.ToTable("Contact"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.Property("HRef") - .HasColumnType("text"); - - b.Property("Method") - .HasColumnType("text"); - - b.Property("BrusherProfileUserId") - .HasColumnType("text"); - - b.Property("ContentType") - .IsRequired() - .HasColumnType("text"); - - b.Property("PayPalPaymentCreationToken") - .HasColumnType("text"); - - b.Property("Rel") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("HRef", "Method"); - - b.HasIndex("BrusherProfileUserId"); - - b.HasIndex("PayPalPaymentCreationToken"); - - b.ToTable("HyperLink"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Address") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("Latitude") - .HasColumnType("double precision"); - - b.Property("Longitude") - .HasColumnType("double precision"); - - b.HasKey("Id"); - - b.ToTable("Locations"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostalAddress", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("City") - .IsRequired() - .HasColumnType("text"); - - b.Property("Country") - .IsRequired() - .HasColumnType("text"); - - b.Property("PostalCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("Province") - .IsRequired() - .HasColumnType("text"); - - b.Property("State") - .IsRequired() - .HasColumnType("text"); - - b.Property("Street1") - .IsRequired() - .HasColumnType("text"); - - b.Property("Street2") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("PostalAddress"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("Tags"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("SiteSkills"); - }); - - modelBuilder.Entity("Yavsc.Models.Streaming.LiveFlow", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("DifferedFileName") - .IsRequired() - .HasColumnType("text"); - - b.Property("MediaType") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Pitch") - .IsRequired() - .HasColumnType("text"); - - b.Property("SequenceNumber") - .HasColumnType("integer"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.ToTable("LiveFlow"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("Hidden") - .HasColumnType("boolean"); - - b.Property("ModeratorGroupName") - .IsRequired() - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("ParentCode") - .HasColumnType("text"); - - b.Property("Photo") - .IsRequired() - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.Property("SettingsClassName") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Code"); - - b.HasIndex("ParentCode"); - - b.ToTable("Activities"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("FormationSettingsUserId") - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("WorkingForId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("FormationSettingsUserId"); - - b.HasIndex("PerformerId"); - - b.HasIndex("WorkingForId"); - - b.ToTable("CoWorking"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ActionName") - .IsRequired() - .HasColumnType("text"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.ToTable("CommandForm"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId") - .HasColumnType("text"); - - b.Property("AcceptNotifications") - .HasColumnType("boolean"); - - b.Property("AcceptPublicContact") - .HasColumnType("boolean"); - - b.Property("Active") - .HasColumnType("boolean"); - - b.Property("MaxDailyCost") - .HasColumnType("integer"); - - b.Property("MinDailyCost") - .HasColumnType("integer"); - - b.Property("OrganizationAddressId") - .HasColumnType("bigint"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.Property("SIREN") - .IsRequired() - .HasColumnType("text"); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients") - .HasColumnType("boolean"); - - b.Property("WebSite") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("PerformerId"); - - b.HasIndex("OrganizationAddressId"); - - b.ToTable("Performers"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("DisplayName") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("FormationSettings"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("EventDate") - .HasColumnType("timestamp with time zone"); - - b.Property("LocationId") - .HasColumnType("bigint"); - - b.Property("LocationType") - .HasColumnType("integer"); - - b.Property("PaymentId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("Reason") - .IsRequired() - .HasColumnType("text"); - - b.Property("Rejected") - .HasColumnType("boolean"); - - b.Property("RejectedAt") - .HasColumnType("timestamp with time zone"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("LocationId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.ToTable("RdvQueries"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode") - .HasColumnType("text"); - - b.Property("UserId") - .HasColumnType("text"); - - b.Property("Weight") - .HasColumnType("integer"); - - b.HasKey("DoesCode", "UserId"); - - b.HasIndex("UserId"); - - b.ToTable("UserActivities"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Blog.BlogTrad", b => - { - b.Property("PostId") - .HasColumnType("bigint"); - - b.Property("Lang") - .HasColumnType("text"); - - b.Property("Body") - .IsRequired() - .HasColumnType("text"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.Property("TraducerId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("PostId", "Lang"); - - b.HasIndex("TraducerId"); - - b.ToTable("BlogTrad"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Calendar.Period", b => - { - b.Property("Start") - .HasColumnType("timestamp with time zone"); - - b.Property("End") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Start", "End"); - - b.ToTable("Period"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.EMailing.MailingTemplate", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("Body") - .IsRequired() - .HasMaxLength(65536) - .HasColumnType("character varying(65536)"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("ReplyToAddress") - .IsRequired() - .HasColumnType("text"); - - b.Property("ToSend") - .HasColumnType("integer"); - - b.Property("Topic") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("MailingTemplate"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("GitId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PaymentId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("Rejected") - .HasColumnType("boolean"); - - b.Property("RejectedAt") - .HasColumnType("timestamp with time zone"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.Property("Version") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("GitId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.ToTable("Project"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("ProjectId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("ProjectId"); - - b.ToTable("ProjectBuildConfiguration"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Branch") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Path") - .IsRequired() - .HasColumnType("text"); - - b.Property("Url") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.ToTable("GitRepositoryReference"); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null) - .WithMany() - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null) - .WithMany() - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "TargetUser") - .WithMany() - .HasForeignKey("TargetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TargetUser"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany("BlackList") - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost", "Target") - .WithMany("ACL") - .HasForeignKey("BlogPostId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Circle", "Allowed") - .WithMany() - .HasForeignKey("CircleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Allowed"); - - b.Navigation("Target"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithOne("AccountBalance") - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Relationship.Location", "PostalAddress") - .WithMany() - .HasForeignKey("PostalAddressId"); - - b.Navigation("PostalAddress"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance", "Balance") - .WithMany() - .HasForeignKey("BalanceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Balance"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany("BankInfo") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate", null) - .WithMany("Bill") - .HasForeignKey("EstimateId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate", null) - .WithMany("Bill") - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery", "Query") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Owner"); - - b.Navigation("Query"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Author") - .WithMany("Posts") - .HasForeignKey("AuthorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Author"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost", "Post") - .WithMany("Tags") - .HasForeignKey("PostId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Tag", "Tag") - .WithMany() - .HasForeignKey("TagId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Post"); - - b.Navigation("Tag"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Author") - .WithMany() - .HasForeignKey("AuthorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Blog.Comment", "Parent") - .WithMany("Children") - .HasForeignKey("ParentId"); - - b.HasOne("Yavsc.Models.Blog.BlogPost", "Post") - .WithMany("Comments") - .HasForeignKey("PostId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Author"); - - b.Navigation("Parent"); - - b.Navigation("Post"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule", null) - .WithMany("Events") - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Server.Models.Calendar.Period", "Period") - .WithMany() - .HasForeignKey("PeriodStart", "PeriodEnd") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Period"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany("Connections") - .HasForeignKey("ApplicationUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany("Rooms") - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomAccess", b => - { - b.HasOne("Yavsc.Models.Chat.ChatRoom", "Room") - .WithMany("Moderation") - .HasForeignKey("ChannelName") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany("RoomAccess") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Room"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule", "Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "BaseProfile") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("BaseProfile"); - - b.Navigation("Schedule"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Location", "Location") - .WithMany() - .HasForeignKey("LocationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation", "Prestation") - .WithMany() - .HasForeignKey("PrestationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.BrusherProfile", "SelectedProfile") - .WithMany() - .HasForeignKey("SelectedProfileUserId"); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("Location"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Prestation"); - - b.Navigation("Regularisation"); - - b.Navigation("SelectedProfile"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Location", "Location") - .WithMany() - .HasForeignKey("LocationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("Location"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Regularisation"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation", "Prestation") - .WithMany() - .HasForeignKey("PrestationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery", "Query") - .WithMany("Prestations") - .HasForeignKey("QueryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Prestation"); - - b.Navigation("Query"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color", "Color") - .WithMany() - .HasForeignKey("ColorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Color"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation", "Prestation") - .WithMany("Taints") - .HasForeignKey("PrestationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.HairTaint", "Taint") - .WithMany() - .HasForeignKey("TaintId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Prestation"); - - b.Navigation("Taint"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.HasOne("Yavsc.Models.IT.Evolution.Feature", "False") - .WithMany() - .HasForeignKey("FeatureId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("False"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.DeviceDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "DeviceOwner") - .WithMany("DeviceDeclaration") - .HasForeignKey("DeviceOwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("DeviceOwner"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany("Services") - .HasForeignKey("ContextId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Context"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b => - { - b.HasOne("Yavsc.Models.Messaging.Notification", "Notified") - .WithMany() - .HasForeignKey("NotificationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Notified"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.InstrumentRating", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument", "Instrument") - .WithMany() - .HasForeignKey("InstrumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "Profile") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Instrument"); - - b.Navigation("Profile"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings", null) - .WithMany("SoundColor") - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings", null) - .WithMany("SoundColor") - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument", "Tool") - .WithMany() - .HasForeignKey("InstrumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tool"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Executor") - .WithMany() - .HasForeignKey("ExecutorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Executor"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany("Circles") - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle", "Circle") - .WithMany("Members") - .HasForeignKey("CircleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Member") - .WithMany("Membership") - .HasForeignKey("MemberId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Circle"); - - b.Navigation("Member"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.Relationship.PostalAddress", "PostalAddress") - .WithMany() - .HasForeignKey("AddressId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany("Book") - .HasForeignKey("ApplicationUserId"); - - b.Navigation("PostalAddress"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.HasOne("Yavsc.Models.Haircut.BrusherProfile", null) - .WithMany("Links") - .HasForeignKey("BrusherProfileUserId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", null) - .WithMany("Links") - .HasForeignKey("PayPalPaymentCreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Streaming.LiveFlow", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Parent") - .WithMany("Children") - .HasForeignKey("ParentCode"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings", null) - .WithMany("CoWorking") - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "Performer") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "WorkingFor") - .WithMany() - .HasForeignKey("WorkingForId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Performer"); - - b.Navigation("WorkingFor"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany("Forms") - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Context"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location", "OrganizationAddress") - .WithMany() - .HasForeignKey("OrganizationAddressId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Performer") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("OrganizationAddress"); - - b.Navigation("Performer"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Location", "Location") - .WithMany() - .HasForeignKey("LocationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("Location"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Regularisation"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Does") - .WithMany() - .HasForeignKey("DoesCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "User") - .WithMany("Activity") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Does"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Blog.BlogTrad", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Traducer") - .WithMany() - .HasForeignKey("TraducerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Traducer"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", "Repository") - .WithMany() - .HasForeignKey("GitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Regularisation"); - - b.Navigation("Repository"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.HasOne("Yavsc.Server.Models.IT.Project", "TargetProject") - .WithMany("Configurations") - .HasForeignKey("ProjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TargetProject"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Navigation("AccountBalance") - .IsRequired(); - - b.Navigation("BankInfo"); - - b.Navigation("BlackList"); - - b.Navigation("Book"); - - b.Navigation("Circles"); - - b.Navigation("Connections"); - - b.Navigation("DeviceDeclaration"); - - b.Navigation("Membership"); - - b.Navigation("Posts"); - - b.Navigation("RoomAccess"); - - b.Navigation("Rooms"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Navigation("Bill"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Navigation("Bill"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.Navigation("ACL"); - - b.Navigation("Comments"); - - b.Navigation("Tags"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.Navigation("Children"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Navigation("Events"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.Navigation("Moderation"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Navigation("Links"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Navigation("Prestations"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Navigation("Taints"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Navigation("SoundColor"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Navigation("SoundColor"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Navigation("Links"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Navigation("Members"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Navigation("Children"); - - b.Navigation("Forms"); - - b.Navigation("Services"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Navigation("Activity"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Navigation("CoWorking"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.Navigation("Configurations"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/Yavsc.Server/Migrations/20230405210700_nullableFullname.cs b/src/Yavsc.Server/Migrations/20230405210700_nullableFullname.cs deleted file mode 100644 index ce135458..00000000 --- a/src/Yavsc.Server/Migrations/20230405210700_nullableFullname.cs +++ /dev/null @@ -1,42 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace Yavsc.Migrations -{ - /// - public partial class nullableFullname : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "FullName", - table: "AspNetUsers", - type: "character varying(512)", - maxLength: 512, - nullable: true, - oldClrType: typeof(string), - oldType: "character varying(512)", - oldMaxLength: 512); - - migrationBuilder.Sql("update \"AspNetUsers\" SET \"UserName\" = \"Email\";"); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "FullName", - table: "AspNetUsers", - type: "character varying(512)", - maxLength: 512, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "character varying(512)", - oldMaxLength: 512, - oldNullable: true); - } - } -} diff --git a/src/Yavsc.Server/Migrations/20241106133541_dismiss.Designer.cs b/src/Yavsc.Server/Migrations/20241106133541_dismiss.Designer.cs deleted file mode 100644 index 2a48e538..00000000 --- a/src/Yavsc.Server/Migrations/20241106133541_dismiss.Designer.cs +++ /dev/null @@ -1,3556 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; -using Yavsc.Models; - -#nullable disable - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20241106133541_dismiss")] - partial class dismiss - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "8.0.2") - .HasAnnotation("Relational:MaxIdentifierLength", 63); - - NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasColumnType("text"); - - b.Property("Name") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("NormalizedName") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .IsUnique() - .HasDatabaseName("RoleNameIndex"); - - b.ToTable("AspNetRoles", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ClaimType") - .HasColumnType("text"); - - b.Property("ClaimValue") - .HasColumnType("text"); - - b.Property("RoleId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("RoleId"); - - b.ToTable("AspNetRoleClaims", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ClaimType") - .HasColumnType("text"); - - b.Property("ClaimValue") - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.ToTable("AspNetUserClaims", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => - { - b.Property("LoginProvider") - .HasColumnType("text"); - - b.Property("ProviderKey") - .HasColumnType("text"); - - b.Property("ProviderDisplayName") - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasIndex("UserId"); - - b.ToTable("AspNetUserLogins", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("RoleId") - .HasColumnType("text"); - - b.HasKey("UserId", "RoleId"); - - b.HasIndex("RoleId"); - - b.ToTable("AspNetUserRoles", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("LoginProvider") - .HasColumnType("text"); - - b.Property("Name") - .HasColumnType("text"); - - b.Property("Value") - .HasColumnType("text"); - - b.HasKey("UserId", "LoginProvider", "Name"); - - b.ToTable("AspNetUserTokens", (string)null); - }); - - modelBuilder.Entity("Yavsc.Abstract.Identity.ClientProviderInfo", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("Avatar") - .IsRequired() - .HasColumnType("text"); - - b.Property("BillingAddressId") - .HasColumnType("bigint"); - - b.Property("EMail") - .IsRequired() - .HasColumnType("text"); - - b.Property("Phone") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserName") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("ClientProviderInfo"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Reason") - .IsRequired() - .HasColumnType("text"); - - b.Property("TargetId") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("TargetId"); - - b.ToTable("Ban"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.HasIndex("UserId"); - - b.ToTable("BlackListed"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId") - .HasColumnType("bigint"); - - b.Property("BlogPostId") - .HasColumnType("bigint"); - - b.HasKey("CircleId", "BlogPostId"); - - b.HasIndex("BlogPostId"); - - b.ToTable("CircleAuthorizationToBlogPost"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("ContactCredits") - .HasColumnType("bigint"); - - b.Property("Credits") - .HasColumnType("numeric"); - - b.HasKey("UserId"); - - b.ToTable("BankStatus"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("AccessFailedCount") - .HasColumnType("integer"); - - b.Property("AllowMonthlyEmail") - .HasColumnType("boolean"); - - b.Property("Avatar") - .IsRequired() - .ValueGeneratedOnAdd() - .HasMaxLength(512) - .HasColumnType("character varying(512)") - .HasDefaultValue("/images/Users/icon_user.png"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasColumnType("text"); - - b.Property("DedicatedGoogleCalendar") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("DiskQuota") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasDefaultValue(524288000L); - - b.Property("DiskUsage") - .HasColumnType("bigint"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("EmailConfirmed") - .HasColumnType("boolean"); - - b.Property("FullName") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("LockoutEnabled") - .HasColumnType("boolean"); - - b.Property("LockoutEnd") - .HasColumnType("timestamp with time zone"); - - b.Property("MaxFileSize") - .HasColumnType("bigint"); - - b.Property("NormalizedEmail") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("NormalizedUserName") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("PasswordHash") - .HasColumnType("text"); - - b.Property("PhoneNumber") - .HasColumnType("text"); - - b.Property("PhoneNumberConfirmed") - .HasColumnType("boolean"); - - b.Property("PostalAddressId") - .HasColumnType("bigint"); - - b.Property("SecurityStamp") - .HasColumnType("text"); - - b.Property("TwoFactorEnabled") - .HasColumnType("boolean"); - - b.Property("UserName") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.HasKey("Id"); - - b.HasAlternateKey("Email"); - - b.HasIndex("NormalizedEmail") - .HasDatabaseName("EmailIndex"); - - b.HasIndex("NormalizedUserName") - .IsUnique() - .HasDatabaseName("UserNameIndex"); - - b.HasIndex("PostalAddressId"); - - b.ToTable("AspNetUsers", (string)null); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("text"); - - b.Property("AccessTokenLifetime") - .HasColumnType("integer"); - - b.Property("Active") - .HasColumnType("boolean"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("character varying(128)"); - - b.Property("LogoutRedirectUri") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("RedirectUri") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("RefreshTokenLifeTime") - .HasColumnType("integer"); - - b.Property("Secret") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("Type") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("Applications"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.OAuth2Tokens", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("AccessToken") - .IsRequired() - .HasColumnType("text"); - - b.Property("Expiration") - .HasColumnType("timestamp with time zone"); - - b.Property("ExpiresIn") - .IsRequired() - .HasColumnType("text"); - - b.Property("RefreshToken") - .IsRequired() - .HasColumnType("text"); - - b.Property("TokenType") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("OAuth2Tokens"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("character varying(50)"); - - b.Property("ExpiresUtc") - .HasColumnType("timestamp with time zone"); - - b.Property("IssuedUtc") - .HasColumnType("timestamp with time zone"); - - b.Property("ProtectedTicket") - .IsRequired() - .HasColumnType("text"); - - b.Property("Subject") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("character varying(50)"); - - b.HasKey("Id"); - - b.ToTable("RefreshTokens"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Scope", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("character varying(1024)"); - - b.HasKey("Id"); - - b.ToTable("Scopes"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("BalanceId") - .IsRequired() - .HasColumnType("text"); - - b.Property("ExecDate") - .HasColumnType("timestamp with time zone"); - - b.Property("Impact") - .HasColumnType("numeric"); - - b.Property("Reason") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("BalanceId"); - - b.ToTable("BankBook"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AccountNumber") - .IsRequired() - .HasColumnType("text"); - - b.Property("BIC") - .IsRequired() - .HasColumnType("text"); - - b.Property("BankCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("BankedKey") - .HasColumnType("integer"); - - b.Property("IBAN") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.Property("WicketCode") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.ToTable("BankIdentity"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Count") - .HasColumnType("integer"); - - b.Property("Currency") - .IsRequired() - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("EstimateId") - .HasColumnType("bigint"); - - b.Property("EstimateTemplateId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("UnitaryCost") - .HasColumnType("numeric"); - - b.HasKey("Id"); - - b.HasIndex("EstimateId"); - - b.HasIndex("EstimateTemplateId"); - - b.ToTable("CommandLine"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AttachedFilesString") - .IsRequired() - .HasColumnType("text"); - - b.Property("AttachedGraphicsString") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientValidationDate") - .HasColumnType("timestamp with time zone"); - - b.Property("CommandId") - .HasColumnType("bigint"); - - b.Property("CommandType") - .IsRequired() - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("ProviderValidationDate") - .HasColumnType("timestamp with time zone"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ClientId"); - - b.HasIndex("CommandId"); - - b.HasIndex("OwnerId"); - - b.ToTable("Estimates"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("EstimateTemplates"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN") - .HasColumnType("text"); - - b.HasKey("SIREN"); - - b.ToTable("ExceptionsSIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AuthorId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Content") - .IsRequired() - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Lang") - .IsRequired() - .HasColumnType("text"); - - b.Property("Photo") - .IsRequired() - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("Visible") - .HasColumnType("boolean"); - - b.HasKey("Id"); - - b.HasIndex("AuthorId"); - - b.ToTable("Blogspot"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.Property("PostId") - .HasColumnType("bigint"); - - b.Property("TagId") - .HasColumnType("bigint"); - - b.HasKey("PostId", "TagId"); - - b.HasIndex("TagId"); - - b.ToTable("BlogTag"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AuthorId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Content") - .IsRequired() - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("ParentId") - .HasColumnType("bigint"); - - b.Property("PostId") - .HasColumnType("bigint"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("Visible") - .HasColumnType("boolean"); - - b.HasKey("Id"); - - b.HasIndex("AuthorId"); - - b.HasIndex("ParentId"); - - b.HasIndex("PostId"); - - b.ToTable("Comment"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Property("OwnerId") - .HasColumnType("text"); - - b.HasKey("OwnerId"); - - b.ToTable("Schedule"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("PeriodEnd") - .HasColumnType("timestamp with time zone"); - - b.Property("PeriodStart") - .HasColumnType("timestamp with time zone"); - - b.Property("Reccurence") - .HasColumnType("integer"); - - b.Property("ScheduleOwnerId") - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ScheduleOwnerId"); - - b.HasIndex("PeriodStart", "PeriodEnd"); - - b.ToTable("ScheduledEvent"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.Property("ConnectionId") - .HasColumnType("text"); - - b.Property("ApplicationUserId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Connected") - .HasColumnType("boolean"); - - b.Property("UserAgent") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("ConnectionId"); - - b.HasIndex("ApplicationUserId"); - - b.ToTable("ChatConnection"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.Property("Name") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("LatestJoinPart") - .HasColumnType("timestamp with time zone"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Topic") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Name"); - - b.HasIndex("OwnerId"); - - b.ToTable("ChatRoom"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomAccess", b => - { - b.Property("ChannelName") - .HasColumnType("text"); - - b.Property("UserId") - .HasColumnType("text"); - - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Level") - .HasColumnType("integer"); - - b.HasKey("ChannelName", "UserId"); - - b.HasIndex("UserId"); - - b.ToTable("ChatRoomAccess"); - }); - - modelBuilder.Entity("Yavsc.Models.Cratie.Option", b => - { - b.Property("Code") - .HasColumnType("text"); - - b.Property("CodeScrutin") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Code", "CodeScrutin"); - - b.ToTable("Option"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Blue") - .HasColumnType("smallint"); - - b.Property("Green") - .HasColumnType("smallint"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Red") - .HasColumnType("smallint"); - - b.HasKey("Id"); - - b.ToTable("Color"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("Summary") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("Form"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("ActionDistance") - .HasColumnType("integer"); - - b.Property("CarePrice") - .HasColumnType("numeric"); - - b.Property("FlatFeeDiscount") - .HasColumnType("numeric"); - - b.Property("HalfBalayagePrice") - .HasColumnType("numeric"); - - b.Property("HalfBrushingPrice") - .HasColumnType("numeric"); - - b.Property("HalfColorPrice") - .HasColumnType("numeric"); - - b.Property("HalfDefrisPrice") - .HasColumnType("numeric"); - - b.Property("HalfFoldingPrice") - .HasColumnType("numeric"); - - b.Property("HalfMechPrice") - .HasColumnType("numeric"); - - b.Property("HalfMultiColorPrice") - .HasColumnType("numeric"); - - b.Property("HalfPermanentPrice") - .HasColumnType("numeric"); - - b.Property("KidCutPrice") - .HasColumnType("numeric"); - - b.Property("LongBalayagePrice") - .HasColumnType("numeric"); - - b.Property("LongBrushingPrice") - .HasColumnType("numeric"); - - b.Property("LongColorPrice") - .HasColumnType("numeric"); - - b.Property("LongDefrisPrice") - .HasColumnType("numeric"); - - b.Property("LongFoldingPrice") - .HasColumnType("numeric"); - - b.Property("LongMechPrice") - .HasColumnType("numeric"); - - b.Property("LongMultiColorPrice") - .HasColumnType("numeric"); - - b.Property("LongPermanentPrice") - .HasColumnType("numeric"); - - b.Property("ManBrushPrice") - .HasColumnType("numeric"); - - b.Property("ManCutPrice") - .HasColumnType("numeric"); - - b.Property("ScheduleOwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("ShampooPrice") - .HasColumnType("numeric"); - - b.Property("ShortBalayagePrice") - .HasColumnType("numeric"); - - b.Property("ShortBrushingPrice") - .HasColumnType("numeric"); - - b.Property("ShortColorPrice") - .HasColumnType("numeric"); - - b.Property("ShortDefrisPrice") - .HasColumnType("numeric"); - - b.Property("ShortFoldingPrice") - .HasColumnType("numeric"); - - b.Property("ShortMechPrice") - .HasColumnType("numeric"); - - b.Property("ShortMultiColorPrice") - .HasColumnType("numeric"); - - b.Property("ShortPermanentPrice") - .HasColumnType("numeric"); - - b.Property("WomenHalfCutPrice") - .HasColumnType("numeric"); - - b.Property("WomenLongCutPrice") - .HasColumnType("numeric"); - - b.Property("WomenShortCutPrice") - .HasColumnType("numeric"); - - b.HasKey("UserId"); - - b.HasIndex("ScheduleOwnerId"); - - b.ToTable("BrusherProfile"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Accepted") - .HasColumnType("boolean"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("AdditionalInfo") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Decided") - .HasColumnType("boolean"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("EventDate") - .HasColumnType("timestamp with time zone"); - - b.Property("LocationId") - .HasColumnType("bigint"); - - b.Property("PaymentId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PrestationId") - .HasColumnType("bigint"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("SelectedProfileUserId") - .HasColumnType("text"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("LocationId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.HasIndex("PrestationId"); - - b.HasIndex("SelectedProfileUserId"); - - b.ToTable("HairCutQueries"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Accepted") - .HasColumnType("boolean"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Decided") - .HasColumnType("boolean"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("EventDate") - .HasColumnType("timestamp with time zone"); - - b.Property("LocationId") - .HasColumnType("bigint"); - - b.Property("PaymentId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("LocationId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.ToTable("HairMultiCutQueries"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Cares") - .HasColumnType("boolean"); - - b.Property("Cut") - .HasColumnType("boolean"); - - b.Property("Dressing") - .HasColumnType("integer"); - - b.Property("Gender") - .HasColumnType("integer"); - - b.Property("Length") - .HasColumnType("integer"); - - b.Property("Shampoo") - .HasColumnType("boolean"); - - b.Property("Tech") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("HairPrestation"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("PrestationId") - .HasColumnType("bigint"); - - b.Property("QueryId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("PrestationId"); - - b.HasIndex("QueryId"); - - b.ToTable("HairPrestationCollectionItem"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Brand") - .IsRequired() - .HasColumnType("text"); - - b.Property("ColorId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("ColorId"); - - b.ToTable("HairTaint"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.Property("TaintId") - .HasColumnType("bigint"); - - b.Property("PrestationId") - .HasColumnType("bigint"); - - b.HasKey("TaintId", "PrestationId"); - - b.HasIndex("PrestationId"); - - b.ToTable("HairTaintInstance"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Evolution.Feature", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("ShortName") - .IsRequired() - .HasColumnType("text"); - - b.Property("Status") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("Feature"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("FeatureId") - .HasColumnType("bigint"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("FeatureId"); - - b.ToTable("Bug"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.DeviceDeclaration", b => - { - b.Property("DeviceId") - .HasColumnType("text"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasColumnType("timestamp with time zone") - .HasDefaultValueSql("LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("LatestActivityUpdate") - .HasColumnType("timestamp with time zone"); - - b.Property("Model") - .IsRequired() - .HasColumnType("text"); - - b.Property("Platform") - .IsRequired() - .HasColumnType("text"); - - b.Property("Version") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("DeviceId"); - - b.HasIndex("DeviceOwnerId"); - - b.ToTable("DeviceDeclaration"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Depth") - .HasColumnType("numeric"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("Height") - .HasColumnType("numeric"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Price") - .HasColumnType("numeric"); - - b.Property("Public") - .HasColumnType("boolean"); - - b.Property("Weight") - .HasColumnType("numeric"); - - b.Property("Width") - .HasColumnType("numeric"); - - b.HasKey("Id"); - - b.ToTable("Products"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ContextId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Public") - .HasColumnType("boolean"); - - b.HasKey("Id"); - - b.HasIndex("ContextId"); - - b.ToTable("Services"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("For") - .HasColumnType("smallint"); - - b.Property("Message") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Sender") - .IsRequired() - .HasColumnType("text"); - - b.Property("Topic") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.ToTable("Announce"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DismissClicked", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("NotificationId") - .HasColumnType("bigint"); - - b.HasKey("UserId", "NotificationId"); - - b.HasIndex("NotificationId"); - - b.ToTable("DismissClicked"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Target") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("body") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("click_action") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("color") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("icon") - .IsRequired() - .ValueGeneratedOnAdd() - .HasMaxLength(512) - .HasColumnType("character varying(512)") - .HasDefaultValue("exclam"); - - b.Property("sound") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("tag") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("title") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("character varying(1024)"); - - b.HasKey("Id"); - - b.ToTable("Notification"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("character varying(255)"); - - b.HasKey("Id"); - - b.ToTable("Instrument"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.InstrumentRating", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("InstrumentId") - .HasColumnType("bigint"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.HasAlternateKey("InstrumentId", "OwnerId"); - - b.HasIndex("OwnerId"); - - b.ToTable("InstrumentRating"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId") - .HasColumnType("text"); - - b.Property("DjSettingsUserId") - .HasColumnType("text"); - - b.Property("GeneralSettingsUserId") - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.Property("TendencyId") - .HasColumnType("bigint"); - - b.HasKey("OwnerProfileId"); - - b.HasIndex("DjSettingsUserId"); - - b.HasIndex("GeneralSettingsUserId"); - - b.ToTable("MusicalPreference"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("character varying(255)"); - - b.HasKey("Id"); - - b.ToTable("MusicalTendency"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("SoundCloudId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("DjSettings"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("GeneralSettings"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId") - .HasColumnType("bigint"); - - b.Property("UserId") - .HasColumnType("text"); - - b.HasKey("InstrumentId", "UserId"); - - b.HasIndex("UserId"); - - b.ToTable("Instrumentation"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Property("CreationToken") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("ExecutorId") - .IsRequired() - .HasColumnType("text"); - - b.Property("OrderReference") - .IsRequired() - .HasColumnType("text"); - - b.Property("PaypalPayerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("State") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("CreationToken"); - - b.HasIndex("ExecutorId"); - - b.ToTable("PayPalPayment"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ApplicationUserId") - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Public") - .HasColumnType("boolean"); - - b.HasKey("Id"); - - b.HasIndex("ApplicationUserId"); - - b.ToTable("Circle"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId") - .HasColumnType("text"); - - b.Property("CircleId") - .HasColumnType("bigint"); - - b.HasKey("MemberId", "CircleId"); - - b.HasIndex("CircleId"); - - b.ToTable("CircleMembers"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId") - .HasColumnType("text"); - - b.Property("UserId") - .HasColumnType("text"); - - b.Property("AddressId") - .HasColumnType("bigint"); - - b.Property("ApplicationUserId") - .HasColumnType("text"); - - b.Property("EMail") - .IsRequired() - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("OwnerId", "UserId"); - - b.HasIndex("AddressId"); - - b.HasIndex("ApplicationUserId"); - - b.ToTable("Contact"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.Property("HRef") - .HasColumnType("text"); - - b.Property("Method") - .HasColumnType("text"); - - b.Property("BrusherProfileUserId") - .HasColumnType("text"); - - b.Property("ContentType") - .IsRequired() - .HasColumnType("text"); - - b.Property("PayPalPaymentCreationToken") - .HasColumnType("text"); - - b.Property("Rel") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("HRef", "Method"); - - b.HasIndex("BrusherProfileUserId"); - - b.HasIndex("PayPalPaymentCreationToken"); - - b.ToTable("HyperLink"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Address") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("Latitude") - .HasColumnType("double precision"); - - b.Property("Longitude") - .HasColumnType("double precision"); - - b.HasKey("Id"); - - b.ToTable("Locations"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostalAddress", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("City") - .IsRequired() - .HasColumnType("text"); - - b.Property("Country") - .IsRequired() - .HasColumnType("text"); - - b.Property("PostalCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("Province") - .IsRequired() - .HasColumnType("text"); - - b.Property("State") - .IsRequired() - .HasColumnType("text"); - - b.Property("Street1") - .IsRequired() - .HasColumnType("text"); - - b.Property("Street2") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("PostalAddress"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("Tags"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("SiteSkills"); - }); - - modelBuilder.Entity("Yavsc.Models.Streaming.LiveFlow", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("DifferedFileName") - .IsRequired() - .HasColumnType("text"); - - b.Property("MediaType") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Pitch") - .IsRequired() - .HasColumnType("text"); - - b.Property("SequenceNumber") - .HasColumnType("integer"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.ToTable("LiveFlow"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("Hidden") - .HasColumnType("boolean"); - - b.Property("ModeratorGroupName") - .IsRequired() - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("ParentCode") - .HasColumnType("text"); - - b.Property("Photo") - .IsRequired() - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.Property("SettingsClassName") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Code"); - - b.HasIndex("ParentCode"); - - b.ToTable("Activities"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("FormationSettingsUserId") - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("WorkingForId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("FormationSettingsUserId"); - - b.HasIndex("PerformerId"); - - b.HasIndex("WorkingForId"); - - b.ToTable("CoWorking"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ActionName") - .IsRequired() - .HasColumnType("text"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.ToTable("CommandForm"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId") - .HasColumnType("text"); - - b.Property("AcceptNotifications") - .HasColumnType("boolean"); - - b.Property("AcceptPublicContact") - .HasColumnType("boolean"); - - b.Property("Active") - .HasColumnType("boolean"); - - b.Property("MaxDailyCost") - .HasColumnType("integer"); - - b.Property("MinDailyCost") - .HasColumnType("integer"); - - b.Property("OrganizationAddressId") - .HasColumnType("bigint"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.Property("SIREN") - .IsRequired() - .HasColumnType("text"); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients") - .HasColumnType("boolean"); - - b.Property("WebSite") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("PerformerId"); - - b.HasIndex("OrganizationAddressId"); - - b.ToTable("Performers"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("DisplayName") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("FormationSettings"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Accepted") - .HasColumnType("boolean"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Decided") - .HasColumnType("boolean"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("EventDate") - .HasColumnType("timestamp with time zone"); - - b.Property("LocationId") - .HasColumnType("bigint"); - - b.Property("LocationType") - .HasColumnType("integer"); - - b.Property("PaymentId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("Reason") - .IsRequired() - .HasColumnType("text"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("LocationId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.ToTable("RdvQueries"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode") - .HasColumnType("text"); - - b.Property("UserId") - .HasColumnType("text"); - - b.Property("Weight") - .HasColumnType("integer"); - - b.HasKey("DoesCode", "UserId"); - - b.HasIndex("UserId"); - - b.ToTable("UserActivities"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Blog.BlogTrad", b => - { - b.Property("PostId") - .HasColumnType("bigint"); - - b.Property("Lang") - .HasColumnType("text"); - - b.Property("Body") - .IsRequired() - .HasColumnType("text"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.Property("TraducerId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("PostId", "Lang"); - - b.HasIndex("TraducerId"); - - b.ToTable("BlogTrad"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Calendar.Period", b => - { - b.Property("Start") - .HasColumnType("timestamp with time zone"); - - b.Property("End") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Start", "End"); - - b.ToTable("Period"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.EMailing.MailingTemplate", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("Body") - .IsRequired() - .HasMaxLength(65536) - .HasColumnType("character varying(65536)"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("ReplyToAddress") - .IsRequired() - .HasColumnType("text"); - - b.Property("ToSend") - .HasColumnType("integer"); - - b.Property("Topic") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("MailingTemplate"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Accepted") - .HasColumnType("boolean"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Decided") - .HasColumnType("boolean"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("GitId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PaymentId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.Property("Version") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("GitId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.ToTable("Project"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("ProjectId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("ProjectId"); - - b.ToTable("ProjectBuildConfiguration"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Branch") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Path") - .IsRequired() - .HasColumnType("text"); - - b.Property("Url") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.ToTable("GitRepositoryReference"); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null) - .WithMany() - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null) - .WithMany() - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "TargetUser") - .WithMany() - .HasForeignKey("TargetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TargetUser"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany("BlackList") - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost", "Target") - .WithMany("ACL") - .HasForeignKey("BlogPostId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Circle", "Allowed") - .WithMany() - .HasForeignKey("CircleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Allowed"); - - b.Navigation("Target"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithOne("AccountBalance") - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Relationship.Location", "PostalAddress") - .WithMany() - .HasForeignKey("PostalAddressId"); - - b.Navigation("PostalAddress"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance", "Balance") - .WithMany() - .HasForeignKey("BalanceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Balance"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany("BankInfo") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate", null) - .WithMany("Bill") - .HasForeignKey("EstimateId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate", null) - .WithMany("Bill") - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery", "Query") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Owner"); - - b.Navigation("Query"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Author") - .WithMany("Posts") - .HasForeignKey("AuthorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Author"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost", "Post") - .WithMany("Tags") - .HasForeignKey("PostId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Tag", "Tag") - .WithMany() - .HasForeignKey("TagId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Post"); - - b.Navigation("Tag"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Author") - .WithMany() - .HasForeignKey("AuthorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Blog.Comment", "Parent") - .WithMany("Children") - .HasForeignKey("ParentId"); - - b.HasOne("Yavsc.Models.Blog.BlogPost", "Post") - .WithMany("Comments") - .HasForeignKey("PostId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Author"); - - b.Navigation("Parent"); - - b.Navigation("Post"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule", null) - .WithMany("Events") - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Server.Models.Calendar.Period", "Period") - .WithMany() - .HasForeignKey("PeriodStart", "PeriodEnd") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Period"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany("Connections") - .HasForeignKey("ApplicationUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany("Rooms") - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomAccess", b => - { - b.HasOne("Yavsc.Models.Chat.ChatRoom", "Room") - .WithMany("Moderation") - .HasForeignKey("ChannelName") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany("RoomAccess") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Room"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule", "Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "BaseProfile") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("BaseProfile"); - - b.Navigation("Schedule"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Location", "Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation", "Prestation") - .WithMany() - .HasForeignKey("PrestationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.BrusherProfile", "SelectedProfile") - .WithMany() - .HasForeignKey("SelectedProfileUserId"); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("Location"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Prestation"); - - b.Navigation("Regularisation"); - - b.Navigation("SelectedProfile"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Location", "Location") - .WithMany() - .HasForeignKey("LocationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("Location"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Regularisation"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation", "Prestation") - .WithMany() - .HasForeignKey("PrestationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery", "Query") - .WithMany("Prestations") - .HasForeignKey("QueryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Prestation"); - - b.Navigation("Query"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color", "Color") - .WithMany() - .HasForeignKey("ColorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Color"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation", "Prestation") - .WithMany("Taints") - .HasForeignKey("PrestationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.HairTaint", "Taint") - .WithMany() - .HasForeignKey("TaintId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Prestation"); - - b.Navigation("Taint"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.HasOne("Yavsc.Models.IT.Evolution.Feature", "False") - .WithMany() - .HasForeignKey("FeatureId"); - - b.Navigation("False"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.DeviceDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "DeviceOwner") - .WithMany("DeviceDeclaration") - .HasForeignKey("DeviceOwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("DeviceOwner"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany("Services") - .HasForeignKey("ContextId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Context"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DismissClicked", b => - { - b.HasOne("Yavsc.Models.Messaging.Notification", "Notified") - .WithMany() - .HasForeignKey("NotificationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Notified"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.InstrumentRating", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument", "Instrument") - .WithMany() - .HasForeignKey("InstrumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "Profile") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Instrument"); - - b.Navigation("Profile"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings", null) - .WithMany("SoundColor") - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings", null) - .WithMany("SoundColor") - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument", "Tool") - .WithMany() - .HasForeignKey("InstrumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tool"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Executor") - .WithMany() - .HasForeignKey("ExecutorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Executor"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany("Circles") - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle", "Circle") - .WithMany("Members") - .HasForeignKey("CircleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Member") - .WithMany("Membership") - .HasForeignKey("MemberId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Circle"); - - b.Navigation("Member"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.Relationship.PostalAddress", "PostalAddress") - .WithMany() - .HasForeignKey("AddressId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany("Book") - .HasForeignKey("ApplicationUserId"); - - b.Navigation("PostalAddress"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.HasOne("Yavsc.Models.Haircut.BrusherProfile", null) - .WithMany("Links") - .HasForeignKey("BrusherProfileUserId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", null) - .WithMany("Links") - .HasForeignKey("PayPalPaymentCreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Streaming.LiveFlow", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Parent") - .WithMany("Children") - .HasForeignKey("ParentCode"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings", null) - .WithMany("CoWorking") - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "Performer") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "WorkingFor") - .WithMany() - .HasForeignKey("WorkingForId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Performer"); - - b.Navigation("WorkingFor"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany("Forms") - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Context"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location", "OrganizationAddress") - .WithMany() - .HasForeignKey("OrganizationAddressId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Performer") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("OrganizationAddress"); - - b.Navigation("Performer"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Location", "Location") - .WithMany() - .HasForeignKey("LocationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("Location"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Regularisation"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Does") - .WithMany() - .HasForeignKey("DoesCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "User") - .WithMany("Activity") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Does"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Blog.BlogTrad", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Traducer") - .WithMany() - .HasForeignKey("TraducerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Traducer"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", "Repository") - .WithMany() - .HasForeignKey("GitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Regularisation"); - - b.Navigation("Repository"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.HasOne("Yavsc.Server.Models.IT.Project", "TargetProject") - .WithMany("Configurations") - .HasForeignKey("ProjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TargetProject"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Navigation("AccountBalance") - .IsRequired(); - - b.Navigation("BankInfo"); - - b.Navigation("BlackList"); - - b.Navigation("Book"); - - b.Navigation("Circles"); - - b.Navigation("Connections"); - - b.Navigation("DeviceDeclaration"); - - b.Navigation("Membership"); - - b.Navigation("Posts"); - - b.Navigation("RoomAccess"); - - b.Navigation("Rooms"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Navigation("Bill"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Navigation("Bill"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.Navigation("ACL"); - - b.Navigation("Comments"); - - b.Navigation("Tags"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.Navigation("Children"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Navigation("Events"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.Navigation("Moderation"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Navigation("Links"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Navigation("Prestations"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Navigation("Taints"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Navigation("SoundColor"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Navigation("SoundColor"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Navigation("Links"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Navigation("Members"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Navigation("Children"); - - b.Navigation("Forms"); - - b.Navigation("Services"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Navigation("Activity"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Navigation("CoWorking"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.Navigation("Configurations"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/Yavsc.Server/Migrations/20241106133541_dismiss.cs b/src/Yavsc.Server/Migrations/20241106133541_dismiss.cs deleted file mode 100644 index 1b646d23..00000000 --- a/src/Yavsc.Server/Migrations/20241106133541_dismiss.cs +++ /dev/null @@ -1,439 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace Yavsc.Migrations -{ - /// - public partial class dismiss : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey( - name: "FK_Bug_Feature_FeatureId", - table: "Bug"); - - migrationBuilder.DropForeignKey( - name: "FK_HairCutQueries_Locations_LocationId", - table: "HairCutQueries"); - - migrationBuilder.DropTable( - name: "DimissClicked"); - - migrationBuilder.DropColumn( - name: "RejectedAt", - table: "RdvQueries"); - - migrationBuilder.DropColumn( - name: "RejectedAt", - table: "Project"); - - migrationBuilder.DropColumn( - name: "RejectedAt", - table: "HairMultiCutQueries"); - - migrationBuilder.DropColumn( - name: "RejectedAt", - table: "HairCutQueries"); - - migrationBuilder.DropColumn( - name: "DateCreated", - table: "AspNetUsers"); - - migrationBuilder.DropColumn( - name: "DateModified", - table: "AspNetUsers"); - - migrationBuilder.DropColumn( - name: "UserCreated", - table: "AspNetUsers"); - - migrationBuilder.DropColumn( - name: "UserModified", - table: "AspNetUsers"); - - migrationBuilder.RenameColumn( - name: "Rejected", - table: "RdvQueries", - newName: "Decided"); - - migrationBuilder.RenameColumn( - name: "Rejected", - table: "Project", - newName: "Decided"); - - migrationBuilder.RenameColumn( - name: "Rejected", - table: "HairMultiCutQueries", - newName: "Decided"); - - migrationBuilder.RenameColumn( - name: "Rejected", - table: "HairCutQueries", - newName: "Decided"); - - migrationBuilder.AddColumn( - name: "Accepted", - table: "RdvQueries", - type: "boolean", - nullable: false, - defaultValue: false); - - migrationBuilder.AddColumn( - name: "Accepted", - table: "Project", - type: "boolean", - nullable: false, - defaultValue: false); - - migrationBuilder.AddColumn( - name: "Accepted", - table: "HairMultiCutQueries", - type: "boolean", - nullable: false, - defaultValue: false); - - migrationBuilder.AlterColumn( - name: "LocationId", - table: "HairCutQueries", - type: "bigint", - nullable: true, - oldClrType: typeof(long), - oldType: "bigint"); - - migrationBuilder.AddColumn( - name: "Accepted", - table: "HairCutQueries", - type: "boolean", - nullable: false, - defaultValue: false); - - migrationBuilder.AlterColumn( - name: "FeatureId", - table: "Bug", - type: "bigint", - nullable: true, - oldClrType: typeof(long), - oldType: "bigint"); - - migrationBuilder.AlterColumn( - name: "Secret", - table: "Applications", - type: "character varying(512)", - maxLength: 512, - nullable: false, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "RedirectUri", - table: "Applications", - type: "character varying(512)", - maxLength: 512, - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "LogoutRedirectUri", - table: "Applications", - type: "character varying(512)", - maxLength: 512, - nullable: false, - oldClrType: typeof(string), - oldType: "character varying(100)", - oldMaxLength: 100); - - migrationBuilder.AlterColumn( - name: "DisplayName", - table: "Applications", - type: "character varying(128)", - maxLength: 128, - nullable: false, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AddColumn( - name: "AccessTokenLifetime", - table: "Applications", - type: "integer", - nullable: false, - defaultValue: 0); - - migrationBuilder.CreateTable( - name: "DismissClicked", - columns: table => new - { - UserId = table.Column(type: "text", nullable: false), - NotificationId = table.Column(type: "bigint", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_DismissClicked", x => new { x.UserId, x.NotificationId }); - table.ForeignKey( - name: "FK_DismissClicked_AspNetUsers_UserId", - column: x => x.UserId, - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - table.ForeignKey( - name: "FK_DismissClicked_Notification_NotificationId", - column: x => x.NotificationId, - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Scopes", - columns: table => new - { - Id = table.Column(type: "text", nullable: false), - Description = table.Column(type: "character varying(1024)", maxLength: 1024, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Scopes", x => x.Id); - }); - - migrationBuilder.CreateIndex( - name: "IX_DismissClicked_NotificationId", - table: "DismissClicked", - column: "NotificationId"); - - migrationBuilder.AddForeignKey( - name: "FK_Bug_Feature_FeatureId", - table: "Bug", - column: "FeatureId", - principalTable: "Feature", - principalColumn: "Id"); - - migrationBuilder.AddForeignKey( - name: "FK_HairCutQueries_Locations_LocationId", - table: "HairCutQueries", - column: "LocationId", - principalTable: "Locations", - principalColumn: "Id"); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey( - name: "FK_Bug_Feature_FeatureId", - table: "Bug"); - - migrationBuilder.DropForeignKey( - name: "FK_HairCutQueries_Locations_LocationId", - table: "HairCutQueries"); - - migrationBuilder.DropTable( - name: "DismissClicked"); - - migrationBuilder.DropTable( - name: "Scopes"); - - migrationBuilder.DropColumn( - name: "Accepted", - table: "RdvQueries"); - - migrationBuilder.DropColumn( - name: "Accepted", - table: "Project"); - - migrationBuilder.DropColumn( - name: "Accepted", - table: "HairMultiCutQueries"); - - migrationBuilder.DropColumn( - name: "Accepted", - table: "HairCutQueries"); - - migrationBuilder.DropColumn( - name: "AccessTokenLifetime", - table: "Applications"); - - migrationBuilder.RenameColumn( - name: "Decided", - table: "RdvQueries", - newName: "Rejected"); - - migrationBuilder.RenameColumn( - name: "Decided", - table: "Project", - newName: "Rejected"); - - migrationBuilder.RenameColumn( - name: "Decided", - table: "HairMultiCutQueries", - newName: "Rejected"); - - migrationBuilder.RenameColumn( - name: "Decided", - table: "HairCutQueries", - newName: "Rejected"); - - migrationBuilder.AddColumn( - name: "RejectedAt", - table: "RdvQueries", - type: "timestamp with time zone", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "RejectedAt", - table: "Project", - type: "timestamp with time zone", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "RejectedAt", - table: "HairMultiCutQueries", - type: "timestamp with time zone", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AlterColumn( - name: "LocationId", - table: "HairCutQueries", - type: "bigint", - nullable: false, - defaultValue: 0L, - oldClrType: typeof(long), - oldType: "bigint", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "RejectedAt", - table: "HairCutQueries", - type: "timestamp with time zone", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AlterColumn( - name: "FeatureId", - table: "Bug", - type: "bigint", - nullable: false, - defaultValue: 0L, - oldClrType: typeof(long), - oldType: "bigint", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "DateCreated", - table: "AspNetUsers", - type: "timestamp with time zone", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "DateModified", - table: "AspNetUsers", - type: "timestamp with time zone", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "UserCreated", - table: "AspNetUsers", - type: "text", - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "UserModified", - table: "AspNetUsers", - type: "text", - nullable: false, - defaultValue: ""); - - migrationBuilder.AlterColumn( - name: "Secret", - table: "Applications", - type: "text", - nullable: false, - oldClrType: typeof(string), - oldType: "character varying(512)", - oldMaxLength: 512); - - migrationBuilder.AlterColumn( - name: "RedirectUri", - table: "Applications", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "character varying(512)", - oldMaxLength: 512, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "LogoutRedirectUri", - table: "Applications", - type: "character varying(100)", - maxLength: 100, - nullable: false, - oldClrType: typeof(string), - oldType: "character varying(512)", - oldMaxLength: 512); - - migrationBuilder.AlterColumn( - name: "DisplayName", - table: "Applications", - type: "text", - nullable: false, - oldClrType: typeof(string), - oldType: "character varying(128)", - oldMaxLength: 128); - - migrationBuilder.CreateTable( - name: "DimissClicked", - columns: table => new - { - UserId = table.Column(type: "text", nullable: false), - NotificationId = table.Column(type: "bigint", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_DimissClicked", x => new { x.UserId, x.NotificationId }); - table.ForeignKey( - name: "FK_DimissClicked_AspNetUsers_UserId", - column: x => x.UserId, - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - table.ForeignKey( - name: "FK_DimissClicked_Notification_NotificationId", - column: x => x.NotificationId, - principalTable: "Notification", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateIndex( - name: "IX_DimissClicked_NotificationId", - table: "DimissClicked", - column: "NotificationId"); - - migrationBuilder.AddForeignKey( - name: "FK_Bug_Feature_FeatureId", - table: "Bug", - column: "FeatureId", - principalTable: "Feature", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_HairCutQueries_Locations_LocationId", - table: "HairCutQueries", - column: "LocationId", - principalTable: "Locations", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - } -} diff --git a/src/Yavsc.Server/Migrations/20241214154207_commentReceiver.Designer.cs b/src/Yavsc.Server/Migrations/20241214154207_commentReceiver.Designer.cs deleted file mode 100644 index bdca338d..00000000 --- a/src/Yavsc.Server/Migrations/20241214154207_commentReceiver.Designer.cs +++ /dev/null @@ -1,3519 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; -using Yavsc.Models; - -#nullable disable - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20241214154207_commentReceiver")] - partial class commentReceiver - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "8.0.2") - .HasAnnotation("Relational:MaxIdentifierLength", 63); - - NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasColumnType("text"); - - b.Property("Name") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("NormalizedName") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .IsUnique() - .HasDatabaseName("RoleNameIndex"); - - b.ToTable("AspNetRoles", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ClaimType") - .HasColumnType("text"); - - b.Property("ClaimValue") - .HasColumnType("text"); - - b.Property("RoleId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("RoleId"); - - b.ToTable("AspNetRoleClaims", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ClaimType") - .HasColumnType("text"); - - b.Property("ClaimValue") - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.ToTable("AspNetUserClaims", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => - { - b.Property("LoginProvider") - .HasColumnType("text"); - - b.Property("ProviderKey") - .HasColumnType("text"); - - b.Property("ProviderDisplayName") - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasIndex("UserId"); - - b.ToTable("AspNetUserLogins", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("RoleId") - .HasColumnType("text"); - - b.HasKey("UserId", "RoleId"); - - b.HasIndex("RoleId"); - - b.ToTable("AspNetUserRoles", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("LoginProvider") - .HasColumnType("text"); - - b.Property("Name") - .HasColumnType("text"); - - b.Property("Value") - .HasColumnType("text"); - - b.HasKey("UserId", "LoginProvider", "Name"); - - b.ToTable("AspNetUserTokens", (string)null); - }); - - modelBuilder.Entity("Yavsc.Abstract.Identity.ClientProviderInfo", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("Avatar") - .IsRequired() - .HasColumnType("text"); - - b.Property("BillingAddressId") - .HasColumnType("bigint"); - - b.Property("EMail") - .IsRequired() - .HasColumnType("text"); - - b.Property("Phone") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserName") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("ClientProviderInfo"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Reason") - .IsRequired() - .HasColumnType("text"); - - b.Property("TargetId") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("TargetId"); - - b.ToTable("Ban"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.HasIndex("UserId"); - - b.ToTable("BlackListed"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId") - .HasColumnType("bigint"); - - b.Property("BlogPostId") - .HasColumnType("bigint"); - - b.HasKey("CircleId", "BlogPostId"); - - b.HasIndex("BlogPostId"); - - b.ToTable("CircleAuthorizationToBlogPost"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("ContactCredits") - .HasColumnType("bigint"); - - b.Property("Credits") - .HasColumnType("numeric"); - - b.HasKey("UserId"); - - b.ToTable("BankStatus"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("AccessFailedCount") - .HasColumnType("integer"); - - b.Property("AllowMonthlyEmail") - .HasColumnType("boolean"); - - b.Property("Avatar") - .IsRequired() - .ValueGeneratedOnAdd() - .HasMaxLength(512) - .HasColumnType("character varying(512)") - .HasDefaultValue("/images/Users/icon_user.png"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasColumnType("text"); - - b.Property("DedicatedGoogleCalendar") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("DiskQuota") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasDefaultValue(524288000L); - - b.Property("DiskUsage") - .HasColumnType("bigint"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("EmailConfirmed") - .HasColumnType("boolean"); - - b.Property("FullName") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("LockoutEnabled") - .HasColumnType("boolean"); - - b.Property("LockoutEnd") - .HasColumnType("timestamp with time zone"); - - b.Property("MaxFileSize") - .HasColumnType("bigint"); - - b.Property("NormalizedEmail") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("NormalizedUserName") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("PasswordHash") - .HasColumnType("text"); - - b.Property("PhoneNumber") - .HasColumnType("text"); - - b.Property("PhoneNumberConfirmed") - .HasColumnType("boolean"); - - b.Property("PostalAddressId") - .HasColumnType("bigint"); - - b.Property("SecurityStamp") - .HasColumnType("text"); - - b.Property("TwoFactorEnabled") - .HasColumnType("boolean"); - - b.Property("UserName") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.HasKey("Id"); - - b.HasAlternateKey("Email"); - - b.HasIndex("NormalizedEmail") - .HasDatabaseName("EmailIndex"); - - b.HasIndex("NormalizedUserName") - .IsUnique() - .HasDatabaseName("UserNameIndex"); - - b.HasIndex("PostalAddressId"); - - b.ToTable("AspNetUsers", (string)null); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("text"); - - b.Property("AccessTokenLifetime") - .HasColumnType("integer"); - - b.Property("Active") - .HasColumnType("boolean"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("character varying(128)"); - - b.Property("LogoutRedirectUri") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("RedirectUri") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("RefreshTokenLifeTime") - .HasColumnType("integer"); - - b.Property("Secret") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("Type") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("Applications"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.OAuth2Tokens", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("AccessToken") - .IsRequired() - .HasColumnType("text"); - - b.Property("Expiration") - .HasColumnType("timestamp with time zone"); - - b.Property("ExpiresIn") - .IsRequired() - .HasColumnType("text"); - - b.Property("RefreshToken") - .IsRequired() - .HasColumnType("text"); - - b.Property("TokenType") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("OAuth2Tokens"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("character varying(50)"); - - b.Property("ExpiresUtc") - .HasColumnType("timestamp with time zone"); - - b.Property("IssuedUtc") - .HasColumnType("timestamp with time zone"); - - b.Property("ProtectedTicket") - .IsRequired() - .HasColumnType("text"); - - b.Property("Subject") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("character varying(50)"); - - b.HasKey("Id"); - - b.ToTable("RefreshTokens"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Scope", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("character varying(1024)"); - - b.HasKey("Id"); - - b.ToTable("Scopes"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("BalanceId") - .IsRequired() - .HasColumnType("text"); - - b.Property("ExecDate") - .HasColumnType("timestamp with time zone"); - - b.Property("Impact") - .HasColumnType("numeric"); - - b.Property("Reason") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("BalanceId"); - - b.ToTable("BankBook"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AccountNumber") - .IsRequired() - .HasColumnType("text"); - - b.Property("BIC") - .IsRequired() - .HasColumnType("text"); - - b.Property("BankCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("BankedKey") - .HasColumnType("integer"); - - b.Property("IBAN") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.Property("WicketCode") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.ToTable("BankIdentity"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Count") - .HasColumnType("integer"); - - b.Property("Currency") - .IsRequired() - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("EstimateId") - .HasColumnType("bigint"); - - b.Property("EstimateTemplateId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("UnitaryCost") - .HasColumnType("numeric"); - - b.HasKey("Id"); - - b.HasIndex("EstimateId"); - - b.HasIndex("EstimateTemplateId"); - - b.ToTable("CommandLine"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AttachedFilesString") - .IsRequired() - .HasColumnType("text"); - - b.Property("AttachedGraphicsString") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientValidationDate") - .HasColumnType("timestamp with time zone"); - - b.Property("CommandId") - .HasColumnType("bigint"); - - b.Property("CommandType") - .IsRequired() - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("ProviderValidationDate") - .HasColumnType("timestamp with time zone"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ClientId"); - - b.HasIndex("CommandId"); - - b.HasIndex("OwnerId"); - - b.ToTable("Estimates"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("EstimateTemplates"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN") - .HasColumnType("text"); - - b.HasKey("SIREN"); - - b.ToTable("ExceptionsSIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AuthorId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Content") - .IsRequired() - .HasMaxLength(56224) - .HasColumnType("character varying(56224)"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Photo") - .HasMaxLength(1024) - .HasColumnType("character varying(1024)"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.Property("Title") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("character varying(1024)"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("Visible") - .HasColumnType("boolean"); - - b.HasKey("Id"); - - b.HasIndex("AuthorId"); - - b.ToTable("Blogspot"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.Property("PostId") - .HasColumnType("bigint"); - - b.Property("TagId") - .HasColumnType("bigint"); - - b.HasKey("PostId", "TagId"); - - b.HasIndex("TagId"); - - b.ToTable("BlogTag"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AuthorId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Content") - .IsRequired() - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("ParentId") - .HasColumnType("bigint"); - - b.Property("PostId") - .HasColumnType("bigint"); - - b.Property("ReceiverId") - .HasColumnType("bigint"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("Visible") - .HasColumnType("boolean"); - - b.HasKey("Id"); - - b.HasIndex("AuthorId"); - - b.HasIndex("ParentId"); - - b.HasIndex("PostId"); - - b.ToTable("Comment"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Property("OwnerId") - .HasColumnType("text"); - - b.HasKey("OwnerId"); - - b.ToTable("Schedule"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("PeriodEnd") - .HasColumnType("timestamp with time zone"); - - b.Property("PeriodStart") - .HasColumnType("timestamp with time zone"); - - b.Property("Reccurence") - .HasColumnType("integer"); - - b.Property("ScheduleOwnerId") - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ScheduleOwnerId"); - - b.HasIndex("PeriodStart", "PeriodEnd"); - - b.ToTable("ScheduledEvent"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.Property("ConnectionId") - .HasColumnType("text"); - - b.Property("ApplicationUserId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Connected") - .HasColumnType("boolean"); - - b.Property("UserAgent") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("ConnectionId"); - - b.HasIndex("ApplicationUserId"); - - b.ToTable("ChatConnection"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.Property("Name") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("LatestJoinPart") - .HasColumnType("timestamp with time zone"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Topic") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Name"); - - b.HasIndex("OwnerId"); - - b.ToTable("ChatRoom"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomAccess", b => - { - b.Property("ChannelName") - .HasColumnType("text"); - - b.Property("UserId") - .HasColumnType("text"); - - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Level") - .HasColumnType("integer"); - - b.HasKey("ChannelName", "UserId"); - - b.HasIndex("UserId"); - - b.ToTable("ChatRoomAccess"); - }); - - modelBuilder.Entity("Yavsc.Models.Cratie.Option", b => - { - b.Property("Code") - .HasColumnType("text"); - - b.Property("CodeScrutin") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Code", "CodeScrutin"); - - b.ToTable("Option"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Blue") - .HasColumnType("smallint"); - - b.Property("Green") - .HasColumnType("smallint"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Red") - .HasColumnType("smallint"); - - b.HasKey("Id"); - - b.ToTable("Color"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("Summary") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("Form"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("ActionDistance") - .HasColumnType("integer"); - - b.Property("CarePrice") - .HasColumnType("numeric"); - - b.Property("FlatFeeDiscount") - .HasColumnType("numeric"); - - b.Property("HalfBalayagePrice") - .HasColumnType("numeric"); - - b.Property("HalfBrushingPrice") - .HasColumnType("numeric"); - - b.Property("HalfColorPrice") - .HasColumnType("numeric"); - - b.Property("HalfDefrisPrice") - .HasColumnType("numeric"); - - b.Property("HalfFoldingPrice") - .HasColumnType("numeric"); - - b.Property("HalfMechPrice") - .HasColumnType("numeric"); - - b.Property("HalfMultiColorPrice") - .HasColumnType("numeric"); - - b.Property("HalfPermanentPrice") - .HasColumnType("numeric"); - - b.Property("KidCutPrice") - .HasColumnType("numeric"); - - b.Property("LongBalayagePrice") - .HasColumnType("numeric"); - - b.Property("LongBrushingPrice") - .HasColumnType("numeric"); - - b.Property("LongColorPrice") - .HasColumnType("numeric"); - - b.Property("LongDefrisPrice") - .HasColumnType("numeric"); - - b.Property("LongFoldingPrice") - .HasColumnType("numeric"); - - b.Property("LongMechPrice") - .HasColumnType("numeric"); - - b.Property("LongMultiColorPrice") - .HasColumnType("numeric"); - - b.Property("LongPermanentPrice") - .HasColumnType("numeric"); - - b.Property("ManBrushPrice") - .HasColumnType("numeric"); - - b.Property("ManCutPrice") - .HasColumnType("numeric"); - - b.Property("ScheduleOwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("ShampooPrice") - .HasColumnType("numeric"); - - b.Property("ShortBalayagePrice") - .HasColumnType("numeric"); - - b.Property("ShortBrushingPrice") - .HasColumnType("numeric"); - - b.Property("ShortColorPrice") - .HasColumnType("numeric"); - - b.Property("ShortDefrisPrice") - .HasColumnType("numeric"); - - b.Property("ShortFoldingPrice") - .HasColumnType("numeric"); - - b.Property("ShortMechPrice") - .HasColumnType("numeric"); - - b.Property("ShortMultiColorPrice") - .HasColumnType("numeric"); - - b.Property("ShortPermanentPrice") - .HasColumnType("numeric"); - - b.Property("WomenHalfCutPrice") - .HasColumnType("numeric"); - - b.Property("WomenLongCutPrice") - .HasColumnType("numeric"); - - b.Property("WomenShortCutPrice") - .HasColumnType("numeric"); - - b.HasKey("UserId"); - - b.HasIndex("ScheduleOwnerId"); - - b.ToTable("BrusherProfile"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Accepted") - .HasColumnType("boolean"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("AdditionalInfo") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Decided") - .HasColumnType("boolean"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("EventDate") - .HasColumnType("timestamp with time zone"); - - b.Property("LocationId") - .HasColumnType("bigint"); - - b.Property("PaymentId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PrestationId") - .HasColumnType("bigint"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("SelectedProfileUserId") - .HasColumnType("text"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("LocationId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.HasIndex("PrestationId"); - - b.HasIndex("SelectedProfileUserId"); - - b.ToTable("HairCutQueries"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Accepted") - .HasColumnType("boolean"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Decided") - .HasColumnType("boolean"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("EventDate") - .HasColumnType("timestamp with time zone"); - - b.Property("LocationId") - .HasColumnType("bigint"); - - b.Property("PaymentId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("LocationId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.ToTable("HairMultiCutQueries"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Cares") - .HasColumnType("boolean"); - - b.Property("Cut") - .HasColumnType("boolean"); - - b.Property("Dressing") - .HasColumnType("integer"); - - b.Property("Gender") - .HasColumnType("integer"); - - b.Property("Length") - .HasColumnType("integer"); - - b.Property("Shampoo") - .HasColumnType("boolean"); - - b.Property("Tech") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("HairPrestation"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("PrestationId") - .HasColumnType("bigint"); - - b.Property("QueryId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("PrestationId"); - - b.HasIndex("QueryId"); - - b.ToTable("HairPrestationCollectionItem"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Brand") - .IsRequired() - .HasColumnType("text"); - - b.Property("ColorId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("ColorId"); - - b.ToTable("HairTaint"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.Property("TaintId") - .HasColumnType("bigint"); - - b.Property("PrestationId") - .HasColumnType("bigint"); - - b.HasKey("TaintId", "PrestationId"); - - b.HasIndex("PrestationId"); - - b.ToTable("HairTaintInstance"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Evolution.Feature", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("ShortName") - .IsRequired() - .HasColumnType("text"); - - b.Property("Status") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("Feature"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("FeatureId") - .HasColumnType("bigint"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("FeatureId"); - - b.ToTable("Bug"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.DeviceDeclaration", b => - { - b.Property("DeviceId") - .HasColumnType("text"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasColumnType("timestamp with time zone") - .HasDefaultValueSql("LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("LatestActivityUpdate") - .HasColumnType("timestamp with time zone"); - - b.Property("Model") - .IsRequired() - .HasColumnType("text"); - - b.Property("Platform") - .IsRequired() - .HasColumnType("text"); - - b.Property("Version") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("DeviceId"); - - b.HasIndex("DeviceOwnerId"); - - b.ToTable("DeviceDeclaration"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Depth") - .HasColumnType("numeric"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("Height") - .HasColumnType("numeric"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Price") - .HasColumnType("numeric"); - - b.Property("Public") - .HasColumnType("boolean"); - - b.Property("Weight") - .HasColumnType("numeric"); - - b.Property("Width") - .HasColumnType("numeric"); - - b.HasKey("Id"); - - b.ToTable("Products"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ContextId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Public") - .HasColumnType("boolean"); - - b.HasKey("Id"); - - b.HasIndex("ContextId"); - - b.ToTable("Services"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("For") - .HasColumnType("smallint"); - - b.Property("Message") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Sender") - .IsRequired() - .HasColumnType("text"); - - b.Property("Topic") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.ToTable("Announce"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DismissClicked", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("NotificationId") - .HasColumnType("bigint"); - - b.HasKey("UserId", "NotificationId"); - - b.HasIndex("NotificationId"); - - b.ToTable("DismissClicked"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Target") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("body") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("click_action") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("color") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("icon") - .IsRequired() - .ValueGeneratedOnAdd() - .HasMaxLength(512) - .HasColumnType("character varying(512)") - .HasDefaultValue("exclam"); - - b.Property("sound") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("tag") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("title") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("character varying(1024)"); - - b.HasKey("Id"); - - b.ToTable("Notification"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("character varying(255)"); - - b.HasKey("Id"); - - b.ToTable("Instrument"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.InstrumentRating", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("InstrumentId") - .HasColumnType("bigint"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.HasAlternateKey("InstrumentId", "OwnerId"); - - b.HasIndex("OwnerId"); - - b.ToTable("InstrumentRating"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId") - .HasColumnType("text"); - - b.Property("DjSettingsUserId") - .HasColumnType("text"); - - b.Property("GeneralSettingsUserId") - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.Property("TendencyId") - .HasColumnType("bigint"); - - b.HasKey("OwnerProfileId"); - - b.HasIndex("DjSettingsUserId"); - - b.HasIndex("GeneralSettingsUserId"); - - b.ToTable("MusicalPreference"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("character varying(255)"); - - b.HasKey("Id"); - - b.ToTable("MusicalTendency"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("SoundCloudId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("DjSettings"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("GeneralSettings"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId") - .HasColumnType("bigint"); - - b.Property("UserId") - .HasColumnType("text"); - - b.HasKey("InstrumentId", "UserId"); - - b.HasIndex("UserId"); - - b.ToTable("Instrumentation"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Property("CreationToken") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("ExecutorId") - .IsRequired() - .HasColumnType("text"); - - b.Property("OrderReference") - .IsRequired() - .HasColumnType("text"); - - b.Property("PaypalPayerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("State") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("CreationToken"); - - b.HasIndex("ExecutorId"); - - b.ToTable("PayPalPayment"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ApplicationUserId") - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Public") - .HasColumnType("boolean"); - - b.HasKey("Id"); - - b.HasIndex("ApplicationUserId"); - - b.ToTable("Circle"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId") - .HasColumnType("text"); - - b.Property("CircleId") - .HasColumnType("bigint"); - - b.HasKey("MemberId", "CircleId"); - - b.HasIndex("CircleId"); - - b.ToTable("CircleMembers"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId") - .HasColumnType("text"); - - b.Property("UserId") - .HasColumnType("text"); - - b.Property("AddressId") - .HasColumnType("bigint"); - - b.Property("ApplicationUserId") - .HasColumnType("text"); - - b.Property("EMail") - .IsRequired() - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("OwnerId", "UserId"); - - b.HasIndex("AddressId"); - - b.HasIndex("ApplicationUserId"); - - b.ToTable("Contact"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.Property("HRef") - .HasColumnType("text"); - - b.Property("Method") - .HasColumnType("text"); - - b.Property("BrusherProfileUserId") - .HasColumnType("text"); - - b.Property("ContentType") - .IsRequired() - .HasColumnType("text"); - - b.Property("PayPalPaymentCreationToken") - .HasColumnType("text"); - - b.Property("Rel") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("HRef", "Method"); - - b.HasIndex("BrusherProfileUserId"); - - b.HasIndex("PayPalPaymentCreationToken"); - - b.ToTable("HyperLink"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Address") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("Latitude") - .HasColumnType("double precision"); - - b.Property("Longitude") - .HasColumnType("double precision"); - - b.HasKey("Id"); - - b.ToTable("Locations"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostalAddress", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("City") - .IsRequired() - .HasColumnType("text"); - - b.Property("Country") - .IsRequired() - .HasColumnType("text"); - - b.Property("PostalCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("Province") - .IsRequired() - .HasColumnType("text"); - - b.Property("State") - .IsRequired() - .HasColumnType("text"); - - b.Property("Street1") - .IsRequired() - .HasColumnType("text"); - - b.Property("Street2") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("PostalAddress"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("Tags"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("SiteSkills"); - }); - - modelBuilder.Entity("Yavsc.Models.Streaming.LiveFlow", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("DifferedFileName") - .IsRequired() - .HasColumnType("text"); - - b.Property("MediaType") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Pitch") - .IsRequired() - .HasColumnType("text"); - - b.Property("SequenceNumber") - .HasColumnType("integer"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.ToTable("LiveFlow"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("Hidden") - .HasColumnType("boolean"); - - b.Property("ModeratorGroupName") - .IsRequired() - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("ParentCode") - .HasColumnType("text"); - - b.Property("Photo") - .IsRequired() - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.Property("SettingsClassName") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Code"); - - b.HasIndex("ParentCode"); - - b.ToTable("Activities"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("FormationSettingsUserId") - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("WorkingForId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("FormationSettingsUserId"); - - b.HasIndex("PerformerId"); - - b.HasIndex("WorkingForId"); - - b.ToTable("CoWorking"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ActionName") - .IsRequired() - .HasColumnType("text"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.ToTable("CommandForm"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId") - .HasColumnType("text"); - - b.Property("AcceptNotifications") - .HasColumnType("boolean"); - - b.Property("AcceptPublicContact") - .HasColumnType("boolean"); - - b.Property("Active") - .HasColumnType("boolean"); - - b.Property("MaxDailyCost") - .HasColumnType("integer"); - - b.Property("MinDailyCost") - .HasColumnType("integer"); - - b.Property("OrganizationAddressId") - .HasColumnType("bigint"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.Property("SIREN") - .IsRequired() - .HasColumnType("text"); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients") - .HasColumnType("boolean"); - - b.Property("WebSite") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("PerformerId"); - - b.HasIndex("OrganizationAddressId"); - - b.ToTable("Performers"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("DisplayName") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("FormationSettings"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Accepted") - .HasColumnType("boolean"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Decided") - .HasColumnType("boolean"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("EventDate") - .HasColumnType("timestamp with time zone"); - - b.Property("LocationId") - .HasColumnType("bigint"); - - b.Property("LocationType") - .HasColumnType("integer"); - - b.Property("PaymentId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("Reason") - .IsRequired() - .HasColumnType("text"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("LocationId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.ToTable("RdvQueries"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode") - .HasColumnType("text"); - - b.Property("UserId") - .HasColumnType("text"); - - b.Property("Weight") - .HasColumnType("integer"); - - b.HasKey("DoesCode", "UserId"); - - b.HasIndex("UserId"); - - b.ToTable("UserActivities"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Calendar.Period", b => - { - b.Property("Start") - .HasColumnType("timestamp with time zone"); - - b.Property("End") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Start", "End"); - - b.ToTable("Period"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.EMailing.MailingTemplate", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("Body") - .IsRequired() - .HasMaxLength(65536) - .HasColumnType("character varying(65536)"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("ReplyToAddress") - .IsRequired() - .HasColumnType("text"); - - b.Property("ToSend") - .HasColumnType("integer"); - - b.Property("Topic") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("MailingTemplate"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Accepted") - .HasColumnType("boolean"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Decided") - .HasColumnType("boolean"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("GitId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PaymentId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.Property("Version") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("GitId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.ToTable("Project"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("ProjectId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("ProjectId"); - - b.ToTable("ProjectBuildConfiguration"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Branch") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Path") - .IsRequired() - .HasColumnType("text"); - - b.Property("Url") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.ToTable("GitRepositoryReference"); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null) - .WithMany() - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null) - .WithMany() - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "TargetUser") - .WithMany() - .HasForeignKey("TargetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TargetUser"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany("BlackList") - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost", "Target") - .WithMany("ACL") - .HasForeignKey("BlogPostId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Circle", "Allowed") - .WithMany() - .HasForeignKey("CircleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Allowed"); - - b.Navigation("Target"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithOne("AccountBalance") - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Relationship.Location", "PostalAddress") - .WithMany() - .HasForeignKey("PostalAddressId"); - - b.Navigation("PostalAddress"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance", "Balance") - .WithMany() - .HasForeignKey("BalanceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Balance"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany("BankInfo") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate", null) - .WithMany("Bill") - .HasForeignKey("EstimateId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate", null) - .WithMany("Bill") - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery", "Query") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Owner"); - - b.Navigation("Query"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Author") - .WithMany("Posts") - .HasForeignKey("AuthorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Author"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost", "Post") - .WithMany("Tags") - .HasForeignKey("PostId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Tag", "Tag") - .WithMany() - .HasForeignKey("TagId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Post"); - - b.Navigation("Tag"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Author") - .WithMany() - .HasForeignKey("AuthorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Blog.Comment", "Parent") - .WithMany("Children") - .HasForeignKey("ParentId"); - - b.HasOne("Yavsc.Models.Blog.BlogPost", "Post") - .WithMany("Comments") - .HasForeignKey("PostId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Author"); - - b.Navigation("Parent"); - - b.Navigation("Post"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule", null) - .WithMany("Events") - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Server.Models.Calendar.Period", "Period") - .WithMany() - .HasForeignKey("PeriodStart", "PeriodEnd") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Period"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany("Connections") - .HasForeignKey("ApplicationUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany("Rooms") - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomAccess", b => - { - b.HasOne("Yavsc.Models.Chat.ChatRoom", "Room") - .WithMany("Moderation") - .HasForeignKey("ChannelName") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany("RoomAccess") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Room"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule", "Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "BaseProfile") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("BaseProfile"); - - b.Navigation("Schedule"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Location", "Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation", "Prestation") - .WithMany() - .HasForeignKey("PrestationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.BrusherProfile", "SelectedProfile") - .WithMany() - .HasForeignKey("SelectedProfileUserId"); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("Location"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Prestation"); - - b.Navigation("Regularisation"); - - b.Navigation("SelectedProfile"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Location", "Location") - .WithMany() - .HasForeignKey("LocationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("Location"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Regularisation"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation", "Prestation") - .WithMany() - .HasForeignKey("PrestationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery", "Query") - .WithMany("Prestations") - .HasForeignKey("QueryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Prestation"); - - b.Navigation("Query"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color", "Color") - .WithMany() - .HasForeignKey("ColorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Color"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation", "Prestation") - .WithMany("Taints") - .HasForeignKey("PrestationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.HairTaint", "Taint") - .WithMany() - .HasForeignKey("TaintId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Prestation"); - - b.Navigation("Taint"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.HasOne("Yavsc.Models.IT.Evolution.Feature", "False") - .WithMany() - .HasForeignKey("FeatureId"); - - b.Navigation("False"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.DeviceDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "DeviceOwner") - .WithMany("DeviceDeclaration") - .HasForeignKey("DeviceOwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("DeviceOwner"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany("Services") - .HasForeignKey("ContextId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Context"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DismissClicked", b => - { - b.HasOne("Yavsc.Models.Messaging.Notification", "Notified") - .WithMany() - .HasForeignKey("NotificationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Notified"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.InstrumentRating", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument", "Instrument") - .WithMany() - .HasForeignKey("InstrumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "Profile") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Instrument"); - - b.Navigation("Profile"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings", null) - .WithMany("SoundColor") - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings", null) - .WithMany("SoundColor") - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument", "Tool") - .WithMany() - .HasForeignKey("InstrumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tool"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Executor") - .WithMany() - .HasForeignKey("ExecutorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Executor"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany("Circles") - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle", "Circle") - .WithMany("Members") - .HasForeignKey("CircleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Member") - .WithMany("Membership") - .HasForeignKey("MemberId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Circle"); - - b.Navigation("Member"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.Relationship.PostalAddress", "PostalAddress") - .WithMany() - .HasForeignKey("AddressId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany("Book") - .HasForeignKey("ApplicationUserId"); - - b.Navigation("PostalAddress"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.HasOne("Yavsc.Models.Haircut.BrusherProfile", null) - .WithMany("Links") - .HasForeignKey("BrusherProfileUserId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", null) - .WithMany("Links") - .HasForeignKey("PayPalPaymentCreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Streaming.LiveFlow", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Parent") - .WithMany("Children") - .HasForeignKey("ParentCode"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings", null) - .WithMany("CoWorking") - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "Performer") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "WorkingFor") - .WithMany() - .HasForeignKey("WorkingForId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Performer"); - - b.Navigation("WorkingFor"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany("Forms") - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Context"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location", "OrganizationAddress") - .WithMany() - .HasForeignKey("OrganizationAddressId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Performer") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("OrganizationAddress"); - - b.Navigation("Performer"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Location", "Location") - .WithMany() - .HasForeignKey("LocationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("Location"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Regularisation"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Does") - .WithMany() - .HasForeignKey("DoesCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "User") - .WithMany("Activity") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Does"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", "Repository") - .WithMany() - .HasForeignKey("GitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Regularisation"); - - b.Navigation("Repository"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.HasOne("Yavsc.Server.Models.IT.Project", "TargetProject") - .WithMany("Configurations") - .HasForeignKey("ProjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TargetProject"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Navigation("AccountBalance") - .IsRequired(); - - b.Navigation("BankInfo"); - - b.Navigation("BlackList"); - - b.Navigation("Book"); - - b.Navigation("Circles"); - - b.Navigation("Connections"); - - b.Navigation("DeviceDeclaration"); - - b.Navigation("Membership"); - - b.Navigation("Posts"); - - b.Navigation("RoomAccess"); - - b.Navigation("Rooms"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Navigation("Bill"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Navigation("Bill"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.Navigation("ACL"); - - b.Navigation("Comments"); - - b.Navigation("Tags"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.Navigation("Children"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Navigation("Events"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.Navigation("Moderation"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Navigation("Links"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Navigation("Prestations"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Navigation("Taints"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Navigation("SoundColor"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Navigation("SoundColor"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Navigation("Links"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Navigation("Members"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Navigation("Children"); - - b.Navigation("Forms"); - - b.Navigation("Services"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Navigation("Activity"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Navigation("CoWorking"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.Navigation("Configurations"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/Yavsc.Server/Migrations/20241214154207_commentReceiver.cs b/src/Yavsc.Server/Migrations/20241214154207_commentReceiver.cs deleted file mode 100644 index d8c249d8..00000000 --- a/src/Yavsc.Server/Migrations/20241214154207_commentReceiver.cs +++ /dev/null @@ -1,125 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace Yavsc.Migrations -{ - /// - public partial class commentReceiver : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "BlogTrad"); - - migrationBuilder.DropColumn( - name: "Lang", - table: "Blogspot"); - - migrationBuilder.RenameColumn( - name: "PostId", - table: "Comment", - newName: "ReceiverId" - ); - - migrationBuilder.AlterColumn( - name: "Title", - table: "Blogspot", - type: "character varying(1024)", - maxLength: 1024, - nullable: false, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "Photo", - table: "Blogspot", - type: "character varying(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "Content", - table: "Blogspot", - type: "character varying(56224)", - maxLength: 56224, - nullable: false, - oldClrType: typeof(string), - oldType: "text"); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.RenameColumn( - name: "ReceiverId", - table: "Comment", - newName: "PostId"); - - migrationBuilder.AlterColumn( - name: "Title", - table: "Blogspot", - type: "text", - nullable: false, - oldClrType: typeof(string), - oldType: "character varying(1024)", - oldMaxLength: 1024); - - migrationBuilder.AlterColumn( - name: "Photo", - table: "Blogspot", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "character varying(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Content", - table: "Blogspot", - type: "text", - nullable: false, - oldClrType: typeof(string), - oldType: "character varying(56224)", - oldMaxLength: 56224); - - migrationBuilder.AddColumn( - name: "Lang", - table: "Blogspot", - type: "text", - nullable: false, - defaultValue: ""); - - migrationBuilder.CreateTable( - name: "BlogTrad", - columns: table => new - { - PostId = table.Column(type: "bigint", nullable: false), - Lang = table.Column(type: "text", nullable: false), - TraducerId = table.Column(type: "text", nullable: false), - Body = table.Column(type: "text", nullable: false), - Title = table.Column(type: "text", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_BlogTrad", x => new { x.PostId, x.Lang }); - table.ForeignKey( - name: "FK_BlogTrad_AspNetUsers_TraducerId", - column: x => x.TraducerId, - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateIndex( - name: "IX_BlogTrad_TraducerId", - table: "BlogTrad", - column: "TraducerId"); - } - } -} diff --git a/src/Yavsc.Server/Migrations/20241214201053_commentParent.Designer.cs b/src/Yavsc.Server/Migrations/20241214201053_commentParent.Designer.cs deleted file mode 100644 index bbe6e68b..00000000 --- a/src/Yavsc.Server/Migrations/20241214201053_commentParent.Designer.cs +++ /dev/null @@ -1,3516 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; -using Yavsc.Models; - -#nullable disable - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20241214201053_commentParent")] - partial class commentParent - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "8.0.2") - .HasAnnotation("Relational:MaxIdentifierLength", 63); - - NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasColumnType("text"); - - b.Property("Name") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("NormalizedName") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .IsUnique() - .HasDatabaseName("RoleNameIndex"); - - b.ToTable("AspNetRoles", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ClaimType") - .HasColumnType("text"); - - b.Property("ClaimValue") - .HasColumnType("text"); - - b.Property("RoleId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("RoleId"); - - b.ToTable("AspNetRoleClaims", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ClaimType") - .HasColumnType("text"); - - b.Property("ClaimValue") - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.ToTable("AspNetUserClaims", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => - { - b.Property("LoginProvider") - .HasColumnType("text"); - - b.Property("ProviderKey") - .HasColumnType("text"); - - b.Property("ProviderDisplayName") - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasIndex("UserId"); - - b.ToTable("AspNetUserLogins", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("RoleId") - .HasColumnType("text"); - - b.HasKey("UserId", "RoleId"); - - b.HasIndex("RoleId"); - - b.ToTable("AspNetUserRoles", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("LoginProvider") - .HasColumnType("text"); - - b.Property("Name") - .HasColumnType("text"); - - b.Property("Value") - .HasColumnType("text"); - - b.HasKey("UserId", "LoginProvider", "Name"); - - b.ToTable("AspNetUserTokens", (string)null); - }); - - modelBuilder.Entity("Yavsc.Abstract.Identity.ClientProviderInfo", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("Avatar") - .IsRequired() - .HasColumnType("text"); - - b.Property("BillingAddressId") - .HasColumnType("bigint"); - - b.Property("EMail") - .IsRequired() - .HasColumnType("text"); - - b.Property("Phone") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserName") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("ClientProviderInfo"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Reason") - .IsRequired() - .HasColumnType("text"); - - b.Property("TargetId") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("TargetId"); - - b.ToTable("Ban"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.HasIndex("UserId"); - - b.ToTable("BlackListed"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId") - .HasColumnType("bigint"); - - b.Property("BlogPostId") - .HasColumnType("bigint"); - - b.HasKey("CircleId", "BlogPostId"); - - b.HasIndex("BlogPostId"); - - b.ToTable("CircleAuthorizationToBlogPost"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("ContactCredits") - .HasColumnType("bigint"); - - b.Property("Credits") - .HasColumnType("numeric"); - - b.HasKey("UserId"); - - b.ToTable("BankStatus"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("AccessFailedCount") - .HasColumnType("integer"); - - b.Property("AllowMonthlyEmail") - .HasColumnType("boolean"); - - b.Property("Avatar") - .IsRequired() - .ValueGeneratedOnAdd() - .HasMaxLength(512) - .HasColumnType("character varying(512)") - .HasDefaultValue("/images/Users/icon_user.png"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasColumnType("text"); - - b.Property("DedicatedGoogleCalendar") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("DiskQuota") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasDefaultValue(524288000L); - - b.Property("DiskUsage") - .HasColumnType("bigint"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("EmailConfirmed") - .HasColumnType("boolean"); - - b.Property("FullName") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("LockoutEnabled") - .HasColumnType("boolean"); - - b.Property("LockoutEnd") - .HasColumnType("timestamp with time zone"); - - b.Property("MaxFileSize") - .HasColumnType("bigint"); - - b.Property("NormalizedEmail") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("NormalizedUserName") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("PasswordHash") - .HasColumnType("text"); - - b.Property("PhoneNumber") - .HasColumnType("text"); - - b.Property("PhoneNumberConfirmed") - .HasColumnType("boolean"); - - b.Property("PostalAddressId") - .HasColumnType("bigint"); - - b.Property("SecurityStamp") - .HasColumnType("text"); - - b.Property("TwoFactorEnabled") - .HasColumnType("boolean"); - - b.Property("UserName") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.HasKey("Id"); - - b.HasAlternateKey("Email"); - - b.HasIndex("NormalizedEmail") - .HasDatabaseName("EmailIndex"); - - b.HasIndex("NormalizedUserName") - .IsUnique() - .HasDatabaseName("UserNameIndex"); - - b.HasIndex("PostalAddressId"); - - b.ToTable("AspNetUsers", (string)null); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("text"); - - b.Property("AccessTokenLifetime") - .HasColumnType("integer"); - - b.Property("Active") - .HasColumnType("boolean"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("character varying(128)"); - - b.Property("LogoutRedirectUri") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("RedirectUri") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("RefreshTokenLifeTime") - .HasColumnType("integer"); - - b.Property("Secret") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("Type") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("Applications"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.OAuth2Tokens", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("AccessToken") - .IsRequired() - .HasColumnType("text"); - - b.Property("Expiration") - .HasColumnType("timestamp with time zone"); - - b.Property("ExpiresIn") - .IsRequired() - .HasColumnType("text"); - - b.Property("RefreshToken") - .IsRequired() - .HasColumnType("text"); - - b.Property("TokenType") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("OAuth2Tokens"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("character varying(50)"); - - b.Property("ExpiresUtc") - .HasColumnType("timestamp with time zone"); - - b.Property("IssuedUtc") - .HasColumnType("timestamp with time zone"); - - b.Property("ProtectedTicket") - .IsRequired() - .HasColumnType("text"); - - b.Property("Subject") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("character varying(50)"); - - b.HasKey("Id"); - - b.ToTable("RefreshTokens"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Scope", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("character varying(1024)"); - - b.HasKey("Id"); - - b.ToTable("Scopes"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("BalanceId") - .IsRequired() - .HasColumnType("text"); - - b.Property("ExecDate") - .HasColumnType("timestamp with time zone"); - - b.Property("Impact") - .HasColumnType("numeric"); - - b.Property("Reason") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("BalanceId"); - - b.ToTable("BankBook"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AccountNumber") - .IsRequired() - .HasColumnType("text"); - - b.Property("BIC") - .IsRequired() - .HasColumnType("text"); - - b.Property("BankCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("BankedKey") - .HasColumnType("integer"); - - b.Property("IBAN") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.Property("WicketCode") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.ToTable("BankIdentity"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Count") - .HasColumnType("integer"); - - b.Property("Currency") - .IsRequired() - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("EstimateId") - .HasColumnType("bigint"); - - b.Property("EstimateTemplateId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("UnitaryCost") - .HasColumnType("numeric"); - - b.HasKey("Id"); - - b.HasIndex("EstimateId"); - - b.HasIndex("EstimateTemplateId"); - - b.ToTable("CommandLine"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AttachedFilesString") - .IsRequired() - .HasColumnType("text"); - - b.Property("AttachedGraphicsString") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientValidationDate") - .HasColumnType("timestamp with time zone"); - - b.Property("CommandId") - .HasColumnType("bigint"); - - b.Property("CommandType") - .IsRequired() - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("ProviderValidationDate") - .HasColumnType("timestamp with time zone"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ClientId"); - - b.HasIndex("CommandId"); - - b.HasIndex("OwnerId"); - - b.ToTable("Estimates"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("EstimateTemplates"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN") - .HasColumnType("text"); - - b.HasKey("SIREN"); - - b.ToTable("ExceptionsSIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AuthorId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Content") - .IsRequired() - .HasMaxLength(56224) - .HasColumnType("character varying(56224)"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Photo") - .HasMaxLength(1024) - .HasColumnType("character varying(1024)"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.Property("Title") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("character varying(1024)"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("Visible") - .HasColumnType("boolean"); - - b.HasKey("Id"); - - b.HasIndex("AuthorId"); - - b.ToTable("Blogspot"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.Property("PostId") - .HasColumnType("bigint"); - - b.Property("TagId") - .HasColumnType("bigint"); - - b.HasKey("PostId", "TagId"); - - b.HasIndex("TagId"); - - b.ToTable("BlogTag"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AuthorId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Content") - .IsRequired() - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("ParentId") - .HasColumnType("bigint"); - - b.Property("ReceiverId") - .HasColumnType("bigint"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("Visible") - .HasColumnType("boolean"); - - b.HasKey("Id"); - - b.HasIndex("AuthorId"); - - b.HasIndex("ParentId"); - - b.HasIndex("ReceiverId"); - - b.ToTable("Comment"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Property("OwnerId") - .HasColumnType("text"); - - b.HasKey("OwnerId"); - - b.ToTable("Schedule"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("PeriodEnd") - .HasColumnType("timestamp with time zone"); - - b.Property("PeriodStart") - .HasColumnType("timestamp with time zone"); - - b.Property("Reccurence") - .HasColumnType("integer"); - - b.Property("ScheduleOwnerId") - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ScheduleOwnerId"); - - b.HasIndex("PeriodStart", "PeriodEnd"); - - b.ToTable("ScheduledEvent"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.Property("ConnectionId") - .HasColumnType("text"); - - b.Property("ApplicationUserId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Connected") - .HasColumnType("boolean"); - - b.Property("UserAgent") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("ConnectionId"); - - b.HasIndex("ApplicationUserId"); - - b.ToTable("ChatConnection"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.Property("Name") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("LatestJoinPart") - .HasColumnType("timestamp with time zone"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Topic") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Name"); - - b.HasIndex("OwnerId"); - - b.ToTable("ChatRoom"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomAccess", b => - { - b.Property("ChannelName") - .HasColumnType("text"); - - b.Property("UserId") - .HasColumnType("text"); - - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Level") - .HasColumnType("integer"); - - b.HasKey("ChannelName", "UserId"); - - b.HasIndex("UserId"); - - b.ToTable("ChatRoomAccess"); - }); - - modelBuilder.Entity("Yavsc.Models.Cratie.Option", b => - { - b.Property("Code") - .HasColumnType("text"); - - b.Property("CodeScrutin") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Code", "CodeScrutin"); - - b.ToTable("Option"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Blue") - .HasColumnType("smallint"); - - b.Property("Green") - .HasColumnType("smallint"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Red") - .HasColumnType("smallint"); - - b.HasKey("Id"); - - b.ToTable("Color"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("Summary") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("Form"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("ActionDistance") - .HasColumnType("integer"); - - b.Property("CarePrice") - .HasColumnType("numeric"); - - b.Property("FlatFeeDiscount") - .HasColumnType("numeric"); - - b.Property("HalfBalayagePrice") - .HasColumnType("numeric"); - - b.Property("HalfBrushingPrice") - .HasColumnType("numeric"); - - b.Property("HalfColorPrice") - .HasColumnType("numeric"); - - b.Property("HalfDefrisPrice") - .HasColumnType("numeric"); - - b.Property("HalfFoldingPrice") - .HasColumnType("numeric"); - - b.Property("HalfMechPrice") - .HasColumnType("numeric"); - - b.Property("HalfMultiColorPrice") - .HasColumnType("numeric"); - - b.Property("HalfPermanentPrice") - .HasColumnType("numeric"); - - b.Property("KidCutPrice") - .HasColumnType("numeric"); - - b.Property("LongBalayagePrice") - .HasColumnType("numeric"); - - b.Property("LongBrushingPrice") - .HasColumnType("numeric"); - - b.Property("LongColorPrice") - .HasColumnType("numeric"); - - b.Property("LongDefrisPrice") - .HasColumnType("numeric"); - - b.Property("LongFoldingPrice") - .HasColumnType("numeric"); - - b.Property("LongMechPrice") - .HasColumnType("numeric"); - - b.Property("LongMultiColorPrice") - .HasColumnType("numeric"); - - b.Property("LongPermanentPrice") - .HasColumnType("numeric"); - - b.Property("ManBrushPrice") - .HasColumnType("numeric"); - - b.Property("ManCutPrice") - .HasColumnType("numeric"); - - b.Property("ScheduleOwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("ShampooPrice") - .HasColumnType("numeric"); - - b.Property("ShortBalayagePrice") - .HasColumnType("numeric"); - - b.Property("ShortBrushingPrice") - .HasColumnType("numeric"); - - b.Property("ShortColorPrice") - .HasColumnType("numeric"); - - b.Property("ShortDefrisPrice") - .HasColumnType("numeric"); - - b.Property("ShortFoldingPrice") - .HasColumnType("numeric"); - - b.Property("ShortMechPrice") - .HasColumnType("numeric"); - - b.Property("ShortMultiColorPrice") - .HasColumnType("numeric"); - - b.Property("ShortPermanentPrice") - .HasColumnType("numeric"); - - b.Property("WomenHalfCutPrice") - .HasColumnType("numeric"); - - b.Property("WomenLongCutPrice") - .HasColumnType("numeric"); - - b.Property("WomenShortCutPrice") - .HasColumnType("numeric"); - - b.HasKey("UserId"); - - b.HasIndex("ScheduleOwnerId"); - - b.ToTable("BrusherProfile"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Accepted") - .HasColumnType("boolean"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("AdditionalInfo") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Decided") - .HasColumnType("boolean"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("EventDate") - .HasColumnType("timestamp with time zone"); - - b.Property("LocationId") - .HasColumnType("bigint"); - - b.Property("PaymentId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PrestationId") - .HasColumnType("bigint"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("SelectedProfileUserId") - .HasColumnType("text"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("LocationId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.HasIndex("PrestationId"); - - b.HasIndex("SelectedProfileUserId"); - - b.ToTable("HairCutQueries"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Accepted") - .HasColumnType("boolean"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Decided") - .HasColumnType("boolean"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("EventDate") - .HasColumnType("timestamp with time zone"); - - b.Property("LocationId") - .HasColumnType("bigint"); - - b.Property("PaymentId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("LocationId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.ToTable("HairMultiCutQueries"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Cares") - .HasColumnType("boolean"); - - b.Property("Cut") - .HasColumnType("boolean"); - - b.Property("Dressing") - .HasColumnType("integer"); - - b.Property("Gender") - .HasColumnType("integer"); - - b.Property("Length") - .HasColumnType("integer"); - - b.Property("Shampoo") - .HasColumnType("boolean"); - - b.Property("Tech") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("HairPrestation"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("PrestationId") - .HasColumnType("bigint"); - - b.Property("QueryId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("PrestationId"); - - b.HasIndex("QueryId"); - - b.ToTable("HairPrestationCollectionItem"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Brand") - .IsRequired() - .HasColumnType("text"); - - b.Property("ColorId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("ColorId"); - - b.ToTable("HairTaint"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.Property("TaintId") - .HasColumnType("bigint"); - - b.Property("PrestationId") - .HasColumnType("bigint"); - - b.HasKey("TaintId", "PrestationId"); - - b.HasIndex("PrestationId"); - - b.ToTable("HairTaintInstance"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Evolution.Feature", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("ShortName") - .IsRequired() - .HasColumnType("text"); - - b.Property("Status") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("Feature"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("FeatureId") - .HasColumnType("bigint"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("FeatureId"); - - b.ToTable("Bug"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.DeviceDeclaration", b => - { - b.Property("DeviceId") - .HasColumnType("text"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasColumnType("timestamp with time zone") - .HasDefaultValueSql("LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("LatestActivityUpdate") - .HasColumnType("timestamp with time zone"); - - b.Property("Model") - .IsRequired() - .HasColumnType("text"); - - b.Property("Platform") - .IsRequired() - .HasColumnType("text"); - - b.Property("Version") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("DeviceId"); - - b.HasIndex("DeviceOwnerId"); - - b.ToTable("DeviceDeclaration"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Depth") - .HasColumnType("numeric"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("Height") - .HasColumnType("numeric"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Price") - .HasColumnType("numeric"); - - b.Property("Public") - .HasColumnType("boolean"); - - b.Property("Weight") - .HasColumnType("numeric"); - - b.Property("Width") - .HasColumnType("numeric"); - - b.HasKey("Id"); - - b.ToTable("Products"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ContextId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Public") - .HasColumnType("boolean"); - - b.HasKey("Id"); - - b.HasIndex("ContextId"); - - b.ToTable("Services"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("For") - .HasColumnType("smallint"); - - b.Property("Message") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Sender") - .IsRequired() - .HasColumnType("text"); - - b.Property("Topic") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.ToTable("Announce"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DismissClicked", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("NotificationId") - .HasColumnType("bigint"); - - b.HasKey("UserId", "NotificationId"); - - b.HasIndex("NotificationId"); - - b.ToTable("DismissClicked"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Target") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("body") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("click_action") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("color") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("icon") - .IsRequired() - .ValueGeneratedOnAdd() - .HasMaxLength(512) - .HasColumnType("character varying(512)") - .HasDefaultValue("exclam"); - - b.Property("sound") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("tag") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("title") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("character varying(1024)"); - - b.HasKey("Id"); - - b.ToTable("Notification"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("character varying(255)"); - - b.HasKey("Id"); - - b.ToTable("Instrument"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.InstrumentRating", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("InstrumentId") - .HasColumnType("bigint"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.HasAlternateKey("InstrumentId", "OwnerId"); - - b.HasIndex("OwnerId"); - - b.ToTable("InstrumentRating"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId") - .HasColumnType("text"); - - b.Property("DjSettingsUserId") - .HasColumnType("text"); - - b.Property("GeneralSettingsUserId") - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.Property("TendencyId") - .HasColumnType("bigint"); - - b.HasKey("OwnerProfileId"); - - b.HasIndex("DjSettingsUserId"); - - b.HasIndex("GeneralSettingsUserId"); - - b.ToTable("MusicalPreference"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("character varying(255)"); - - b.HasKey("Id"); - - b.ToTable("MusicalTendency"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("SoundCloudId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("DjSettings"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("GeneralSettings"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId") - .HasColumnType("bigint"); - - b.Property("UserId") - .HasColumnType("text"); - - b.HasKey("InstrumentId", "UserId"); - - b.HasIndex("UserId"); - - b.ToTable("Instrumentation"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Property("CreationToken") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("ExecutorId") - .IsRequired() - .HasColumnType("text"); - - b.Property("OrderReference") - .IsRequired() - .HasColumnType("text"); - - b.Property("PaypalPayerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("State") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("CreationToken"); - - b.HasIndex("ExecutorId"); - - b.ToTable("PayPalPayment"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ApplicationUserId") - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Public") - .HasColumnType("boolean"); - - b.HasKey("Id"); - - b.HasIndex("ApplicationUserId"); - - b.ToTable("Circle"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId") - .HasColumnType("text"); - - b.Property("CircleId") - .HasColumnType("bigint"); - - b.HasKey("MemberId", "CircleId"); - - b.HasIndex("CircleId"); - - b.ToTable("CircleMembers"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId") - .HasColumnType("text"); - - b.Property("UserId") - .HasColumnType("text"); - - b.Property("AddressId") - .HasColumnType("bigint"); - - b.Property("ApplicationUserId") - .HasColumnType("text"); - - b.Property("EMail") - .IsRequired() - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("OwnerId", "UserId"); - - b.HasIndex("AddressId"); - - b.HasIndex("ApplicationUserId"); - - b.ToTable("Contact"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.Property("HRef") - .HasColumnType("text"); - - b.Property("Method") - .HasColumnType("text"); - - b.Property("BrusherProfileUserId") - .HasColumnType("text"); - - b.Property("ContentType") - .IsRequired() - .HasColumnType("text"); - - b.Property("PayPalPaymentCreationToken") - .HasColumnType("text"); - - b.Property("Rel") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("HRef", "Method"); - - b.HasIndex("BrusherProfileUserId"); - - b.HasIndex("PayPalPaymentCreationToken"); - - b.ToTable("HyperLink"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Address") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("Latitude") - .HasColumnType("double precision"); - - b.Property("Longitude") - .HasColumnType("double precision"); - - b.HasKey("Id"); - - b.ToTable("Locations"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostalAddress", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("City") - .IsRequired() - .HasColumnType("text"); - - b.Property("Country") - .IsRequired() - .HasColumnType("text"); - - b.Property("PostalCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("Province") - .IsRequired() - .HasColumnType("text"); - - b.Property("State") - .IsRequired() - .HasColumnType("text"); - - b.Property("Street1") - .IsRequired() - .HasColumnType("text"); - - b.Property("Street2") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("PostalAddress"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("Tags"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("SiteSkills"); - }); - - modelBuilder.Entity("Yavsc.Models.Streaming.LiveFlow", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("DifferedFileName") - .IsRequired() - .HasColumnType("text"); - - b.Property("MediaType") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Pitch") - .IsRequired() - .HasColumnType("text"); - - b.Property("SequenceNumber") - .HasColumnType("integer"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.ToTable("LiveFlow"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("Hidden") - .HasColumnType("boolean"); - - b.Property("ModeratorGroupName") - .IsRequired() - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("ParentCode") - .HasColumnType("text"); - - b.Property("Photo") - .IsRequired() - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.Property("SettingsClassName") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Code"); - - b.HasIndex("ParentCode"); - - b.ToTable("Activities"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("FormationSettingsUserId") - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("WorkingForId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("FormationSettingsUserId"); - - b.HasIndex("PerformerId"); - - b.HasIndex("WorkingForId"); - - b.ToTable("CoWorking"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ActionName") - .IsRequired() - .HasColumnType("text"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.ToTable("CommandForm"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId") - .HasColumnType("text"); - - b.Property("AcceptNotifications") - .HasColumnType("boolean"); - - b.Property("AcceptPublicContact") - .HasColumnType("boolean"); - - b.Property("Active") - .HasColumnType("boolean"); - - b.Property("MaxDailyCost") - .HasColumnType("integer"); - - b.Property("MinDailyCost") - .HasColumnType("integer"); - - b.Property("OrganizationAddressId") - .HasColumnType("bigint"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.Property("SIREN") - .IsRequired() - .HasColumnType("text"); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients") - .HasColumnType("boolean"); - - b.Property("WebSite") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("PerformerId"); - - b.HasIndex("OrganizationAddressId"); - - b.ToTable("Performers"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("DisplayName") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("FormationSettings"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Accepted") - .HasColumnType("boolean"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Decided") - .HasColumnType("boolean"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("EventDate") - .HasColumnType("timestamp with time zone"); - - b.Property("LocationId") - .HasColumnType("bigint"); - - b.Property("LocationType") - .HasColumnType("integer"); - - b.Property("PaymentId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("Reason") - .IsRequired() - .HasColumnType("text"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("LocationId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.ToTable("RdvQueries"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode") - .HasColumnType("text"); - - b.Property("UserId") - .HasColumnType("text"); - - b.Property("Weight") - .HasColumnType("integer"); - - b.HasKey("DoesCode", "UserId"); - - b.HasIndex("UserId"); - - b.ToTable("UserActivities"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Calendar.Period", b => - { - b.Property("Start") - .HasColumnType("timestamp with time zone"); - - b.Property("End") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Start", "End"); - - b.ToTable("Period"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.EMailing.MailingTemplate", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("Body") - .IsRequired() - .HasMaxLength(65536) - .HasColumnType("character varying(65536)"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("ReplyToAddress") - .IsRequired() - .HasColumnType("text"); - - b.Property("ToSend") - .HasColumnType("integer"); - - b.Property("Topic") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("MailingTemplate"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Accepted") - .HasColumnType("boolean"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Decided") - .HasColumnType("boolean"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("GitId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PaymentId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.Property("Version") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("GitId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.ToTable("Project"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("ProjectId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("ProjectId"); - - b.ToTable("ProjectBuildConfiguration"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Branch") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Path") - .IsRequired() - .HasColumnType("text"); - - b.Property("Url") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.ToTable("GitRepositoryReference"); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null) - .WithMany() - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null) - .WithMany() - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "TargetUser") - .WithMany() - .HasForeignKey("TargetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TargetUser"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany("BlackList") - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost", "Target") - .WithMany("ACL") - .HasForeignKey("BlogPostId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Circle", "Allowed") - .WithMany() - .HasForeignKey("CircleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Allowed"); - - b.Navigation("Target"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithOne("AccountBalance") - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Relationship.Location", "PostalAddress") - .WithMany() - .HasForeignKey("PostalAddressId"); - - b.Navigation("PostalAddress"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance", "Balance") - .WithMany() - .HasForeignKey("BalanceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Balance"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany("BankInfo") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate", null) - .WithMany("Bill") - .HasForeignKey("EstimateId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate", null) - .WithMany("Bill") - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery", "Query") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Owner"); - - b.Navigation("Query"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Author") - .WithMany("Posts") - .HasForeignKey("AuthorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Author"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost", "Post") - .WithMany("Tags") - .HasForeignKey("PostId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Tag", "Tag") - .WithMany() - .HasForeignKey("TagId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Post"); - - b.Navigation("Tag"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Author") - .WithMany() - .HasForeignKey("AuthorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Blog.Comment", "Parent") - .WithMany("Children") - .HasForeignKey("ParentId"); - - b.HasOne("Yavsc.Models.Blog.BlogPost", "Post") - .WithMany("Comments") - .HasForeignKey("ReceiverId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Author"); - - b.Navigation("Parent"); - - b.Navigation("Post"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule", null) - .WithMany("Events") - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Server.Models.Calendar.Period", "Period") - .WithMany() - .HasForeignKey("PeriodStart", "PeriodEnd") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Period"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany("Connections") - .HasForeignKey("ApplicationUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany("Rooms") - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomAccess", b => - { - b.HasOne("Yavsc.Models.Chat.ChatRoom", "Room") - .WithMany("Moderation") - .HasForeignKey("ChannelName") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany("RoomAccess") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Room"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule", "Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "BaseProfile") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("BaseProfile"); - - b.Navigation("Schedule"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Location", "Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation", "Prestation") - .WithMany() - .HasForeignKey("PrestationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.BrusherProfile", "SelectedProfile") - .WithMany() - .HasForeignKey("SelectedProfileUserId"); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("Location"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Prestation"); - - b.Navigation("Regularisation"); - - b.Navigation("SelectedProfile"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Location", "Location") - .WithMany() - .HasForeignKey("LocationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("Location"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Regularisation"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation", "Prestation") - .WithMany() - .HasForeignKey("PrestationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery", "Query") - .WithMany("Prestations") - .HasForeignKey("QueryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Prestation"); - - b.Navigation("Query"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color", "Color") - .WithMany() - .HasForeignKey("ColorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Color"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation", "Prestation") - .WithMany("Taints") - .HasForeignKey("PrestationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.HairTaint", "Taint") - .WithMany() - .HasForeignKey("TaintId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Prestation"); - - b.Navigation("Taint"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.HasOne("Yavsc.Models.IT.Evolution.Feature", "False") - .WithMany() - .HasForeignKey("FeatureId"); - - b.Navigation("False"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.DeviceDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "DeviceOwner") - .WithMany("DeviceDeclaration") - .HasForeignKey("DeviceOwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("DeviceOwner"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany("Services") - .HasForeignKey("ContextId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Context"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DismissClicked", b => - { - b.HasOne("Yavsc.Models.Messaging.Notification", "Notified") - .WithMany() - .HasForeignKey("NotificationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Notified"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.InstrumentRating", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument", "Instrument") - .WithMany() - .HasForeignKey("InstrumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "Profile") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Instrument"); - - b.Navigation("Profile"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings", null) - .WithMany("SoundColor") - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings", null) - .WithMany("SoundColor") - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument", "Tool") - .WithMany() - .HasForeignKey("InstrumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tool"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Executor") - .WithMany() - .HasForeignKey("ExecutorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Executor"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany("Circles") - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle", "Circle") - .WithMany("Members") - .HasForeignKey("CircleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Member") - .WithMany("Membership") - .HasForeignKey("MemberId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Circle"); - - b.Navigation("Member"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.Relationship.PostalAddress", "PostalAddress") - .WithMany() - .HasForeignKey("AddressId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany("Book") - .HasForeignKey("ApplicationUserId"); - - b.Navigation("PostalAddress"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.HasOne("Yavsc.Models.Haircut.BrusherProfile", null) - .WithMany("Links") - .HasForeignKey("BrusherProfileUserId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", null) - .WithMany("Links") - .HasForeignKey("PayPalPaymentCreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Streaming.LiveFlow", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Parent") - .WithMany("Children") - .HasForeignKey("ParentCode"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings", null) - .WithMany("CoWorking") - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "Performer") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "WorkingFor") - .WithMany() - .HasForeignKey("WorkingForId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Performer"); - - b.Navigation("WorkingFor"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany("Forms") - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Context"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location", "OrganizationAddress") - .WithMany() - .HasForeignKey("OrganizationAddressId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Performer") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("OrganizationAddress"); - - b.Navigation("Performer"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Location", "Location") - .WithMany() - .HasForeignKey("LocationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("Location"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Regularisation"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Does") - .WithMany() - .HasForeignKey("DoesCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "User") - .WithMany("Activity") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Does"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", "Repository") - .WithMany() - .HasForeignKey("GitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Regularisation"); - - b.Navigation("Repository"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.HasOne("Yavsc.Server.Models.IT.Project", "TargetProject") - .WithMany("Configurations") - .HasForeignKey("ProjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TargetProject"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Navigation("AccountBalance") - .IsRequired(); - - b.Navigation("BankInfo"); - - b.Navigation("BlackList"); - - b.Navigation("Book"); - - b.Navigation("Circles"); - - b.Navigation("Connections"); - - b.Navigation("DeviceDeclaration"); - - b.Navigation("Membership"); - - b.Navigation("Posts"); - - b.Navigation("RoomAccess"); - - b.Navigation("Rooms"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Navigation("Bill"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Navigation("Bill"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.Navigation("ACL"); - - b.Navigation("Comments"); - - b.Navigation("Tags"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.Navigation("Children"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Navigation("Events"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.Navigation("Moderation"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Navigation("Links"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Navigation("Prestations"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Navigation("Taints"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Navigation("SoundColor"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Navigation("SoundColor"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Navigation("Links"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Navigation("Members"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Navigation("Children"); - - b.Navigation("Forms"); - - b.Navigation("Services"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Navigation("Activity"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Navigation("CoWorking"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.Navigation("Configurations"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/Yavsc.Server/Migrations/20241214201053_commentParent.cs b/src/Yavsc.Server/Migrations/20241214201053_commentParent.cs deleted file mode 100644 index 6180b3ab..00000000 --- a/src/Yavsc.Server/Migrations/20241214201053_commentParent.cs +++ /dev/null @@ -1,61 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace Yavsc.Migrations -{ - /// - public partial class commentParent : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey( - name: "FK_Comment_Blogspot_PostId", - table: "Comment"); - - migrationBuilder.DropIndex( - name: "IX_Comment_PostId", - table: "Comment"); - - - migrationBuilder.CreateIndex( - name: "IX_Comment_ReceiverId", - table: "Comment", - column: "ReceiverId"); - - migrationBuilder.AddForeignKey( - name: "FK_Comment_Blogspot_ReceiverId", - table: "Comment", - column: "ReceiverId", - principalTable: "Blogspot", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey( - name: "FK_Comment_Blogspot_ReceiverId", - table: "Comment"); - - migrationBuilder.DropIndex( - name: "IX_Comment_ReceiverId", - table: "Comment"); - - migrationBuilder.CreateIndex( - name: "IX_Comment_PostId", - table: "Comment", - column: "PostId"); - - migrationBuilder.AddForeignKey( - name: "FK_Comment_Blogspot_PostId", - table: "Comment", - column: "PostId", - principalTable: "Blogspot", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - } -} diff --git a/src/Yavsc.Server/Migrations/20250208001037_blogspotcase.Designer.cs b/src/Yavsc.Server/Migrations/20250208001037_blogspotcase.Designer.cs deleted file mode 100644 index b6921b78..00000000 --- a/src/Yavsc.Server/Migrations/20250208001037_blogspotcase.Designer.cs +++ /dev/null @@ -1,3513 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; -using Yavsc.Models; - -#nullable disable - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20250208001037_blogspotcase")] - partial class blogspotcase - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "8.0.2") - .HasAnnotation("Relational:MaxIdentifierLength", 63); - - NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasColumnType("text"); - - b.Property("Name") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("NormalizedName") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .IsUnique() - .HasDatabaseName("RoleNameIndex"); - - b.ToTable("AspNetRoles", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ClaimType") - .HasColumnType("text"); - - b.Property("ClaimValue") - .HasColumnType("text"); - - b.Property("RoleId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("RoleId"); - - b.ToTable("AspNetRoleClaims", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ClaimType") - .HasColumnType("text"); - - b.Property("ClaimValue") - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.ToTable("AspNetUserClaims", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => - { - b.Property("LoginProvider") - .HasColumnType("text"); - - b.Property("ProviderKey") - .HasColumnType("text"); - - b.Property("ProviderDisplayName") - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasIndex("UserId"); - - b.ToTable("AspNetUserLogins", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("RoleId") - .HasColumnType("text"); - - b.HasKey("UserId", "RoleId"); - - b.HasIndex("RoleId"); - - b.ToTable("AspNetUserRoles", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("LoginProvider") - .HasColumnType("text"); - - b.Property("Name") - .HasColumnType("text"); - - b.Property("Value") - .HasColumnType("text"); - - b.HasKey("UserId", "LoginProvider", "Name"); - - b.ToTable("AspNetUserTokens", (string)null); - }); - - modelBuilder.Entity("Yavsc.Abstract.Identity.ClientProviderInfo", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("Avatar") - .IsRequired() - .HasColumnType("text"); - - b.Property("BillingAddressId") - .HasColumnType("bigint"); - - b.Property("EMail") - .IsRequired() - .HasColumnType("text"); - - b.Property("Phone") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserName") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("ClientProviderInfo"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Reason") - .IsRequired() - .HasColumnType("text"); - - b.Property("TargetId") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("TargetId"); - - b.ToTable("Ban"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.HasIndex("UserId"); - - b.ToTable("BlackListed"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId") - .HasColumnType("bigint"); - - b.Property("BlogPostId") - .HasColumnType("bigint"); - - b.HasKey("CircleId", "BlogPostId"); - - b.HasIndex("BlogPostId"); - - b.ToTable("CircleAuthorizationToBlogPost"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("ContactCredits") - .HasColumnType("bigint"); - - b.Property("Credits") - .HasColumnType("numeric"); - - b.HasKey("UserId"); - - b.ToTable("BankStatus"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("AccessFailedCount") - .HasColumnType("integer"); - - b.Property("AllowMonthlyEmail") - .HasColumnType("boolean"); - - b.Property("Avatar") - .IsRequired() - .ValueGeneratedOnAdd() - .HasMaxLength(512) - .HasColumnType("character varying(512)") - .HasDefaultValue("/images/Users/icon_user.png"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasColumnType("text"); - - b.Property("DedicatedGoogleCalendar") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("DiskQuota") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasDefaultValue(524288000L); - - b.Property("DiskUsage") - .HasColumnType("bigint"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("EmailConfirmed") - .HasColumnType("boolean"); - - b.Property("FullName") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("LockoutEnabled") - .HasColumnType("boolean"); - - b.Property("LockoutEnd") - .HasColumnType("timestamp with time zone"); - - b.Property("MaxFileSize") - .HasColumnType("bigint"); - - b.Property("NormalizedEmail") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("NormalizedUserName") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("PasswordHash") - .HasColumnType("text"); - - b.Property("PhoneNumber") - .HasColumnType("text"); - - b.Property("PhoneNumberConfirmed") - .HasColumnType("boolean"); - - b.Property("PostalAddressId") - .HasColumnType("bigint"); - - b.Property("SecurityStamp") - .HasColumnType("text"); - - b.Property("TwoFactorEnabled") - .HasColumnType("boolean"); - - b.Property("UserName") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.HasKey("Id"); - - b.HasAlternateKey("Email"); - - b.HasIndex("NormalizedEmail") - .HasDatabaseName("EmailIndex"); - - b.HasIndex("NormalizedUserName") - .IsUnique() - .HasDatabaseName("UserNameIndex"); - - b.HasIndex("PostalAddressId"); - - b.ToTable("AspNetUsers", (string)null); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("text"); - - b.Property("AccessTokenLifetime") - .HasColumnType("integer"); - - b.Property("Active") - .HasColumnType("boolean"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("character varying(128)"); - - b.Property("LogoutRedirectUri") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("RedirectUri") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("RefreshTokenLifeTime") - .HasColumnType("integer"); - - b.Property("Secret") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("Type") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("Applications"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.OAuth2Tokens", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("AccessToken") - .IsRequired() - .HasColumnType("text"); - - b.Property("Expiration") - .HasColumnType("timestamp with time zone"); - - b.Property("ExpiresIn") - .IsRequired() - .HasColumnType("text"); - - b.Property("RefreshToken") - .IsRequired() - .HasColumnType("text"); - - b.Property("TokenType") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("OAuth2Tokens"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("character varying(50)"); - - b.Property("ExpiresUtc") - .HasColumnType("timestamp with time zone"); - - b.Property("IssuedUtc") - .HasColumnType("timestamp with time zone"); - - b.Property("ProtectedTicket") - .IsRequired() - .HasColumnType("text"); - - b.Property("Subject") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("character varying(50)"); - - b.HasKey("Id"); - - b.ToTable("RefreshTokens"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Scope", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("character varying(1024)"); - - b.HasKey("Id"); - - b.ToTable("Scopes"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("BalanceId") - .IsRequired() - .HasColumnType("text"); - - b.Property("ExecDate") - .HasColumnType("timestamp with time zone"); - - b.Property("Impact") - .HasColumnType("numeric"); - - b.Property("Reason") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("BalanceId"); - - b.ToTable("BankBook"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AccountNumber") - .IsRequired() - .HasColumnType("text"); - - b.Property("BIC") - .IsRequired() - .HasColumnType("text"); - - b.Property("BankCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("BankedKey") - .HasColumnType("integer"); - - b.Property("IBAN") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.Property("WicketCode") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.ToTable("BankIdentity"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Count") - .HasColumnType("integer"); - - b.Property("Currency") - .IsRequired() - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("EstimateId") - .HasColumnType("bigint"); - - b.Property("EstimateTemplateId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("UnitaryCost") - .HasColumnType("numeric"); - - b.HasKey("Id"); - - b.HasIndex("EstimateId"); - - b.HasIndex("EstimateTemplateId"); - - b.ToTable("CommandLine"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AttachedFilesString") - .IsRequired() - .HasColumnType("text"); - - b.Property("AttachedGraphicsString") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientValidationDate") - .HasColumnType("timestamp with time zone"); - - b.Property("CommandId") - .HasColumnType("bigint"); - - b.Property("CommandType") - .IsRequired() - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("ProviderValidationDate") - .HasColumnType("timestamp with time zone"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ClientId"); - - b.HasIndex("CommandId"); - - b.HasIndex("OwnerId"); - - b.ToTable("Estimates"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("EstimateTemplates"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN") - .HasColumnType("text"); - - b.HasKey("SIREN"); - - b.ToTable("ExceptionsSIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AuthorId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Content") - .IsRequired() - .HasMaxLength(56224) - .HasColumnType("character varying(56224)"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Photo") - .HasMaxLength(1024) - .HasColumnType("character varying(1024)"); - - b.Property("Title") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("character varying(1024)"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("Visible") - .HasColumnType("boolean"); - - b.HasKey("Id"); - - b.HasIndex("AuthorId"); - - b.ToTable("BlogSpot"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.Property("PostId") - .HasColumnType("bigint"); - - b.Property("TagId") - .HasColumnType("bigint"); - - b.HasKey("PostId", "TagId"); - - b.HasIndex("TagId"); - - b.ToTable("BlogTag"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AuthorId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Content") - .IsRequired() - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("ParentId") - .HasColumnType("bigint"); - - b.Property("ReceiverId") - .HasColumnType("bigint"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("Visible") - .HasColumnType("boolean"); - - b.HasKey("Id"); - - b.HasIndex("AuthorId"); - - b.HasIndex("ParentId"); - - b.HasIndex("ReceiverId"); - - b.ToTable("Comment"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Property("OwnerId") - .HasColumnType("text"); - - b.HasKey("OwnerId"); - - b.ToTable("Schedule"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("PeriodEnd") - .HasColumnType("timestamp with time zone"); - - b.Property("PeriodStart") - .HasColumnType("timestamp with time zone"); - - b.Property("Reccurence") - .HasColumnType("integer"); - - b.Property("ScheduleOwnerId") - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ScheduleOwnerId"); - - b.HasIndex("PeriodStart", "PeriodEnd"); - - b.ToTable("ScheduledEvent"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.Property("ConnectionId") - .HasColumnType("text"); - - b.Property("ApplicationUserId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Connected") - .HasColumnType("boolean"); - - b.Property("UserAgent") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("ConnectionId"); - - b.HasIndex("ApplicationUserId"); - - b.ToTable("ChatConnection"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.Property("Name") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("LatestJoinPart") - .HasColumnType("timestamp with time zone"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Topic") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Name"); - - b.HasIndex("OwnerId"); - - b.ToTable("ChatRoom"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomAccess", b => - { - b.Property("ChannelName") - .HasColumnType("text"); - - b.Property("UserId") - .HasColumnType("text"); - - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Level") - .HasColumnType("integer"); - - b.HasKey("ChannelName", "UserId"); - - b.HasIndex("UserId"); - - b.ToTable("ChatRoomAccess"); - }); - - modelBuilder.Entity("Yavsc.Models.Cratie.Option", b => - { - b.Property("Code") - .HasColumnType("text"); - - b.Property("CodeScrutin") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Code", "CodeScrutin"); - - b.ToTable("Option"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Blue") - .HasColumnType("smallint"); - - b.Property("Green") - .HasColumnType("smallint"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Red") - .HasColumnType("smallint"); - - b.HasKey("Id"); - - b.ToTable("Color"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("Summary") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("Form"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("ActionDistance") - .HasColumnType("integer"); - - b.Property("CarePrice") - .HasColumnType("numeric"); - - b.Property("FlatFeeDiscount") - .HasColumnType("numeric"); - - b.Property("HalfBalayagePrice") - .HasColumnType("numeric"); - - b.Property("HalfBrushingPrice") - .HasColumnType("numeric"); - - b.Property("HalfColorPrice") - .HasColumnType("numeric"); - - b.Property("HalfDefrisPrice") - .HasColumnType("numeric"); - - b.Property("HalfFoldingPrice") - .HasColumnType("numeric"); - - b.Property("HalfMechPrice") - .HasColumnType("numeric"); - - b.Property("HalfMultiColorPrice") - .HasColumnType("numeric"); - - b.Property("HalfPermanentPrice") - .HasColumnType("numeric"); - - b.Property("KidCutPrice") - .HasColumnType("numeric"); - - b.Property("LongBalayagePrice") - .HasColumnType("numeric"); - - b.Property("LongBrushingPrice") - .HasColumnType("numeric"); - - b.Property("LongColorPrice") - .HasColumnType("numeric"); - - b.Property("LongDefrisPrice") - .HasColumnType("numeric"); - - b.Property("LongFoldingPrice") - .HasColumnType("numeric"); - - b.Property("LongMechPrice") - .HasColumnType("numeric"); - - b.Property("LongMultiColorPrice") - .HasColumnType("numeric"); - - b.Property("LongPermanentPrice") - .HasColumnType("numeric"); - - b.Property("ManBrushPrice") - .HasColumnType("numeric"); - - b.Property("ManCutPrice") - .HasColumnType("numeric"); - - b.Property("ScheduleOwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("ShampooPrice") - .HasColumnType("numeric"); - - b.Property("ShortBalayagePrice") - .HasColumnType("numeric"); - - b.Property("ShortBrushingPrice") - .HasColumnType("numeric"); - - b.Property("ShortColorPrice") - .HasColumnType("numeric"); - - b.Property("ShortDefrisPrice") - .HasColumnType("numeric"); - - b.Property("ShortFoldingPrice") - .HasColumnType("numeric"); - - b.Property("ShortMechPrice") - .HasColumnType("numeric"); - - b.Property("ShortMultiColorPrice") - .HasColumnType("numeric"); - - b.Property("ShortPermanentPrice") - .HasColumnType("numeric"); - - b.Property("WomenHalfCutPrice") - .HasColumnType("numeric"); - - b.Property("WomenLongCutPrice") - .HasColumnType("numeric"); - - b.Property("WomenShortCutPrice") - .HasColumnType("numeric"); - - b.HasKey("UserId"); - - b.HasIndex("ScheduleOwnerId"); - - b.ToTable("BrusherProfile"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Accepted") - .HasColumnType("boolean"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("AdditionalInfo") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Decided") - .HasColumnType("boolean"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("EventDate") - .HasColumnType("timestamp with time zone"); - - b.Property("LocationId") - .HasColumnType("bigint"); - - b.Property("PaymentId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PrestationId") - .HasColumnType("bigint"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("SelectedProfileUserId") - .HasColumnType("text"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("LocationId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.HasIndex("PrestationId"); - - b.HasIndex("SelectedProfileUserId"); - - b.ToTable("HairCutQueries"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Accepted") - .HasColumnType("boolean"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Decided") - .HasColumnType("boolean"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("EventDate") - .HasColumnType("timestamp with time zone"); - - b.Property("LocationId") - .HasColumnType("bigint"); - - b.Property("PaymentId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("LocationId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.ToTable("HairMultiCutQueries"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Cares") - .HasColumnType("boolean"); - - b.Property("Cut") - .HasColumnType("boolean"); - - b.Property("Dressing") - .HasColumnType("integer"); - - b.Property("Gender") - .HasColumnType("integer"); - - b.Property("Length") - .HasColumnType("integer"); - - b.Property("Shampoo") - .HasColumnType("boolean"); - - b.Property("Tech") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("HairPrestation"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("PrestationId") - .HasColumnType("bigint"); - - b.Property("QueryId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("PrestationId"); - - b.HasIndex("QueryId"); - - b.ToTable("HairPrestationCollectionItem"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Brand") - .IsRequired() - .HasColumnType("text"); - - b.Property("ColorId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("ColorId"); - - b.ToTable("HairTaint"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.Property("TaintId") - .HasColumnType("bigint"); - - b.Property("PrestationId") - .HasColumnType("bigint"); - - b.HasKey("TaintId", "PrestationId"); - - b.HasIndex("PrestationId"); - - b.ToTable("HairTaintInstance"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Evolution.Feature", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("ShortName") - .IsRequired() - .HasColumnType("text"); - - b.Property("Status") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("Feature"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("FeatureId") - .HasColumnType("bigint"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("FeatureId"); - - b.ToTable("Bug"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.DeviceDeclaration", b => - { - b.Property("DeviceId") - .HasColumnType("text"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasColumnType("timestamp with time zone") - .HasDefaultValueSql("LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("LatestActivityUpdate") - .HasColumnType("timestamp with time zone"); - - b.Property("Model") - .IsRequired() - .HasColumnType("text"); - - b.Property("Platform") - .IsRequired() - .HasColumnType("text"); - - b.Property("Version") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("DeviceId"); - - b.HasIndex("DeviceOwnerId"); - - b.ToTable("DeviceDeclaration"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Depth") - .HasColumnType("numeric"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("Height") - .HasColumnType("numeric"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Price") - .HasColumnType("numeric"); - - b.Property("Public") - .HasColumnType("boolean"); - - b.Property("Weight") - .HasColumnType("numeric"); - - b.Property("Width") - .HasColumnType("numeric"); - - b.HasKey("Id"); - - b.ToTable("Products"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ContextId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Public") - .HasColumnType("boolean"); - - b.HasKey("Id"); - - b.HasIndex("ContextId"); - - b.ToTable("Services"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("For") - .HasColumnType("smallint"); - - b.Property("Message") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Sender") - .IsRequired() - .HasColumnType("text"); - - b.Property("Topic") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.ToTable("Announce"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DismissClicked", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("NotificationId") - .HasColumnType("bigint"); - - b.HasKey("UserId", "NotificationId"); - - b.HasIndex("NotificationId"); - - b.ToTable("DismissClicked"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Target") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("body") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("click_action") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("color") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("icon") - .IsRequired() - .ValueGeneratedOnAdd() - .HasMaxLength(512) - .HasColumnType("character varying(512)") - .HasDefaultValue("exclam"); - - b.Property("sound") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("tag") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("title") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("character varying(1024)"); - - b.HasKey("Id"); - - b.ToTable("Notification"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("character varying(255)"); - - b.HasKey("Id"); - - b.ToTable("Instrument"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.InstrumentRating", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("InstrumentId") - .HasColumnType("bigint"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.HasAlternateKey("InstrumentId", "OwnerId"); - - b.HasIndex("OwnerId"); - - b.ToTable("InstrumentRating"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId") - .HasColumnType("text"); - - b.Property("DjSettingsUserId") - .HasColumnType("text"); - - b.Property("GeneralSettingsUserId") - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.Property("TendencyId") - .HasColumnType("bigint"); - - b.HasKey("OwnerProfileId"); - - b.HasIndex("DjSettingsUserId"); - - b.HasIndex("GeneralSettingsUserId"); - - b.ToTable("MusicalPreference"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("character varying(255)"); - - b.HasKey("Id"); - - b.ToTable("MusicalTendency"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("SoundCloudId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("DjSettings"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("GeneralSettings"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId") - .HasColumnType("bigint"); - - b.Property("UserId") - .HasColumnType("text"); - - b.HasKey("InstrumentId", "UserId"); - - b.HasIndex("UserId"); - - b.ToTable("Instrumentation"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Property("CreationToken") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("ExecutorId") - .IsRequired() - .HasColumnType("text"); - - b.Property("OrderReference") - .IsRequired() - .HasColumnType("text"); - - b.Property("PaypalPayerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("State") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("CreationToken"); - - b.HasIndex("ExecutorId"); - - b.ToTable("PayPalPayment"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ApplicationUserId") - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Public") - .HasColumnType("boolean"); - - b.HasKey("Id"); - - b.HasIndex("ApplicationUserId"); - - b.ToTable("Circle"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId") - .HasColumnType("text"); - - b.Property("CircleId") - .HasColumnType("bigint"); - - b.HasKey("MemberId", "CircleId"); - - b.HasIndex("CircleId"); - - b.ToTable("CircleMembers"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId") - .HasColumnType("text"); - - b.Property("UserId") - .HasColumnType("text"); - - b.Property("AddressId") - .HasColumnType("bigint"); - - b.Property("ApplicationUserId") - .HasColumnType("text"); - - b.Property("EMail") - .IsRequired() - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("OwnerId", "UserId"); - - b.HasIndex("AddressId"); - - b.HasIndex("ApplicationUserId"); - - b.ToTable("Contact"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.Property("HRef") - .HasColumnType("text"); - - b.Property("Method") - .HasColumnType("text"); - - b.Property("BrusherProfileUserId") - .HasColumnType("text"); - - b.Property("ContentType") - .IsRequired() - .HasColumnType("text"); - - b.Property("PayPalPaymentCreationToken") - .HasColumnType("text"); - - b.Property("Rel") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("HRef", "Method"); - - b.HasIndex("BrusherProfileUserId"); - - b.HasIndex("PayPalPaymentCreationToken"); - - b.ToTable("HyperLink"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Address") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("Latitude") - .HasColumnType("double precision"); - - b.Property("Longitude") - .HasColumnType("double precision"); - - b.HasKey("Id"); - - b.ToTable("Locations"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostalAddress", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("City") - .IsRequired() - .HasColumnType("text"); - - b.Property("Country") - .IsRequired() - .HasColumnType("text"); - - b.Property("PostalCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("Province") - .IsRequired() - .HasColumnType("text"); - - b.Property("State") - .IsRequired() - .HasColumnType("text"); - - b.Property("Street1") - .IsRequired() - .HasColumnType("text"); - - b.Property("Street2") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("PostalAddress"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("Tags"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("SiteSkills"); - }); - - modelBuilder.Entity("Yavsc.Models.Streaming.LiveFlow", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("DifferedFileName") - .IsRequired() - .HasColumnType("text"); - - b.Property("MediaType") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Pitch") - .IsRequired() - .HasColumnType("text"); - - b.Property("SequenceNumber") - .HasColumnType("integer"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.ToTable("LiveFlow"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("Hidden") - .HasColumnType("boolean"); - - b.Property("ModeratorGroupName") - .IsRequired() - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("ParentCode") - .HasColumnType("text"); - - b.Property("Photo") - .IsRequired() - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.Property("SettingsClassName") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Code"); - - b.HasIndex("ParentCode"); - - b.ToTable("Activities"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("FormationSettingsUserId") - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("WorkingForId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("FormationSettingsUserId"); - - b.HasIndex("PerformerId"); - - b.HasIndex("WorkingForId"); - - b.ToTable("CoWorking"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ActionName") - .IsRequired() - .HasColumnType("text"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.ToTable("CommandForm"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId") - .HasColumnType("text"); - - b.Property("AcceptNotifications") - .HasColumnType("boolean"); - - b.Property("AcceptPublicContact") - .HasColumnType("boolean"); - - b.Property("Active") - .HasColumnType("boolean"); - - b.Property("MaxDailyCost") - .HasColumnType("integer"); - - b.Property("MinDailyCost") - .HasColumnType("integer"); - - b.Property("OrganizationAddressId") - .HasColumnType("bigint"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.Property("SIREN") - .IsRequired() - .HasColumnType("text"); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients") - .HasColumnType("boolean"); - - b.Property("WebSite") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("PerformerId"); - - b.HasIndex("OrganizationAddressId"); - - b.ToTable("Performers"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("DisplayName") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("FormationSettings"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Accepted") - .HasColumnType("boolean"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Decided") - .HasColumnType("boolean"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("EventDate") - .HasColumnType("timestamp with time zone"); - - b.Property("LocationId") - .HasColumnType("bigint"); - - b.Property("LocationType") - .HasColumnType("integer"); - - b.Property("PaymentId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("Reason") - .IsRequired() - .HasColumnType("text"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("LocationId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.ToTable("RdvQueries"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode") - .HasColumnType("text"); - - b.Property("UserId") - .HasColumnType("text"); - - b.Property("Weight") - .HasColumnType("integer"); - - b.HasKey("DoesCode", "UserId"); - - b.HasIndex("UserId"); - - b.ToTable("UserActivities"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Calendar.Period", b => - { - b.Property("Start") - .HasColumnType("timestamp with time zone"); - - b.Property("End") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Start", "End"); - - b.ToTable("Period"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.EMailing.MailingTemplate", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("Body") - .IsRequired() - .HasMaxLength(65536) - .HasColumnType("character varying(65536)"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("ReplyToAddress") - .IsRequired() - .HasColumnType("text"); - - b.Property("ToSend") - .HasColumnType("integer"); - - b.Property("Topic") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("MailingTemplate"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Accepted") - .HasColumnType("boolean"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Decided") - .HasColumnType("boolean"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("GitId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PaymentId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.Property("Version") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("GitId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.ToTable("Project"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("ProjectId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("ProjectId"); - - b.ToTable("ProjectBuildConfiguration"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Branch") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Path") - .IsRequired() - .HasColumnType("text"); - - b.Property("Url") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.ToTable("GitRepositoryReference"); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null) - .WithMany() - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null) - .WithMany() - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "TargetUser") - .WithMany() - .HasForeignKey("TargetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TargetUser"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany("BlackList") - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost", "Target") - .WithMany("ACL") - .HasForeignKey("BlogPostId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Circle", "Allowed") - .WithMany() - .HasForeignKey("CircleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Allowed"); - - b.Navigation("Target"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithOne("AccountBalance") - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Relationship.Location", "PostalAddress") - .WithMany() - .HasForeignKey("PostalAddressId"); - - b.Navigation("PostalAddress"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance", "Balance") - .WithMany() - .HasForeignKey("BalanceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Balance"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany("BankInfo") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate", null) - .WithMany("Bill") - .HasForeignKey("EstimateId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate", null) - .WithMany("Bill") - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery", "Query") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Owner"); - - b.Navigation("Query"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Author") - .WithMany("Posts") - .HasForeignKey("AuthorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Author"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost", "Post") - .WithMany("Tags") - .HasForeignKey("PostId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Tag", "Tag") - .WithMany() - .HasForeignKey("TagId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Post"); - - b.Navigation("Tag"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Author") - .WithMany() - .HasForeignKey("AuthorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Blog.Comment", "Parent") - .WithMany("Children") - .HasForeignKey("ParentId"); - - b.HasOne("Yavsc.Models.Blog.BlogPost", "Post") - .WithMany("Comments") - .HasForeignKey("ReceiverId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Author"); - - b.Navigation("Parent"); - - b.Navigation("Post"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule", null) - .WithMany("Events") - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Server.Models.Calendar.Period", "Period") - .WithMany() - .HasForeignKey("PeriodStart", "PeriodEnd") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Period"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany("Connections") - .HasForeignKey("ApplicationUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany("Rooms") - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomAccess", b => - { - b.HasOne("Yavsc.Models.Chat.ChatRoom", "Room") - .WithMany("Moderation") - .HasForeignKey("ChannelName") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany("RoomAccess") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Room"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule", "Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "BaseProfile") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("BaseProfile"); - - b.Navigation("Schedule"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Location", "Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation", "Prestation") - .WithMany() - .HasForeignKey("PrestationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.BrusherProfile", "SelectedProfile") - .WithMany() - .HasForeignKey("SelectedProfileUserId"); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("Location"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Prestation"); - - b.Navigation("Regularisation"); - - b.Navigation("SelectedProfile"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Location", "Location") - .WithMany() - .HasForeignKey("LocationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("Location"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Regularisation"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation", "Prestation") - .WithMany() - .HasForeignKey("PrestationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery", "Query") - .WithMany("Prestations") - .HasForeignKey("QueryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Prestation"); - - b.Navigation("Query"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color", "Color") - .WithMany() - .HasForeignKey("ColorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Color"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation", "Prestation") - .WithMany("Taints") - .HasForeignKey("PrestationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.HairTaint", "Taint") - .WithMany() - .HasForeignKey("TaintId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Prestation"); - - b.Navigation("Taint"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.HasOne("Yavsc.Models.IT.Evolution.Feature", "False") - .WithMany() - .HasForeignKey("FeatureId"); - - b.Navigation("False"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.DeviceDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "DeviceOwner") - .WithMany("DeviceDeclaration") - .HasForeignKey("DeviceOwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("DeviceOwner"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany("Services") - .HasForeignKey("ContextId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Context"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DismissClicked", b => - { - b.HasOne("Yavsc.Models.Messaging.Notification", "Notified") - .WithMany() - .HasForeignKey("NotificationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Notified"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.InstrumentRating", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument", "Instrument") - .WithMany() - .HasForeignKey("InstrumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "Profile") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Instrument"); - - b.Navigation("Profile"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings", null) - .WithMany("SoundColor") - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings", null) - .WithMany("SoundColor") - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument", "Tool") - .WithMany() - .HasForeignKey("InstrumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tool"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Executor") - .WithMany() - .HasForeignKey("ExecutorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Executor"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany("Circles") - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle", "Circle") - .WithMany("Members") - .HasForeignKey("CircleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Member") - .WithMany("Membership") - .HasForeignKey("MemberId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Circle"); - - b.Navigation("Member"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.Relationship.PostalAddress", "PostalAddress") - .WithMany() - .HasForeignKey("AddressId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany("Book") - .HasForeignKey("ApplicationUserId"); - - b.Navigation("PostalAddress"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.HasOne("Yavsc.Models.Haircut.BrusherProfile", null) - .WithMany("Links") - .HasForeignKey("BrusherProfileUserId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", null) - .WithMany("Links") - .HasForeignKey("PayPalPaymentCreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Streaming.LiveFlow", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Parent") - .WithMany("Children") - .HasForeignKey("ParentCode"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings", null) - .WithMany("CoWorking") - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "Performer") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "WorkingFor") - .WithMany() - .HasForeignKey("WorkingForId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Performer"); - - b.Navigation("WorkingFor"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany("Forms") - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Context"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location", "OrganizationAddress") - .WithMany() - .HasForeignKey("OrganizationAddressId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Performer") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("OrganizationAddress"); - - b.Navigation("Performer"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Location", "Location") - .WithMany() - .HasForeignKey("LocationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("Location"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Regularisation"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Does") - .WithMany() - .HasForeignKey("DoesCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "User") - .WithMany("Activity") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Does"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", "Repository") - .WithMany() - .HasForeignKey("GitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Regularisation"); - - b.Navigation("Repository"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.HasOne("Yavsc.Server.Models.IT.Project", "TargetProject") - .WithMany("Configurations") - .HasForeignKey("ProjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TargetProject"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Navigation("AccountBalance") - .IsRequired(); - - b.Navigation("BankInfo"); - - b.Navigation("BlackList"); - - b.Navigation("Book"); - - b.Navigation("Circles"); - - b.Navigation("Connections"); - - b.Navigation("DeviceDeclaration"); - - b.Navigation("Membership"); - - b.Navigation("Posts"); - - b.Navigation("RoomAccess"); - - b.Navigation("Rooms"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Navigation("Bill"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Navigation("Bill"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.Navigation("ACL"); - - b.Navigation("Comments"); - - b.Navigation("Tags"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.Navigation("Children"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Navigation("Events"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.Navigation("Moderation"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Navigation("Links"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Navigation("Prestations"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Navigation("Taints"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Navigation("SoundColor"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Navigation("SoundColor"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Navigation("Links"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Navigation("Members"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Navigation("Children"); - - b.Navigation("Forms"); - - b.Navigation("Services"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Navigation("Activity"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Navigation("CoWorking"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.Navigation("Configurations"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/Yavsc.Server/Migrations/20250208001037_blogspotcase.cs b/src/Yavsc.Server/Migrations/20250208001037_blogspotcase.cs deleted file mode 100644 index 13d393e5..00000000 --- a/src/Yavsc.Server/Migrations/20250208001037_blogspotcase.cs +++ /dev/null @@ -1,161 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace Yavsc.Migrations -{ - /// - public partial class blogspotcase : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey( - name: "FK_Blogspot_AspNetUsers_AuthorId", - table: "Blogspot"); - - migrationBuilder.DropForeignKey( - name: "FK_BlogTag_Blogspot_PostId", - table: "BlogTag"); - - migrationBuilder.DropForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blogspot_BlogPostId", - table: "CircleAuthorizationToBlogPost"); - - migrationBuilder.DropForeignKey( - name: "FK_Comment_Blogspot_ReceiverId", - table: "Comment"); - - migrationBuilder.DropPrimaryKey( - name: "PK_Blogspot", - table: "Blogspot"); - - migrationBuilder.DropColumn( - name: "Rate", - table: "Blogspot"); - - migrationBuilder.RenameTable( - name: "Blogspot", - newName: "BlogSpot"); - - migrationBuilder.RenameIndex( - name: "IX_Blogspot_AuthorId", - table: "BlogSpot", - newName: "IX_BlogSpot_AuthorId"); - - migrationBuilder.AddPrimaryKey( - name: "PK_BlogSpot", - table: "BlogSpot", - column: "Id"); - - migrationBuilder.AddForeignKey( - name: "FK_BlogSpot_AspNetUsers_AuthorId", - table: "BlogSpot", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_BlogSpot_PostId", - table: "BlogTag", - column: "PostId", - principalTable: "BlogSpot", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_BlogSpot_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "BlogSpot", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_Comment_BlogSpot_ReceiverId", - table: "Comment", - column: "ReceiverId", - principalTable: "BlogSpot", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey( - name: "FK_BlogSpot_AspNetUsers_AuthorId", - table: "BlogSpot"); - - migrationBuilder.DropForeignKey( - name: "FK_BlogTag_BlogSpot_PostId", - table: "BlogTag"); - - migrationBuilder.DropForeignKey( - name: "FK_CircleAuthorizationToBlogPost_BlogSpot_BlogPostId", - table: "CircleAuthorizationToBlogPost"); - - migrationBuilder.DropForeignKey( - name: "FK_Comment_BlogSpot_ReceiverId", - table: "Comment"); - - migrationBuilder.DropPrimaryKey( - name: "PK_BlogSpot", - table: "BlogSpot"); - - migrationBuilder.RenameTable( - name: "BlogSpot", - newName: "Blogspot"); - - migrationBuilder.RenameIndex( - name: "IX_BlogSpot_AuthorId", - table: "Blogspot", - newName: "IX_Blogspot_AuthorId"); - - migrationBuilder.AddColumn( - name: "Rate", - table: "Blogspot", - type: "integer", - nullable: false, - defaultValue: 0); - - migrationBuilder.AddPrimaryKey( - name: "PK_Blogspot", - table: "Blogspot", - column: "Id"); - - migrationBuilder.AddForeignKey( - name: "FK_Blogspot_AspNetUsers_AuthorId", - table: "Blogspot", - column: "AuthorId", - principalTable: "AspNetUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_BlogTag_Blogspot_PostId", - table: "BlogTag", - column: "PostId", - principalTable: "Blogspot", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_CircleAuthorizationToBlogPost_Blogspot_BlogPostId", - table: "CircleAuthorizationToBlogPost", - column: "BlogPostId", - principalTable: "Blogspot", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_Comment_Blogspot_ReceiverId", - table: "Comment", - column: "ReceiverId", - principalTable: "Blogspot", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - } -} diff --git a/src/Yavsc.Server/Migrations/20250613122253_notificationTarget.Designer.cs b/src/Yavsc.Server/Migrations/20250613122253_notificationTarget.Designer.cs deleted file mode 100644 index 31454f2a..00000000 --- a/src/Yavsc.Server/Migrations/20250613122253_notificationTarget.Designer.cs +++ /dev/null @@ -1,3509 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; -using Yavsc.Models; - -#nullable disable - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20250613122253_notificationTarget")] - partial class notificationTarget - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "9.0.6") - .HasAnnotation("Relational:MaxIdentifierLength", 63); - - NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasColumnType("text"); - - b.Property("Name") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("NormalizedName") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .IsUnique() - .HasDatabaseName("RoleNameIndex"); - - b.ToTable("AspNetRoles", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ClaimType") - .HasColumnType("text"); - - b.Property("ClaimValue") - .HasColumnType("text"); - - b.Property("RoleId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("RoleId"); - - b.ToTable("AspNetRoleClaims", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ClaimType") - .HasColumnType("text"); - - b.Property("ClaimValue") - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.ToTable("AspNetUserClaims", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => - { - b.Property("LoginProvider") - .HasColumnType("text"); - - b.Property("ProviderKey") - .HasColumnType("text"); - - b.Property("ProviderDisplayName") - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasIndex("UserId"); - - b.ToTable("AspNetUserLogins", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("RoleId") - .HasColumnType("text"); - - b.HasKey("UserId", "RoleId"); - - b.HasIndex("RoleId"); - - b.ToTable("AspNetUserRoles", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("LoginProvider") - .HasColumnType("text"); - - b.Property("Name") - .HasColumnType("text"); - - b.Property("Value") - .HasColumnType("text"); - - b.HasKey("UserId", "LoginProvider", "Name"); - - b.ToTable("AspNetUserTokens", (string)null); - }); - - modelBuilder.Entity("Yavsc.Abstract.Identity.ClientProviderInfo", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("Avatar") - .IsRequired() - .HasColumnType("text"); - - b.Property("BillingAddressId") - .HasColumnType("bigint"); - - b.Property("EMail") - .IsRequired() - .HasColumnType("text"); - - b.Property("Phone") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserName") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("ClientProviderInfo"); - }); - - modelBuilder.Entity("Yavsc.Abstract.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Target") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("body") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("click_action") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("color") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("icon") - .IsRequired() - .ValueGeneratedOnAdd() - .HasMaxLength(512) - .HasColumnType("character varying(512)") - .HasDefaultValue("exclam"); - - b.Property("sound") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("tag") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("title") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("character varying(1024)"); - - b.HasKey("Id"); - - b.ToTable("Notification"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Reason") - .IsRequired() - .HasColumnType("text"); - - b.Property("TargetId") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("TargetId"); - - b.ToTable("Ban"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.HasIndex("UserId"); - - b.ToTable("BlackListed"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId") - .HasColumnType("bigint"); - - b.Property("BlogPostId") - .HasColumnType("bigint"); - - b.HasKey("CircleId", "BlogPostId"); - - b.HasIndex("BlogPostId"); - - b.ToTable("CircleAuthorizationToBlogPost"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("ContactCredits") - .HasColumnType("bigint"); - - b.Property("Credits") - .HasColumnType("numeric"); - - b.HasKey("UserId"); - - b.ToTable("BankStatus"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("AccessFailedCount") - .HasColumnType("integer"); - - b.Property("AllowMonthlyEmail") - .HasColumnType("boolean"); - - b.Property("Avatar") - .IsRequired() - .ValueGeneratedOnAdd() - .HasMaxLength(512) - .HasColumnType("character varying(512)") - .HasDefaultValue("/images/Users/icon_user.png"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasColumnType("text"); - - b.Property("DedicatedGoogleCalendar") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("DiskQuota") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasDefaultValue(524288000L); - - b.Property("DiskUsage") - .HasColumnType("bigint"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("EmailConfirmed") - .HasColumnType("boolean"); - - b.Property("FullName") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("LockoutEnabled") - .HasColumnType("boolean"); - - b.Property("LockoutEnd") - .HasColumnType("timestamp with time zone"); - - b.Property("MaxFileSize") - .HasColumnType("bigint"); - - b.Property("NormalizedEmail") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("NormalizedUserName") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("PasswordHash") - .HasColumnType("text"); - - b.Property("PhoneNumber") - .HasColumnType("text"); - - b.Property("PhoneNumberConfirmed") - .HasColumnType("boolean"); - - b.Property("PostalAddressId") - .HasColumnType("bigint"); - - b.Property("SecurityStamp") - .HasColumnType("text"); - - b.Property("TwoFactorEnabled") - .HasColumnType("boolean"); - - b.Property("UserName") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.HasKey("Id"); - - b.HasAlternateKey("Email"); - - b.HasIndex("NormalizedEmail") - .HasDatabaseName("EmailIndex"); - - b.HasIndex("NormalizedUserName") - .IsUnique() - .HasDatabaseName("UserNameIndex"); - - b.HasIndex("PostalAddressId"); - - b.ToTable("AspNetUsers", (string)null); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("text"); - - b.Property("AccessTokenLifetime") - .HasColumnType("integer"); - - b.Property("Active") - .HasColumnType("boolean"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("character varying(128)"); - - b.Property("LogoutRedirectUri") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("RedirectUri") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("RefreshTokenLifeTime") - .HasColumnType("integer"); - - b.Property("Secret") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("Type") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("Applications"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.OAuth2Tokens", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("AccessToken") - .IsRequired() - .HasColumnType("text"); - - b.Property("Expiration") - .HasColumnType("timestamp with time zone"); - - b.Property("ExpiresIn") - .IsRequired() - .HasColumnType("text"); - - b.Property("RefreshToken") - .IsRequired() - .HasColumnType("text"); - - b.Property("TokenType") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("OAuth2Tokens"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("character varying(50)"); - - b.Property("ExpiresUtc") - .HasColumnType("timestamp with time zone"); - - b.Property("IssuedUtc") - .HasColumnType("timestamp with time zone"); - - b.Property("ProtectedTicket") - .IsRequired() - .HasColumnType("text"); - - b.Property("Subject") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("character varying(50)"); - - b.HasKey("Id"); - - b.ToTable("RefreshTokens"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Scope", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("character varying(1024)"); - - b.HasKey("Id"); - - b.ToTable("Scopes"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("BalanceId") - .IsRequired() - .HasColumnType("text"); - - b.Property("ExecDate") - .HasColumnType("timestamp with time zone"); - - b.Property("Impact") - .HasColumnType("numeric"); - - b.Property("Reason") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("BalanceId"); - - b.ToTable("BankBook"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AccountNumber") - .IsRequired() - .HasColumnType("text"); - - b.Property("BIC") - .IsRequired() - .HasColumnType("text"); - - b.Property("BankCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("BankedKey") - .HasColumnType("integer"); - - b.Property("IBAN") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.Property("WicketCode") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.ToTable("BankIdentity"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Count") - .HasColumnType("integer"); - - b.Property("Currency") - .IsRequired() - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("EstimateId") - .HasColumnType("bigint"); - - b.Property("EstimateTemplateId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("UnitaryCost") - .HasColumnType("numeric"); - - b.HasKey("Id"); - - b.HasIndex("EstimateId"); - - b.HasIndex("EstimateTemplateId"); - - b.ToTable("CommandLine"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AttachedFilesString") - .IsRequired() - .HasColumnType("text"); - - b.Property("AttachedGraphicsString") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientValidationDate") - .HasColumnType("timestamp with time zone"); - - b.Property("CommandId") - .HasColumnType("bigint"); - - b.Property("CommandType") - .IsRequired() - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("ProviderValidationDate") - .HasColumnType("timestamp with time zone"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ClientId"); - - b.HasIndex("CommandId"); - - b.HasIndex("OwnerId"); - - b.ToTable("Estimates"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("EstimateTemplates"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN") - .HasColumnType("text"); - - b.HasKey("SIREN"); - - b.ToTable("ExceptionsSIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AuthorId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Content") - .IsRequired() - .HasMaxLength(56224) - .HasColumnType("character varying(56224)"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Photo") - .HasMaxLength(1024) - .HasColumnType("character varying(1024)"); - - b.Property("Title") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("character varying(1024)"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("AuthorId"); - - b.ToTable("BlogSpot"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.Property("PostId") - .HasColumnType("bigint"); - - b.Property("TagId") - .HasColumnType("bigint"); - - b.HasKey("PostId", "TagId"); - - b.HasIndex("TagId"); - - b.ToTable("BlogTag"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AuthorId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Content") - .IsRequired() - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("ParentId") - .HasColumnType("bigint"); - - b.Property("ReceiverId") - .HasColumnType("bigint"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("Visible") - .HasColumnType("boolean"); - - b.HasKey("Id"); - - b.HasIndex("AuthorId"); - - b.HasIndex("ParentId"); - - b.HasIndex("ReceiverId"); - - b.ToTable("Comment"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Property("OwnerId") - .HasColumnType("text"); - - b.HasKey("OwnerId"); - - b.ToTable("Schedule"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("PeriodEnd") - .HasColumnType("timestamp with time zone"); - - b.Property("PeriodStart") - .HasColumnType("timestamp with time zone"); - - b.Property("Reccurence") - .HasColumnType("integer"); - - b.Property("ScheduleOwnerId") - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ScheduleOwnerId"); - - b.HasIndex("PeriodStart", "PeriodEnd"); - - b.ToTable("ScheduledEvent"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.Property("ConnectionId") - .HasColumnType("text"); - - b.Property("ApplicationUserId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Connected") - .HasColumnType("boolean"); - - b.Property("UserAgent") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("ConnectionId"); - - b.HasIndex("ApplicationUserId"); - - b.ToTable("ChatConnection"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.Property("Name") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("LatestJoinPart") - .HasColumnType("timestamp with time zone"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Topic") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Name"); - - b.HasIndex("OwnerId"); - - b.ToTable("ChatRoom"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomAccess", b => - { - b.Property("ChannelName") - .HasColumnType("text"); - - b.Property("UserId") - .HasColumnType("text"); - - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Level") - .HasColumnType("integer"); - - b.HasKey("ChannelName", "UserId"); - - b.HasIndex("UserId"); - - b.ToTable("ChatRoomAccess"); - }); - - modelBuilder.Entity("Yavsc.Models.Cratie.Option", b => - { - b.Property("Code") - .HasColumnType("text"); - - b.Property("CodeScrutin") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Code", "CodeScrutin"); - - b.ToTable("Option"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Blue") - .HasColumnType("smallint"); - - b.Property("Green") - .HasColumnType("smallint"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Red") - .HasColumnType("smallint"); - - b.HasKey("Id"); - - b.ToTable("Color"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("Summary") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("Form"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("ActionDistance") - .HasColumnType("integer"); - - b.Property("CarePrice") - .HasColumnType("numeric"); - - b.Property("FlatFeeDiscount") - .HasColumnType("numeric"); - - b.Property("HalfBalayagePrice") - .HasColumnType("numeric"); - - b.Property("HalfBrushingPrice") - .HasColumnType("numeric"); - - b.Property("HalfColorPrice") - .HasColumnType("numeric"); - - b.Property("HalfDefrisPrice") - .HasColumnType("numeric"); - - b.Property("HalfFoldingPrice") - .HasColumnType("numeric"); - - b.Property("HalfMechPrice") - .HasColumnType("numeric"); - - b.Property("HalfMultiColorPrice") - .HasColumnType("numeric"); - - b.Property("HalfPermanentPrice") - .HasColumnType("numeric"); - - b.Property("KidCutPrice") - .HasColumnType("numeric"); - - b.Property("LongBalayagePrice") - .HasColumnType("numeric"); - - b.Property("LongBrushingPrice") - .HasColumnType("numeric"); - - b.Property("LongColorPrice") - .HasColumnType("numeric"); - - b.Property("LongDefrisPrice") - .HasColumnType("numeric"); - - b.Property("LongFoldingPrice") - .HasColumnType("numeric"); - - b.Property("LongMechPrice") - .HasColumnType("numeric"); - - b.Property("LongMultiColorPrice") - .HasColumnType("numeric"); - - b.Property("LongPermanentPrice") - .HasColumnType("numeric"); - - b.Property("ManBrushPrice") - .HasColumnType("numeric"); - - b.Property("ManCutPrice") - .HasColumnType("numeric"); - - b.Property("ScheduleOwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("ShampooPrice") - .HasColumnType("numeric"); - - b.Property("ShortBalayagePrice") - .HasColumnType("numeric"); - - b.Property("ShortBrushingPrice") - .HasColumnType("numeric"); - - b.Property("ShortColorPrice") - .HasColumnType("numeric"); - - b.Property("ShortDefrisPrice") - .HasColumnType("numeric"); - - b.Property("ShortFoldingPrice") - .HasColumnType("numeric"); - - b.Property("ShortMechPrice") - .HasColumnType("numeric"); - - b.Property("ShortMultiColorPrice") - .HasColumnType("numeric"); - - b.Property("ShortPermanentPrice") - .HasColumnType("numeric"); - - b.Property("WomenHalfCutPrice") - .HasColumnType("numeric"); - - b.Property("WomenLongCutPrice") - .HasColumnType("numeric"); - - b.Property("WomenShortCutPrice") - .HasColumnType("numeric"); - - b.HasKey("UserId"); - - b.HasIndex("ScheduleOwnerId"); - - b.ToTable("BrusherProfile"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Accepted") - .HasColumnType("boolean"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("AdditionalInfo") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Decided") - .HasColumnType("boolean"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("EventDate") - .HasColumnType("timestamp with time zone"); - - b.Property("LocationId") - .HasColumnType("bigint"); - - b.Property("PaymentId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PrestationId") - .HasColumnType("bigint"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("SelectedProfileUserId") - .HasColumnType("text"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("LocationId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.HasIndex("PrestationId"); - - b.HasIndex("SelectedProfileUserId"); - - b.ToTable("HairCutQueries"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Accepted") - .HasColumnType("boolean"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Decided") - .HasColumnType("boolean"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("EventDate") - .HasColumnType("timestamp with time zone"); - - b.Property("LocationId") - .HasColumnType("bigint"); - - b.Property("PaymentId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("LocationId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.ToTable("HairMultiCutQueries"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Cares") - .HasColumnType("boolean"); - - b.Property("Cut") - .HasColumnType("boolean"); - - b.Property("Dressing") - .HasColumnType("integer"); - - b.Property("Gender") - .HasColumnType("integer"); - - b.Property("Length") - .HasColumnType("integer"); - - b.Property("Shampoo") - .HasColumnType("boolean"); - - b.Property("Tech") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("HairPrestation"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("PrestationId") - .HasColumnType("bigint"); - - b.Property("QueryId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("PrestationId"); - - b.HasIndex("QueryId"); - - b.ToTable("HairPrestationCollectionItem"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Brand") - .IsRequired() - .HasColumnType("text"); - - b.Property("ColorId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("ColorId"); - - b.ToTable("HairTaint"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.Property("TaintId") - .HasColumnType("bigint"); - - b.Property("PrestationId") - .HasColumnType("bigint"); - - b.HasKey("TaintId", "PrestationId"); - - b.HasIndex("PrestationId"); - - b.ToTable("HairTaintInstance"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Evolution.Feature", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("ShortName") - .IsRequired() - .HasColumnType("text"); - - b.Property("Status") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("Feature"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("FeatureId") - .HasColumnType("bigint"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("FeatureId"); - - b.ToTable("Bug"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.DeviceDeclaration", b => - { - b.Property("DeviceId") - .HasColumnType("text"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasColumnType("timestamp with time zone") - .HasDefaultValueSql("LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("LatestActivityUpdate") - .HasColumnType("timestamp with time zone"); - - b.Property("Model") - .IsRequired() - .HasColumnType("text"); - - b.Property("Platform") - .IsRequired() - .HasColumnType("text"); - - b.Property("Version") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("DeviceId"); - - b.HasIndex("DeviceOwnerId"); - - b.ToTable("DeviceDeclaration"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Depth") - .HasColumnType("numeric"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("Height") - .HasColumnType("numeric"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Price") - .HasColumnType("numeric"); - - b.Property("Public") - .HasColumnType("boolean"); - - b.Property("Weight") - .HasColumnType("numeric"); - - b.Property("Width") - .HasColumnType("numeric"); - - b.HasKey("Id"); - - b.ToTable("Products"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ContextId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Public") - .HasColumnType("boolean"); - - b.HasKey("Id"); - - b.HasIndex("ContextId"); - - b.ToTable("Services"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("For") - .HasColumnType("smallint"); - - b.Property("Message") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Sender") - .IsRequired() - .HasColumnType("text"); - - b.Property("Topic") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.ToTable("Announce"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DismissClicked", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("NotificationId") - .HasColumnType("bigint"); - - b.HasKey("UserId", "NotificationId"); - - b.HasIndex("NotificationId"); - - b.ToTable("DismissClicked"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("character varying(255)"); - - b.HasKey("Id"); - - b.ToTable("Instrument"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.InstrumentRating", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("InstrumentId") - .HasColumnType("bigint"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.HasAlternateKey("InstrumentId", "OwnerId"); - - b.HasIndex("OwnerId"); - - b.ToTable("InstrumentRating"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId") - .HasColumnType("text"); - - b.Property("DjSettingsUserId") - .HasColumnType("text"); - - b.Property("GeneralSettingsUserId") - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.Property("TendencyId") - .HasColumnType("bigint"); - - b.HasKey("OwnerProfileId"); - - b.HasIndex("DjSettingsUserId"); - - b.HasIndex("GeneralSettingsUserId"); - - b.ToTable("MusicalPreference"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("character varying(255)"); - - b.HasKey("Id"); - - b.ToTable("MusicalTendency"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("SoundCloudId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("DjSettings"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("GeneralSettings"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId") - .HasColumnType("bigint"); - - b.Property("UserId") - .HasColumnType("text"); - - b.HasKey("InstrumentId", "UserId"); - - b.HasIndex("UserId"); - - b.ToTable("Instrumentation"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Property("CreationToken") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("ExecutorId") - .IsRequired() - .HasColumnType("text"); - - b.Property("OrderReference") - .IsRequired() - .HasColumnType("text"); - - b.Property("PaypalPayerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("State") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("CreationToken"); - - b.HasIndex("ExecutorId"); - - b.ToTable("PayPalPayment"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ApplicationUserId") - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Public") - .HasColumnType("boolean"); - - b.HasKey("Id"); - - b.HasIndex("ApplicationUserId"); - - b.ToTable("Circle"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId") - .HasColumnType("text"); - - b.Property("CircleId") - .HasColumnType("bigint"); - - b.HasKey("MemberId", "CircleId"); - - b.HasIndex("CircleId"); - - b.ToTable("CircleMembers"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId") - .HasColumnType("text"); - - b.Property("UserId") - .HasColumnType("text"); - - b.Property("AddressId") - .HasColumnType("bigint"); - - b.Property("ApplicationUserId") - .HasColumnType("text"); - - b.Property("EMail") - .IsRequired() - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("OwnerId", "UserId"); - - b.HasIndex("AddressId"); - - b.HasIndex("ApplicationUserId"); - - b.ToTable("Contact"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.Property("HRef") - .HasColumnType("text"); - - b.Property("Method") - .HasColumnType("text"); - - b.Property("BrusherProfileUserId") - .HasColumnType("text"); - - b.Property("ContentType") - .IsRequired() - .HasColumnType("text"); - - b.Property("PayPalPaymentCreationToken") - .HasColumnType("text"); - - b.Property("Rel") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("HRef", "Method"); - - b.HasIndex("BrusherProfileUserId"); - - b.HasIndex("PayPalPaymentCreationToken"); - - b.ToTable("HyperLink"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Address") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("Latitude") - .HasColumnType("double precision"); - - b.Property("Longitude") - .HasColumnType("double precision"); - - b.HasKey("Id"); - - b.ToTable("Locations"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostalAddress", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("City") - .IsRequired() - .HasColumnType("text"); - - b.Property("Country") - .IsRequired() - .HasColumnType("text"); - - b.Property("PostalCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("Province") - .IsRequired() - .HasColumnType("text"); - - b.Property("State") - .IsRequired() - .HasColumnType("text"); - - b.Property("Street1") - .IsRequired() - .HasColumnType("text"); - - b.Property("Street2") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("PostalAddress"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("Tags"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("SiteSkills"); - }); - - modelBuilder.Entity("Yavsc.Models.Streaming.LiveFlow", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("DifferedFileName") - .IsRequired() - .HasColumnType("text"); - - b.Property("MediaType") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Pitch") - .IsRequired() - .HasColumnType("text"); - - b.Property("SequenceNumber") - .HasColumnType("integer"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.ToTable("LiveFlow"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("Hidden") - .HasColumnType("boolean"); - - b.Property("ModeratorGroupName") - .IsRequired() - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("ParentCode") - .HasColumnType("text"); - - b.Property("Photo") - .IsRequired() - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.Property("SettingsClassName") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Code"); - - b.HasIndex("ParentCode"); - - b.ToTable("Activities"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("FormationSettingsUserId") - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("WorkingForId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("FormationSettingsUserId"); - - b.HasIndex("PerformerId"); - - b.HasIndex("WorkingForId"); - - b.ToTable("CoWorking"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ActionName") - .IsRequired() - .HasColumnType("text"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.ToTable("CommandForm"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId") - .HasColumnType("text"); - - b.Property("AcceptNotifications") - .HasColumnType("boolean"); - - b.Property("AcceptPublicContact") - .HasColumnType("boolean"); - - b.Property("Active") - .HasColumnType("boolean"); - - b.Property("MaxDailyCost") - .HasColumnType("integer"); - - b.Property("MinDailyCost") - .HasColumnType("integer"); - - b.Property("OrganizationAddressId") - .HasColumnType("bigint"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.Property("SIREN") - .IsRequired() - .HasColumnType("text"); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients") - .HasColumnType("boolean"); - - b.Property("WebSite") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("PerformerId"); - - b.HasIndex("OrganizationAddressId"); - - b.ToTable("Performers"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("DisplayName") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("FormationSettings"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Accepted") - .HasColumnType("boolean"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Decided") - .HasColumnType("boolean"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("EventDate") - .HasColumnType("timestamp with time zone"); - - b.Property("LocationId") - .HasColumnType("bigint"); - - b.Property("LocationType") - .HasColumnType("integer"); - - b.Property("PaymentId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("Reason") - .IsRequired() - .HasColumnType("text"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("LocationId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.ToTable("RdvQueries"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode") - .HasColumnType("text"); - - b.Property("UserId") - .HasColumnType("text"); - - b.Property("Weight") - .HasColumnType("integer"); - - b.HasKey("DoesCode", "UserId"); - - b.HasIndex("UserId"); - - b.ToTable("UserActivities"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Calendar.Period", b => - { - b.Property("Start") - .HasColumnType("timestamp with time zone"); - - b.Property("End") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Start", "End"); - - b.ToTable("Period"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.EMailing.MailingTemplate", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("Body") - .IsRequired() - .HasMaxLength(65536) - .HasColumnType("character varying(65536)"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("ReplyToAddress") - .IsRequired() - .HasColumnType("text"); - - b.Property("ToSend") - .HasColumnType("integer"); - - b.Property("Topic") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("MailingTemplate"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Accepted") - .HasColumnType("boolean"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Decided") - .HasColumnType("boolean"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("GitId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PaymentId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.Property("Version") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("GitId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.ToTable("Project"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("ProjectId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("ProjectId"); - - b.ToTable("ProjectBuildConfiguration"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Branch") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Path") - .IsRequired() - .HasColumnType("text"); - - b.Property("Url") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.ToTable("GitRepositoryReference"); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null) - .WithMany() - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null) - .WithMany() - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "TargetUser") - .WithMany() - .HasForeignKey("TargetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TargetUser"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany("BlackList") - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost", "Target") - .WithMany("ACL") - .HasForeignKey("BlogPostId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Circle", "Allowed") - .WithMany() - .HasForeignKey("CircleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Allowed"); - - b.Navigation("Target"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithOne("AccountBalance") - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Relationship.Location", "PostalAddress") - .WithMany() - .HasForeignKey("PostalAddressId"); - - b.Navigation("PostalAddress"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance", "Balance") - .WithMany() - .HasForeignKey("BalanceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Balance"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany("BankInfo") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate", null) - .WithMany("Bill") - .HasForeignKey("EstimateId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate", null) - .WithMany("Bill") - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery", "Query") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Owner"); - - b.Navigation("Query"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Author") - .WithMany("Posts") - .HasForeignKey("AuthorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Author"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost", "Post") - .WithMany("Tags") - .HasForeignKey("PostId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Tag", "Tag") - .WithMany() - .HasForeignKey("TagId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Post"); - - b.Navigation("Tag"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Author") - .WithMany() - .HasForeignKey("AuthorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Blog.Comment", "Parent") - .WithMany("Children") - .HasForeignKey("ParentId"); - - b.HasOne("Yavsc.Models.Blog.BlogPost", "Post") - .WithMany("Comments") - .HasForeignKey("ReceiverId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Author"); - - b.Navigation("Parent"); - - b.Navigation("Post"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule", null) - .WithMany("Events") - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Server.Models.Calendar.Period", "Period") - .WithMany() - .HasForeignKey("PeriodStart", "PeriodEnd") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Period"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany("Connections") - .HasForeignKey("ApplicationUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany("Rooms") - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomAccess", b => - { - b.HasOne("Yavsc.Models.Chat.ChatRoom", "Room") - .WithMany("Moderation") - .HasForeignKey("ChannelName") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany("RoomAccess") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Room"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule", "Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "BaseProfile") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("BaseProfile"); - - b.Navigation("Schedule"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Location", "Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation", "Prestation") - .WithMany() - .HasForeignKey("PrestationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.BrusherProfile", "SelectedProfile") - .WithMany() - .HasForeignKey("SelectedProfileUserId"); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("Location"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Prestation"); - - b.Navigation("Regularisation"); - - b.Navigation("SelectedProfile"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Location", "Location") - .WithMany() - .HasForeignKey("LocationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("Location"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Regularisation"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation", "Prestation") - .WithMany() - .HasForeignKey("PrestationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery", "Query") - .WithMany("Prestations") - .HasForeignKey("QueryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Prestation"); - - b.Navigation("Query"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color", "Color") - .WithMany() - .HasForeignKey("ColorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Color"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation", "Prestation") - .WithMany("Taints") - .HasForeignKey("PrestationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.HairTaint", "Taint") - .WithMany() - .HasForeignKey("TaintId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Prestation"); - - b.Navigation("Taint"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.HasOne("Yavsc.Models.IT.Evolution.Feature", "False") - .WithMany() - .HasForeignKey("FeatureId"); - - b.Navigation("False"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.DeviceDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "DeviceOwner") - .WithMany("DeviceDeclaration") - .HasForeignKey("DeviceOwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("DeviceOwner"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany("Services") - .HasForeignKey("ContextId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Context"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DismissClicked", b => - { - b.HasOne("Yavsc.Abstract.Models.Messaging.Notification", "Notified") - .WithMany() - .HasForeignKey("NotificationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Notified"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.InstrumentRating", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument", "Instrument") - .WithMany() - .HasForeignKey("InstrumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "Profile") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Instrument"); - - b.Navigation("Profile"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings", null) - .WithMany("SoundColor") - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings", null) - .WithMany("SoundColor") - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument", "Tool") - .WithMany() - .HasForeignKey("InstrumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tool"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Executor") - .WithMany() - .HasForeignKey("ExecutorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Executor"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany("Circles") - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle", "Circle") - .WithMany("Members") - .HasForeignKey("CircleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Member") - .WithMany("Membership") - .HasForeignKey("MemberId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Circle"); - - b.Navigation("Member"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.Relationship.PostalAddress", "PostalAddress") - .WithMany() - .HasForeignKey("AddressId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany("Book") - .HasForeignKey("ApplicationUserId"); - - b.Navigation("PostalAddress"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.HasOne("Yavsc.Models.Haircut.BrusherProfile", null) - .WithMany("Links") - .HasForeignKey("BrusherProfileUserId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", null) - .WithMany("Links") - .HasForeignKey("PayPalPaymentCreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Streaming.LiveFlow", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Parent") - .WithMany("Children") - .HasForeignKey("ParentCode"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings", null) - .WithMany("CoWorking") - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "Performer") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "WorkingFor") - .WithMany() - .HasForeignKey("WorkingForId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Performer"); - - b.Navigation("WorkingFor"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany("Forms") - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Context"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location", "OrganizationAddress") - .WithMany() - .HasForeignKey("OrganizationAddressId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Performer") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("OrganizationAddress"); - - b.Navigation("Performer"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Location", "Location") - .WithMany() - .HasForeignKey("LocationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("Location"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Regularisation"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Does") - .WithMany() - .HasForeignKey("DoesCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "User") - .WithMany("Activity") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Does"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", "Repository") - .WithMany() - .HasForeignKey("GitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Regularisation"); - - b.Navigation("Repository"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.HasOne("Yavsc.Server.Models.IT.Project", "TargetProject") - .WithMany("Configurations") - .HasForeignKey("ProjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TargetProject"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Navigation("AccountBalance") - .IsRequired(); - - b.Navigation("BankInfo"); - - b.Navigation("BlackList"); - - b.Navigation("Book"); - - b.Navigation("Circles"); - - b.Navigation("Connections"); - - b.Navigation("DeviceDeclaration"); - - b.Navigation("Membership"); - - b.Navigation("Posts"); - - b.Navigation("RoomAccess"); - - b.Navigation("Rooms"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Navigation("Bill"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Navigation("Bill"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.Navigation("ACL"); - - b.Navigation("Comments"); - - b.Navigation("Tags"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.Navigation("Children"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Navigation("Events"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.Navigation("Moderation"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Navigation("Links"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Navigation("Prestations"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Navigation("Taints"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Navigation("SoundColor"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Navigation("SoundColor"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Navigation("Links"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Navigation("Members"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Navigation("Children"); - - b.Navigation("Forms"); - - b.Navigation("Services"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Navigation("Activity"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Navigation("CoWorking"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.Navigation("Configurations"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/Yavsc.Server/Migrations/20250613122253_notificationTarget.cs b/src/Yavsc.Server/Migrations/20250613122253_notificationTarget.cs deleted file mode 100644 index 4b858142..00000000 --- a/src/Yavsc.Server/Migrations/20250613122253_notificationTarget.cs +++ /dev/null @@ -1,51 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace Yavsc.Migrations -{ - /// - public partial class notificationTarget : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "Visible", - table: "BlogSpot"); - - migrationBuilder.AlterColumn( - name: "Target", - table: "Notification", - type: "character varying(512)", - maxLength: 512, - nullable: true, - oldClrType: typeof(string), - oldType: "character varying(512)", - oldMaxLength: 512); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "Target", - table: "Notification", - type: "character varying(512)", - maxLength: 512, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "character varying(512)", - oldMaxLength: 512, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "Visible", - table: "BlogSpot", - type: "boolean", - nullable: false, - defaultValue: false); - } - } -} diff --git a/src/Yavsc.Server/Migrations/20250613123306_notificationNulls.Designer.cs b/src/Yavsc.Server/Migrations/20250613123306_notificationNulls.Designer.cs deleted file mode 100644 index 39e27f99..00000000 --- a/src/Yavsc.Server/Migrations/20250613123306_notificationNulls.Designer.cs +++ /dev/null @@ -1,3505 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; -using Yavsc.Models; - -#nullable disable - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20250613123306_notificationNulls")] - partial class notificationNulls - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "9.0.6") - .HasAnnotation("Relational:MaxIdentifierLength", 63); - - NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasColumnType("text"); - - b.Property("Name") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("NormalizedName") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .IsUnique() - .HasDatabaseName("RoleNameIndex"); - - b.ToTable("AspNetRoles", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ClaimType") - .HasColumnType("text"); - - b.Property("ClaimValue") - .HasColumnType("text"); - - b.Property("RoleId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("RoleId"); - - b.ToTable("AspNetRoleClaims", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ClaimType") - .HasColumnType("text"); - - b.Property("ClaimValue") - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.ToTable("AspNetUserClaims", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => - { - b.Property("LoginProvider") - .HasColumnType("text"); - - b.Property("ProviderKey") - .HasColumnType("text"); - - b.Property("ProviderDisplayName") - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasIndex("UserId"); - - b.ToTable("AspNetUserLogins", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("RoleId") - .HasColumnType("text"); - - b.HasKey("UserId", "RoleId"); - - b.HasIndex("RoleId"); - - b.ToTable("AspNetUserRoles", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("LoginProvider") - .HasColumnType("text"); - - b.Property("Name") - .HasColumnType("text"); - - b.Property("Value") - .HasColumnType("text"); - - b.HasKey("UserId", "LoginProvider", "Name"); - - b.ToTable("AspNetUserTokens", (string)null); - }); - - modelBuilder.Entity("Yavsc.Abstract.Identity.ClientProviderInfo", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("Avatar") - .IsRequired() - .HasColumnType("text"); - - b.Property("BillingAddressId") - .HasColumnType("bigint"); - - b.Property("EMail") - .IsRequired() - .HasColumnType("text"); - - b.Property("Phone") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserName") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("ClientProviderInfo"); - }); - - modelBuilder.Entity("Yavsc.Abstract.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Target") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("body") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("click_action") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("color") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("icon") - .ValueGeneratedOnAdd() - .HasMaxLength(512) - .HasColumnType("character varying(512)") - .HasDefaultValue("exclam"); - - b.Property("sound") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("tag") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("title") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("character varying(1024)"); - - b.HasKey("Id"); - - b.ToTable("Notification"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Reason") - .IsRequired() - .HasColumnType("text"); - - b.Property("TargetId") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("TargetId"); - - b.ToTable("Ban"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.HasIndex("UserId"); - - b.ToTable("BlackListed"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId") - .HasColumnType("bigint"); - - b.Property("BlogPostId") - .HasColumnType("bigint"); - - b.HasKey("CircleId", "BlogPostId"); - - b.HasIndex("BlogPostId"); - - b.ToTable("CircleAuthorizationToBlogPost"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("ContactCredits") - .HasColumnType("bigint"); - - b.Property("Credits") - .HasColumnType("numeric"); - - b.HasKey("UserId"); - - b.ToTable("BankStatus"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("AccessFailedCount") - .HasColumnType("integer"); - - b.Property("AllowMonthlyEmail") - .HasColumnType("boolean"); - - b.Property("Avatar") - .IsRequired() - .ValueGeneratedOnAdd() - .HasMaxLength(512) - .HasColumnType("character varying(512)") - .HasDefaultValue("/images/Users/icon_user.png"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasColumnType("text"); - - b.Property("DedicatedGoogleCalendar") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("DiskQuota") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasDefaultValue(524288000L); - - b.Property("DiskUsage") - .HasColumnType("bigint"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("EmailConfirmed") - .HasColumnType("boolean"); - - b.Property("FullName") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("LockoutEnabled") - .HasColumnType("boolean"); - - b.Property("LockoutEnd") - .HasColumnType("timestamp with time zone"); - - b.Property("MaxFileSize") - .HasColumnType("bigint"); - - b.Property("NormalizedEmail") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("NormalizedUserName") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("PasswordHash") - .HasColumnType("text"); - - b.Property("PhoneNumber") - .HasColumnType("text"); - - b.Property("PhoneNumberConfirmed") - .HasColumnType("boolean"); - - b.Property("PostalAddressId") - .HasColumnType("bigint"); - - b.Property("SecurityStamp") - .HasColumnType("text"); - - b.Property("TwoFactorEnabled") - .HasColumnType("boolean"); - - b.Property("UserName") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.HasKey("Id"); - - b.HasAlternateKey("Email"); - - b.HasIndex("NormalizedEmail") - .HasDatabaseName("EmailIndex"); - - b.HasIndex("NormalizedUserName") - .IsUnique() - .HasDatabaseName("UserNameIndex"); - - b.HasIndex("PostalAddressId"); - - b.ToTable("AspNetUsers", (string)null); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("text"); - - b.Property("AccessTokenLifetime") - .HasColumnType("integer"); - - b.Property("Active") - .HasColumnType("boolean"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("character varying(128)"); - - b.Property("LogoutRedirectUri") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("RedirectUri") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("RefreshTokenLifeTime") - .HasColumnType("integer"); - - b.Property("Secret") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("Type") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("Applications"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.OAuth2Tokens", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("AccessToken") - .IsRequired() - .HasColumnType("text"); - - b.Property("Expiration") - .HasColumnType("timestamp with time zone"); - - b.Property("ExpiresIn") - .IsRequired() - .HasColumnType("text"); - - b.Property("RefreshToken") - .IsRequired() - .HasColumnType("text"); - - b.Property("TokenType") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("OAuth2Tokens"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("character varying(50)"); - - b.Property("ExpiresUtc") - .HasColumnType("timestamp with time zone"); - - b.Property("IssuedUtc") - .HasColumnType("timestamp with time zone"); - - b.Property("ProtectedTicket") - .IsRequired() - .HasColumnType("text"); - - b.Property("Subject") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("character varying(50)"); - - b.HasKey("Id"); - - b.ToTable("RefreshTokens"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Scope", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("character varying(1024)"); - - b.HasKey("Id"); - - b.ToTable("Scopes"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("BalanceId") - .IsRequired() - .HasColumnType("text"); - - b.Property("ExecDate") - .HasColumnType("timestamp with time zone"); - - b.Property("Impact") - .HasColumnType("numeric"); - - b.Property("Reason") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("BalanceId"); - - b.ToTable("BankBook"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AccountNumber") - .IsRequired() - .HasColumnType("text"); - - b.Property("BIC") - .IsRequired() - .HasColumnType("text"); - - b.Property("BankCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("BankedKey") - .HasColumnType("integer"); - - b.Property("IBAN") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.Property("WicketCode") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.ToTable("BankIdentity"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Count") - .HasColumnType("integer"); - - b.Property("Currency") - .IsRequired() - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("EstimateId") - .HasColumnType("bigint"); - - b.Property("EstimateTemplateId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("UnitaryCost") - .HasColumnType("numeric"); - - b.HasKey("Id"); - - b.HasIndex("EstimateId"); - - b.HasIndex("EstimateTemplateId"); - - b.ToTable("CommandLine"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AttachedFilesString") - .IsRequired() - .HasColumnType("text"); - - b.Property("AttachedGraphicsString") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientValidationDate") - .HasColumnType("timestamp with time zone"); - - b.Property("CommandId") - .HasColumnType("bigint"); - - b.Property("CommandType") - .IsRequired() - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("ProviderValidationDate") - .HasColumnType("timestamp with time zone"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ClientId"); - - b.HasIndex("CommandId"); - - b.HasIndex("OwnerId"); - - b.ToTable("Estimates"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("EstimateTemplates"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN") - .HasColumnType("text"); - - b.HasKey("SIREN"); - - b.ToTable("ExceptionsSIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AuthorId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Content") - .IsRequired() - .HasMaxLength(56224) - .HasColumnType("character varying(56224)"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Photo") - .HasMaxLength(1024) - .HasColumnType("character varying(1024)"); - - b.Property("Title") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("character varying(1024)"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("AuthorId"); - - b.ToTable("BlogSpot"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.Property("PostId") - .HasColumnType("bigint"); - - b.Property("TagId") - .HasColumnType("bigint"); - - b.HasKey("PostId", "TagId"); - - b.HasIndex("TagId"); - - b.ToTable("BlogTag"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AuthorId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Content") - .IsRequired() - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("ParentId") - .HasColumnType("bigint"); - - b.Property("ReceiverId") - .HasColumnType("bigint"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("Visible") - .HasColumnType("boolean"); - - b.HasKey("Id"); - - b.HasIndex("AuthorId"); - - b.HasIndex("ParentId"); - - b.HasIndex("ReceiverId"); - - b.ToTable("Comment"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Property("OwnerId") - .HasColumnType("text"); - - b.HasKey("OwnerId"); - - b.ToTable("Schedule"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("PeriodEnd") - .HasColumnType("timestamp with time zone"); - - b.Property("PeriodStart") - .HasColumnType("timestamp with time zone"); - - b.Property("Reccurence") - .HasColumnType("integer"); - - b.Property("ScheduleOwnerId") - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ScheduleOwnerId"); - - b.HasIndex("PeriodStart", "PeriodEnd"); - - b.ToTable("ScheduledEvent"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.Property("ConnectionId") - .HasColumnType("text"); - - b.Property("ApplicationUserId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Connected") - .HasColumnType("boolean"); - - b.Property("UserAgent") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("ConnectionId"); - - b.HasIndex("ApplicationUserId"); - - b.ToTable("ChatConnection"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.Property("Name") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("LatestJoinPart") - .HasColumnType("timestamp with time zone"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Topic") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Name"); - - b.HasIndex("OwnerId"); - - b.ToTable("ChatRoom"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomAccess", b => - { - b.Property("ChannelName") - .HasColumnType("text"); - - b.Property("UserId") - .HasColumnType("text"); - - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Level") - .HasColumnType("integer"); - - b.HasKey("ChannelName", "UserId"); - - b.HasIndex("UserId"); - - b.ToTable("ChatRoomAccess"); - }); - - modelBuilder.Entity("Yavsc.Models.Cratie.Option", b => - { - b.Property("Code") - .HasColumnType("text"); - - b.Property("CodeScrutin") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Code", "CodeScrutin"); - - b.ToTable("Option"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Blue") - .HasColumnType("smallint"); - - b.Property("Green") - .HasColumnType("smallint"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Red") - .HasColumnType("smallint"); - - b.HasKey("Id"); - - b.ToTable("Color"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("Summary") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("Form"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("ActionDistance") - .HasColumnType("integer"); - - b.Property("CarePrice") - .HasColumnType("numeric"); - - b.Property("FlatFeeDiscount") - .HasColumnType("numeric"); - - b.Property("HalfBalayagePrice") - .HasColumnType("numeric"); - - b.Property("HalfBrushingPrice") - .HasColumnType("numeric"); - - b.Property("HalfColorPrice") - .HasColumnType("numeric"); - - b.Property("HalfDefrisPrice") - .HasColumnType("numeric"); - - b.Property("HalfFoldingPrice") - .HasColumnType("numeric"); - - b.Property("HalfMechPrice") - .HasColumnType("numeric"); - - b.Property("HalfMultiColorPrice") - .HasColumnType("numeric"); - - b.Property("HalfPermanentPrice") - .HasColumnType("numeric"); - - b.Property("KidCutPrice") - .HasColumnType("numeric"); - - b.Property("LongBalayagePrice") - .HasColumnType("numeric"); - - b.Property("LongBrushingPrice") - .HasColumnType("numeric"); - - b.Property("LongColorPrice") - .HasColumnType("numeric"); - - b.Property("LongDefrisPrice") - .HasColumnType("numeric"); - - b.Property("LongFoldingPrice") - .HasColumnType("numeric"); - - b.Property("LongMechPrice") - .HasColumnType("numeric"); - - b.Property("LongMultiColorPrice") - .HasColumnType("numeric"); - - b.Property("LongPermanentPrice") - .HasColumnType("numeric"); - - b.Property("ManBrushPrice") - .HasColumnType("numeric"); - - b.Property("ManCutPrice") - .HasColumnType("numeric"); - - b.Property("ScheduleOwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("ShampooPrice") - .HasColumnType("numeric"); - - b.Property("ShortBalayagePrice") - .HasColumnType("numeric"); - - b.Property("ShortBrushingPrice") - .HasColumnType("numeric"); - - b.Property("ShortColorPrice") - .HasColumnType("numeric"); - - b.Property("ShortDefrisPrice") - .HasColumnType("numeric"); - - b.Property("ShortFoldingPrice") - .HasColumnType("numeric"); - - b.Property("ShortMechPrice") - .HasColumnType("numeric"); - - b.Property("ShortMultiColorPrice") - .HasColumnType("numeric"); - - b.Property("ShortPermanentPrice") - .HasColumnType("numeric"); - - b.Property("WomenHalfCutPrice") - .HasColumnType("numeric"); - - b.Property("WomenLongCutPrice") - .HasColumnType("numeric"); - - b.Property("WomenShortCutPrice") - .HasColumnType("numeric"); - - b.HasKey("UserId"); - - b.HasIndex("ScheduleOwnerId"); - - b.ToTable("BrusherProfile"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Accepted") - .HasColumnType("boolean"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("AdditionalInfo") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Decided") - .HasColumnType("boolean"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("EventDate") - .HasColumnType("timestamp with time zone"); - - b.Property("LocationId") - .HasColumnType("bigint"); - - b.Property("PaymentId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PrestationId") - .HasColumnType("bigint"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("SelectedProfileUserId") - .HasColumnType("text"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("LocationId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.HasIndex("PrestationId"); - - b.HasIndex("SelectedProfileUserId"); - - b.ToTable("HairCutQueries"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Accepted") - .HasColumnType("boolean"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Decided") - .HasColumnType("boolean"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("EventDate") - .HasColumnType("timestamp with time zone"); - - b.Property("LocationId") - .HasColumnType("bigint"); - - b.Property("PaymentId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("LocationId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.ToTable("HairMultiCutQueries"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Cares") - .HasColumnType("boolean"); - - b.Property("Cut") - .HasColumnType("boolean"); - - b.Property("Dressing") - .HasColumnType("integer"); - - b.Property("Gender") - .HasColumnType("integer"); - - b.Property("Length") - .HasColumnType("integer"); - - b.Property("Shampoo") - .HasColumnType("boolean"); - - b.Property("Tech") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("HairPrestation"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("PrestationId") - .HasColumnType("bigint"); - - b.Property("QueryId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("PrestationId"); - - b.HasIndex("QueryId"); - - b.ToTable("HairPrestationCollectionItem"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Brand") - .IsRequired() - .HasColumnType("text"); - - b.Property("ColorId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("ColorId"); - - b.ToTable("HairTaint"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.Property("TaintId") - .HasColumnType("bigint"); - - b.Property("PrestationId") - .HasColumnType("bigint"); - - b.HasKey("TaintId", "PrestationId"); - - b.HasIndex("PrestationId"); - - b.ToTable("HairTaintInstance"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Evolution.Feature", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("ShortName") - .IsRequired() - .HasColumnType("text"); - - b.Property("Status") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("Feature"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("FeatureId") - .HasColumnType("bigint"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("FeatureId"); - - b.ToTable("Bug"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.DeviceDeclaration", b => - { - b.Property("DeviceId") - .HasColumnType("text"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasColumnType("timestamp with time zone") - .HasDefaultValueSql("LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("LatestActivityUpdate") - .HasColumnType("timestamp with time zone"); - - b.Property("Model") - .IsRequired() - .HasColumnType("text"); - - b.Property("Platform") - .IsRequired() - .HasColumnType("text"); - - b.Property("Version") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("DeviceId"); - - b.HasIndex("DeviceOwnerId"); - - b.ToTable("DeviceDeclaration"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Depth") - .HasColumnType("numeric"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("Height") - .HasColumnType("numeric"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Price") - .HasColumnType("numeric"); - - b.Property("Public") - .HasColumnType("boolean"); - - b.Property("Weight") - .HasColumnType("numeric"); - - b.Property("Width") - .HasColumnType("numeric"); - - b.HasKey("Id"); - - b.ToTable("Products"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ContextId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Public") - .HasColumnType("boolean"); - - b.HasKey("Id"); - - b.HasIndex("ContextId"); - - b.ToTable("Services"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("For") - .HasColumnType("smallint"); - - b.Property("Message") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Sender") - .IsRequired() - .HasColumnType("text"); - - b.Property("Topic") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.ToTable("Announce"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DismissClicked", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("NotificationId") - .HasColumnType("bigint"); - - b.HasKey("UserId", "NotificationId"); - - b.HasIndex("NotificationId"); - - b.ToTable("DismissClicked"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("character varying(255)"); - - b.HasKey("Id"); - - b.ToTable("Instrument"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.InstrumentRating", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("InstrumentId") - .HasColumnType("bigint"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.HasAlternateKey("InstrumentId", "OwnerId"); - - b.HasIndex("OwnerId"); - - b.ToTable("InstrumentRating"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId") - .HasColumnType("text"); - - b.Property("DjSettingsUserId") - .HasColumnType("text"); - - b.Property("GeneralSettingsUserId") - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.Property("TendencyId") - .HasColumnType("bigint"); - - b.HasKey("OwnerProfileId"); - - b.HasIndex("DjSettingsUserId"); - - b.HasIndex("GeneralSettingsUserId"); - - b.ToTable("MusicalPreference"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("character varying(255)"); - - b.HasKey("Id"); - - b.ToTable("MusicalTendency"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("SoundCloudId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("DjSettings"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("GeneralSettings"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId") - .HasColumnType("bigint"); - - b.Property("UserId") - .HasColumnType("text"); - - b.HasKey("InstrumentId", "UserId"); - - b.HasIndex("UserId"); - - b.ToTable("Instrumentation"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Property("CreationToken") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("ExecutorId") - .IsRequired() - .HasColumnType("text"); - - b.Property("OrderReference") - .IsRequired() - .HasColumnType("text"); - - b.Property("PaypalPayerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("State") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("CreationToken"); - - b.HasIndex("ExecutorId"); - - b.ToTable("PayPalPayment"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ApplicationUserId") - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Public") - .HasColumnType("boolean"); - - b.HasKey("Id"); - - b.HasIndex("ApplicationUserId"); - - b.ToTable("Circle"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId") - .HasColumnType("text"); - - b.Property("CircleId") - .HasColumnType("bigint"); - - b.HasKey("MemberId", "CircleId"); - - b.HasIndex("CircleId"); - - b.ToTable("CircleMembers"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId") - .HasColumnType("text"); - - b.Property("UserId") - .HasColumnType("text"); - - b.Property("AddressId") - .HasColumnType("bigint"); - - b.Property("ApplicationUserId") - .HasColumnType("text"); - - b.Property("EMail") - .IsRequired() - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("OwnerId", "UserId"); - - b.HasIndex("AddressId"); - - b.HasIndex("ApplicationUserId"); - - b.ToTable("Contact"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.Property("HRef") - .HasColumnType("text"); - - b.Property("Method") - .HasColumnType("text"); - - b.Property("BrusherProfileUserId") - .HasColumnType("text"); - - b.Property("ContentType") - .IsRequired() - .HasColumnType("text"); - - b.Property("PayPalPaymentCreationToken") - .HasColumnType("text"); - - b.Property("Rel") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("HRef", "Method"); - - b.HasIndex("BrusherProfileUserId"); - - b.HasIndex("PayPalPaymentCreationToken"); - - b.ToTable("HyperLink"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Address") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("Latitude") - .HasColumnType("double precision"); - - b.Property("Longitude") - .HasColumnType("double precision"); - - b.HasKey("Id"); - - b.ToTable("Locations"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostalAddress", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("City") - .IsRequired() - .HasColumnType("text"); - - b.Property("Country") - .IsRequired() - .HasColumnType("text"); - - b.Property("PostalCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("Province") - .IsRequired() - .HasColumnType("text"); - - b.Property("State") - .IsRequired() - .HasColumnType("text"); - - b.Property("Street1") - .IsRequired() - .HasColumnType("text"); - - b.Property("Street2") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("PostalAddress"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("Tags"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("SiteSkills"); - }); - - modelBuilder.Entity("Yavsc.Models.Streaming.LiveFlow", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("DifferedFileName") - .IsRequired() - .HasColumnType("text"); - - b.Property("MediaType") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Pitch") - .IsRequired() - .HasColumnType("text"); - - b.Property("SequenceNumber") - .HasColumnType("integer"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.ToTable("LiveFlow"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("Hidden") - .HasColumnType("boolean"); - - b.Property("ModeratorGroupName") - .IsRequired() - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("ParentCode") - .HasColumnType("text"); - - b.Property("Photo") - .IsRequired() - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.Property("SettingsClassName") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Code"); - - b.HasIndex("ParentCode"); - - b.ToTable("Activities"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("FormationSettingsUserId") - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("WorkingForId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("FormationSettingsUserId"); - - b.HasIndex("PerformerId"); - - b.HasIndex("WorkingForId"); - - b.ToTable("CoWorking"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ActionName") - .IsRequired() - .HasColumnType("text"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.ToTable("CommandForm"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId") - .HasColumnType("text"); - - b.Property("AcceptNotifications") - .HasColumnType("boolean"); - - b.Property("AcceptPublicContact") - .HasColumnType("boolean"); - - b.Property("Active") - .HasColumnType("boolean"); - - b.Property("MaxDailyCost") - .HasColumnType("integer"); - - b.Property("MinDailyCost") - .HasColumnType("integer"); - - b.Property("OrganizationAddressId") - .HasColumnType("bigint"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.Property("SIREN") - .IsRequired() - .HasColumnType("text"); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients") - .HasColumnType("boolean"); - - b.Property("WebSite") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("PerformerId"); - - b.HasIndex("OrganizationAddressId"); - - b.ToTable("Performers"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("DisplayName") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("FormationSettings"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Accepted") - .HasColumnType("boolean"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Decided") - .HasColumnType("boolean"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("EventDate") - .HasColumnType("timestamp with time zone"); - - b.Property("LocationId") - .HasColumnType("bigint"); - - b.Property("LocationType") - .HasColumnType("integer"); - - b.Property("PaymentId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("Reason") - .IsRequired() - .HasColumnType("text"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("LocationId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.ToTable("RdvQueries"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode") - .HasColumnType("text"); - - b.Property("UserId") - .HasColumnType("text"); - - b.Property("Weight") - .HasColumnType("integer"); - - b.HasKey("DoesCode", "UserId"); - - b.HasIndex("UserId"); - - b.ToTable("UserActivities"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Calendar.Period", b => - { - b.Property("Start") - .HasColumnType("timestamp with time zone"); - - b.Property("End") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Start", "End"); - - b.ToTable("Period"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.EMailing.MailingTemplate", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("Body") - .IsRequired() - .HasMaxLength(65536) - .HasColumnType("character varying(65536)"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("ReplyToAddress") - .IsRequired() - .HasColumnType("text"); - - b.Property("ToSend") - .HasColumnType("integer"); - - b.Property("Topic") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("MailingTemplate"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Accepted") - .HasColumnType("boolean"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Decided") - .HasColumnType("boolean"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("GitId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PaymentId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.Property("Version") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("GitId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.ToTable("Project"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("ProjectId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("ProjectId"); - - b.ToTable("ProjectBuildConfiguration"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Branch") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Path") - .IsRequired() - .HasColumnType("text"); - - b.Property("Url") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.ToTable("GitRepositoryReference"); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null) - .WithMany() - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null) - .WithMany() - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "TargetUser") - .WithMany() - .HasForeignKey("TargetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TargetUser"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany("BlackList") - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost", "Target") - .WithMany("ACL") - .HasForeignKey("BlogPostId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Circle", "Allowed") - .WithMany() - .HasForeignKey("CircleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Allowed"); - - b.Navigation("Target"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithOne("AccountBalance") - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Relationship.Location", "PostalAddress") - .WithMany() - .HasForeignKey("PostalAddressId"); - - b.Navigation("PostalAddress"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance", "Balance") - .WithMany() - .HasForeignKey("BalanceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Balance"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany("BankInfo") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate", null) - .WithMany("Bill") - .HasForeignKey("EstimateId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate", null) - .WithMany("Bill") - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery", "Query") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Owner"); - - b.Navigation("Query"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Author") - .WithMany("Posts") - .HasForeignKey("AuthorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Author"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost", "Post") - .WithMany("Tags") - .HasForeignKey("PostId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Tag", "Tag") - .WithMany() - .HasForeignKey("TagId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Post"); - - b.Navigation("Tag"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Author") - .WithMany() - .HasForeignKey("AuthorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Blog.Comment", "Parent") - .WithMany("Children") - .HasForeignKey("ParentId"); - - b.HasOne("Yavsc.Models.Blog.BlogPost", "Post") - .WithMany("Comments") - .HasForeignKey("ReceiverId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Author"); - - b.Navigation("Parent"); - - b.Navigation("Post"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule", null) - .WithMany("Events") - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Server.Models.Calendar.Period", "Period") - .WithMany() - .HasForeignKey("PeriodStart", "PeriodEnd") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Period"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany("Connections") - .HasForeignKey("ApplicationUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany("Rooms") - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomAccess", b => - { - b.HasOne("Yavsc.Models.Chat.ChatRoom", "Room") - .WithMany("Moderation") - .HasForeignKey("ChannelName") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany("RoomAccess") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Room"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule", "Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "BaseProfile") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("BaseProfile"); - - b.Navigation("Schedule"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Location", "Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation", "Prestation") - .WithMany() - .HasForeignKey("PrestationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.BrusherProfile", "SelectedProfile") - .WithMany() - .HasForeignKey("SelectedProfileUserId"); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("Location"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Prestation"); - - b.Navigation("Regularisation"); - - b.Navigation("SelectedProfile"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Location", "Location") - .WithMany() - .HasForeignKey("LocationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("Location"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Regularisation"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation", "Prestation") - .WithMany() - .HasForeignKey("PrestationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery", "Query") - .WithMany("Prestations") - .HasForeignKey("QueryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Prestation"); - - b.Navigation("Query"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color", "Color") - .WithMany() - .HasForeignKey("ColorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Color"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation", "Prestation") - .WithMany("Taints") - .HasForeignKey("PrestationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.HairTaint", "Taint") - .WithMany() - .HasForeignKey("TaintId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Prestation"); - - b.Navigation("Taint"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.HasOne("Yavsc.Models.IT.Evolution.Feature", "False") - .WithMany() - .HasForeignKey("FeatureId"); - - b.Navigation("False"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.DeviceDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "DeviceOwner") - .WithMany("DeviceDeclaration") - .HasForeignKey("DeviceOwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("DeviceOwner"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany("Services") - .HasForeignKey("ContextId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Context"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DismissClicked", b => - { - b.HasOne("Yavsc.Abstract.Models.Messaging.Notification", "Notified") - .WithMany() - .HasForeignKey("NotificationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Notified"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.InstrumentRating", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument", "Instrument") - .WithMany() - .HasForeignKey("InstrumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "Profile") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Instrument"); - - b.Navigation("Profile"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings", null) - .WithMany("SoundColor") - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings", null) - .WithMany("SoundColor") - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument", "Tool") - .WithMany() - .HasForeignKey("InstrumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tool"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Executor") - .WithMany() - .HasForeignKey("ExecutorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Executor"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany("Circles") - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle", "Circle") - .WithMany("Members") - .HasForeignKey("CircleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Member") - .WithMany("Membership") - .HasForeignKey("MemberId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Circle"); - - b.Navigation("Member"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.Relationship.PostalAddress", "PostalAddress") - .WithMany() - .HasForeignKey("AddressId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany("Book") - .HasForeignKey("ApplicationUserId"); - - b.Navigation("PostalAddress"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.HasOne("Yavsc.Models.Haircut.BrusherProfile", null) - .WithMany("Links") - .HasForeignKey("BrusherProfileUserId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", null) - .WithMany("Links") - .HasForeignKey("PayPalPaymentCreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Streaming.LiveFlow", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Parent") - .WithMany("Children") - .HasForeignKey("ParentCode"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings", null) - .WithMany("CoWorking") - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "Performer") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "WorkingFor") - .WithMany() - .HasForeignKey("WorkingForId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Performer"); - - b.Navigation("WorkingFor"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany("Forms") - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Context"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location", "OrganizationAddress") - .WithMany() - .HasForeignKey("OrganizationAddressId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Performer") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("OrganizationAddress"); - - b.Navigation("Performer"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Location", "Location") - .WithMany() - .HasForeignKey("LocationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("Location"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Regularisation"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Does") - .WithMany() - .HasForeignKey("DoesCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "User") - .WithMany("Activity") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Does"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", "Repository") - .WithMany() - .HasForeignKey("GitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Regularisation"); - - b.Navigation("Repository"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.HasOne("Yavsc.Server.Models.IT.Project", "TargetProject") - .WithMany("Configurations") - .HasForeignKey("ProjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TargetProject"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Navigation("AccountBalance") - .IsRequired(); - - b.Navigation("BankInfo"); - - b.Navigation("BlackList"); - - b.Navigation("Book"); - - b.Navigation("Circles"); - - b.Navigation("Connections"); - - b.Navigation("DeviceDeclaration"); - - b.Navigation("Membership"); - - b.Navigation("Posts"); - - b.Navigation("RoomAccess"); - - b.Navigation("Rooms"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Navigation("Bill"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Navigation("Bill"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.Navigation("ACL"); - - b.Navigation("Comments"); - - b.Navigation("Tags"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.Navigation("Children"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Navigation("Events"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.Navigation("Moderation"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Navigation("Links"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Navigation("Prestations"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Navigation("Taints"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Navigation("SoundColor"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Navigation("SoundColor"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Navigation("Links"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Navigation("Members"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Navigation("Children"); - - b.Navigation("Forms"); - - b.Navigation("Services"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Navigation("Activity"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Navigation("CoWorking"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.Navigation("Configurations"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/Yavsc.Server/Migrations/20250613123306_notificationNulls.cs b/src/Yavsc.Server/Migrations/20250613123306_notificationNulls.cs deleted file mode 100644 index 794dfae2..00000000 --- a/src/Yavsc.Server/Migrations/20250613123306_notificationNulls.cs +++ /dev/null @@ -1,109 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace Yavsc.Migrations -{ - /// - public partial class notificationNulls : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "tag", - table: "Notification", - type: "character varying(512)", - maxLength: 512, - nullable: true, - oldClrType: typeof(string), - oldType: "character varying(512)", - oldMaxLength: 512); - - migrationBuilder.AlterColumn( - name: "sound", - table: "Notification", - type: "character varying(512)", - maxLength: 512, - nullable: true, - oldClrType: typeof(string), - oldType: "character varying(512)", - oldMaxLength: 512); - - migrationBuilder.AlterColumn( - name: "icon", - table: "Notification", - type: "character varying(512)", - maxLength: 512, - nullable: true, - defaultValue: "exclam", - oldClrType: typeof(string), - oldType: "character varying(512)", - oldMaxLength: 512, - oldDefaultValue: "exclam"); - - migrationBuilder.AlterColumn( - name: "color", - table: "Notification", - type: "character varying(512)", - maxLength: 512, - nullable: true, - oldClrType: typeof(string), - oldType: "character varying(512)", - oldMaxLength: 512); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "tag", - table: "Notification", - type: "character varying(512)", - maxLength: 512, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "character varying(512)", - oldMaxLength: 512, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "sound", - table: "Notification", - type: "character varying(512)", - maxLength: 512, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "character varying(512)", - oldMaxLength: 512, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "icon", - table: "Notification", - type: "character varying(512)", - maxLength: 512, - nullable: false, - defaultValue: "exclam", - oldClrType: typeof(string), - oldType: "character varying(512)", - oldMaxLength: 512, - oldNullable: true, - oldDefaultValue: "exclam"); - - migrationBuilder.AlterColumn( - name: "color", - table: "Notification", - type: "character varying(512)", - maxLength: 512, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "character varying(512)", - oldMaxLength: 512, - oldNullable: true); - } - } -} diff --git a/src/Yavsc.Server/Migrations/20250613131533_trackedNulls.Designer.cs b/src/Yavsc.Server/Migrations/20250613131533_trackedNulls.Designer.cs deleted file mode 100644 index 61b92b47..00000000 --- a/src/Yavsc.Server/Migrations/20250613131533_trackedNulls.Designer.cs +++ /dev/null @@ -1,3505 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; -using Yavsc.Models; - -#nullable disable - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20250613131533_trackedNulls")] - partial class trackedNulls - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "9.0.6") - .HasAnnotation("Relational:MaxIdentifierLength", 63); - - NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasColumnType("text"); - - b.Property("Name") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("NormalizedName") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .IsUnique() - .HasDatabaseName("RoleNameIndex"); - - b.ToTable("AspNetRoles", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ClaimType") - .HasColumnType("text"); - - b.Property("ClaimValue") - .HasColumnType("text"); - - b.Property("RoleId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("RoleId"); - - b.ToTable("AspNetRoleClaims", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ClaimType") - .HasColumnType("text"); - - b.Property("ClaimValue") - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.ToTable("AspNetUserClaims", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => - { - b.Property("LoginProvider") - .HasColumnType("text"); - - b.Property("ProviderKey") - .HasColumnType("text"); - - b.Property("ProviderDisplayName") - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasIndex("UserId"); - - b.ToTable("AspNetUserLogins", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("RoleId") - .HasColumnType("text"); - - b.HasKey("UserId", "RoleId"); - - b.HasIndex("RoleId"); - - b.ToTable("AspNetUserRoles", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("LoginProvider") - .HasColumnType("text"); - - b.Property("Name") - .HasColumnType("text"); - - b.Property("Value") - .HasColumnType("text"); - - b.HasKey("UserId", "LoginProvider", "Name"); - - b.ToTable("AspNetUserTokens", (string)null); - }); - - modelBuilder.Entity("Yavsc.Abstract.Identity.ClientProviderInfo", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("Avatar") - .IsRequired() - .HasColumnType("text"); - - b.Property("BillingAddressId") - .HasColumnType("bigint"); - - b.Property("EMail") - .IsRequired() - .HasColumnType("text"); - - b.Property("Phone") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserName") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("ClientProviderInfo"); - }); - - modelBuilder.Entity("Yavsc.Abstract.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Target") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("body") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("click_action") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("color") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("icon") - .ValueGeneratedOnAdd() - .HasMaxLength(512) - .HasColumnType("character varying(512)") - .HasDefaultValue("exclam"); - - b.Property("sound") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("tag") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("title") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("character varying(1024)"); - - b.HasKey("Id"); - - b.ToTable("Notification"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Reason") - .IsRequired() - .HasColumnType("text"); - - b.Property("TargetId") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("TargetId"); - - b.ToTable("Ban"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.HasIndex("UserId"); - - b.ToTable("BlackListed"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId") - .HasColumnType("bigint"); - - b.Property("BlogPostId") - .HasColumnType("bigint"); - - b.HasKey("CircleId", "BlogPostId"); - - b.HasIndex("BlogPostId"); - - b.ToTable("CircleAuthorizationToBlogPost"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("ContactCredits") - .HasColumnType("bigint"); - - b.Property("Credits") - .HasColumnType("numeric"); - - b.HasKey("UserId"); - - b.ToTable("BankStatus"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("AccessFailedCount") - .HasColumnType("integer"); - - b.Property("AllowMonthlyEmail") - .HasColumnType("boolean"); - - b.Property("Avatar") - .IsRequired() - .ValueGeneratedOnAdd() - .HasMaxLength(512) - .HasColumnType("character varying(512)") - .HasDefaultValue("/images/Users/icon_user.png"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasColumnType("text"); - - b.Property("DedicatedGoogleCalendar") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("DiskQuota") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasDefaultValue(524288000L); - - b.Property("DiskUsage") - .HasColumnType("bigint"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("EmailConfirmed") - .HasColumnType("boolean"); - - b.Property("FullName") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("LockoutEnabled") - .HasColumnType("boolean"); - - b.Property("LockoutEnd") - .HasColumnType("timestamp with time zone"); - - b.Property("MaxFileSize") - .HasColumnType("bigint"); - - b.Property("NormalizedEmail") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("NormalizedUserName") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("PasswordHash") - .HasColumnType("text"); - - b.Property("PhoneNumber") - .HasColumnType("text"); - - b.Property("PhoneNumberConfirmed") - .HasColumnType("boolean"); - - b.Property("PostalAddressId") - .HasColumnType("bigint"); - - b.Property("SecurityStamp") - .HasColumnType("text"); - - b.Property("TwoFactorEnabled") - .HasColumnType("boolean"); - - b.Property("UserName") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.HasKey("Id"); - - b.HasAlternateKey("Email"); - - b.HasIndex("NormalizedEmail") - .HasDatabaseName("EmailIndex"); - - b.HasIndex("NormalizedUserName") - .IsUnique() - .HasDatabaseName("UserNameIndex"); - - b.HasIndex("PostalAddressId"); - - b.ToTable("AspNetUsers", (string)null); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("text"); - - b.Property("AccessTokenLifetime") - .HasColumnType("integer"); - - b.Property("Active") - .HasColumnType("boolean"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("character varying(128)"); - - b.Property("LogoutRedirectUri") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("RedirectUri") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("RefreshTokenLifeTime") - .HasColumnType("integer"); - - b.Property("Secret") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("Type") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("Applications"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.OAuth2Tokens", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("AccessToken") - .IsRequired() - .HasColumnType("text"); - - b.Property("Expiration") - .HasColumnType("timestamp with time zone"); - - b.Property("ExpiresIn") - .IsRequired() - .HasColumnType("text"); - - b.Property("RefreshToken") - .IsRequired() - .HasColumnType("text"); - - b.Property("TokenType") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("OAuth2Tokens"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("character varying(50)"); - - b.Property("ExpiresUtc") - .HasColumnType("timestamp with time zone"); - - b.Property("IssuedUtc") - .HasColumnType("timestamp with time zone"); - - b.Property("ProtectedTicket") - .IsRequired() - .HasColumnType("text"); - - b.Property("Subject") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("character varying(50)"); - - b.HasKey("Id"); - - b.ToTable("RefreshTokens"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Scope", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("character varying(1024)"); - - b.HasKey("Id"); - - b.ToTable("Scopes"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("BalanceId") - .IsRequired() - .HasColumnType("text"); - - b.Property("ExecDate") - .HasColumnType("timestamp with time zone"); - - b.Property("Impact") - .HasColumnType("numeric"); - - b.Property("Reason") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("BalanceId"); - - b.ToTable("BankBook"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AccountNumber") - .IsRequired() - .HasColumnType("text"); - - b.Property("BIC") - .IsRequired() - .HasColumnType("text"); - - b.Property("BankCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("BankedKey") - .HasColumnType("integer"); - - b.Property("IBAN") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.Property("WicketCode") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.ToTable("BankIdentity"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Count") - .HasColumnType("integer"); - - b.Property("Currency") - .IsRequired() - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("EstimateId") - .HasColumnType("bigint"); - - b.Property("EstimateTemplateId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("UnitaryCost") - .HasColumnType("numeric"); - - b.HasKey("Id"); - - b.HasIndex("EstimateId"); - - b.HasIndex("EstimateTemplateId"); - - b.ToTable("CommandLine"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AttachedFilesString") - .IsRequired() - .HasColumnType("text"); - - b.Property("AttachedGraphicsString") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientValidationDate") - .HasColumnType("timestamp with time zone"); - - b.Property("CommandId") - .HasColumnType("bigint"); - - b.Property("CommandType") - .IsRequired() - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("ProviderValidationDate") - .HasColumnType("timestamp with time zone"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ClientId"); - - b.HasIndex("CommandId"); - - b.HasIndex("OwnerId"); - - b.ToTable("Estimates"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("EstimateTemplates"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN") - .HasColumnType("text"); - - b.HasKey("SIREN"); - - b.ToTable("ExceptionsSIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AuthorId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Content") - .IsRequired() - .HasMaxLength(56224) - .HasColumnType("character varying(56224)"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Photo") - .HasMaxLength(1024) - .HasColumnType("character varying(1024)"); - - b.Property("Title") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("character varying(1024)"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("AuthorId"); - - b.ToTable("BlogSpot"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.Property("PostId") - .HasColumnType("bigint"); - - b.Property("TagId") - .HasColumnType("bigint"); - - b.HasKey("PostId", "TagId"); - - b.HasIndex("TagId"); - - b.ToTable("BlogTag"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AuthorId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Content") - .IsRequired() - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("ParentId") - .HasColumnType("bigint"); - - b.Property("ReceiverId") - .HasColumnType("bigint"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("Visible") - .HasColumnType("boolean"); - - b.HasKey("Id"); - - b.HasIndex("AuthorId"); - - b.HasIndex("ParentId"); - - b.HasIndex("ReceiverId"); - - b.ToTable("Comment"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Property("OwnerId") - .HasColumnType("text"); - - b.HasKey("OwnerId"); - - b.ToTable("Schedule"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("PeriodEnd") - .HasColumnType("timestamp with time zone"); - - b.Property("PeriodStart") - .HasColumnType("timestamp with time zone"); - - b.Property("Reccurence") - .HasColumnType("integer"); - - b.Property("ScheduleOwnerId") - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ScheduleOwnerId"); - - b.HasIndex("PeriodStart", "PeriodEnd"); - - b.ToTable("ScheduledEvent"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.Property("ConnectionId") - .HasColumnType("text"); - - b.Property("ApplicationUserId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Connected") - .HasColumnType("boolean"); - - b.Property("UserAgent") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("ConnectionId"); - - b.HasIndex("ApplicationUserId"); - - b.ToTable("ChatConnection"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.Property("Name") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("LatestJoinPart") - .HasColumnType("timestamp with time zone"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Topic") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Name"); - - b.HasIndex("OwnerId"); - - b.ToTable("ChatRoom"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomAccess", b => - { - b.Property("ChannelName") - .HasColumnType("text"); - - b.Property("UserId") - .HasColumnType("text"); - - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Level") - .HasColumnType("integer"); - - b.HasKey("ChannelName", "UserId"); - - b.HasIndex("UserId"); - - b.ToTable("ChatRoomAccess"); - }); - - modelBuilder.Entity("Yavsc.Models.Cratie.Option", b => - { - b.Property("Code") - .HasColumnType("text"); - - b.Property("CodeScrutin") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Code", "CodeScrutin"); - - b.ToTable("Option"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Blue") - .HasColumnType("smallint"); - - b.Property("Green") - .HasColumnType("smallint"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Red") - .HasColumnType("smallint"); - - b.HasKey("Id"); - - b.ToTable("Color"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("Summary") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("Form"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("ActionDistance") - .HasColumnType("integer"); - - b.Property("CarePrice") - .HasColumnType("numeric"); - - b.Property("FlatFeeDiscount") - .HasColumnType("numeric"); - - b.Property("HalfBalayagePrice") - .HasColumnType("numeric"); - - b.Property("HalfBrushingPrice") - .HasColumnType("numeric"); - - b.Property("HalfColorPrice") - .HasColumnType("numeric"); - - b.Property("HalfDefrisPrice") - .HasColumnType("numeric"); - - b.Property("HalfFoldingPrice") - .HasColumnType("numeric"); - - b.Property("HalfMechPrice") - .HasColumnType("numeric"); - - b.Property("HalfMultiColorPrice") - .HasColumnType("numeric"); - - b.Property("HalfPermanentPrice") - .HasColumnType("numeric"); - - b.Property("KidCutPrice") - .HasColumnType("numeric"); - - b.Property("LongBalayagePrice") - .HasColumnType("numeric"); - - b.Property("LongBrushingPrice") - .HasColumnType("numeric"); - - b.Property("LongColorPrice") - .HasColumnType("numeric"); - - b.Property("LongDefrisPrice") - .HasColumnType("numeric"); - - b.Property("LongFoldingPrice") - .HasColumnType("numeric"); - - b.Property("LongMechPrice") - .HasColumnType("numeric"); - - b.Property("LongMultiColorPrice") - .HasColumnType("numeric"); - - b.Property("LongPermanentPrice") - .HasColumnType("numeric"); - - b.Property("ManBrushPrice") - .HasColumnType("numeric"); - - b.Property("ManCutPrice") - .HasColumnType("numeric"); - - b.Property("ScheduleOwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("ShampooPrice") - .HasColumnType("numeric"); - - b.Property("ShortBalayagePrice") - .HasColumnType("numeric"); - - b.Property("ShortBrushingPrice") - .HasColumnType("numeric"); - - b.Property("ShortColorPrice") - .HasColumnType("numeric"); - - b.Property("ShortDefrisPrice") - .HasColumnType("numeric"); - - b.Property("ShortFoldingPrice") - .HasColumnType("numeric"); - - b.Property("ShortMechPrice") - .HasColumnType("numeric"); - - b.Property("ShortMultiColorPrice") - .HasColumnType("numeric"); - - b.Property("ShortPermanentPrice") - .HasColumnType("numeric"); - - b.Property("WomenHalfCutPrice") - .HasColumnType("numeric"); - - b.Property("WomenLongCutPrice") - .HasColumnType("numeric"); - - b.Property("WomenShortCutPrice") - .HasColumnType("numeric"); - - b.HasKey("UserId"); - - b.HasIndex("ScheduleOwnerId"); - - b.ToTable("BrusherProfile"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Accepted") - .HasColumnType("boolean"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("AdditionalInfo") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Decided") - .HasColumnType("boolean"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("EventDate") - .HasColumnType("timestamp with time zone"); - - b.Property("LocationId") - .HasColumnType("bigint"); - - b.Property("PaymentId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PrestationId") - .HasColumnType("bigint"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("SelectedProfileUserId") - .HasColumnType("text"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("LocationId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.HasIndex("PrestationId"); - - b.HasIndex("SelectedProfileUserId"); - - b.ToTable("HairCutQueries"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Accepted") - .HasColumnType("boolean"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Decided") - .HasColumnType("boolean"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("EventDate") - .HasColumnType("timestamp with time zone"); - - b.Property("LocationId") - .HasColumnType("bigint"); - - b.Property("PaymentId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("LocationId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.ToTable("HairMultiCutQueries"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Cares") - .HasColumnType("boolean"); - - b.Property("Cut") - .HasColumnType("boolean"); - - b.Property("Dressing") - .HasColumnType("integer"); - - b.Property("Gender") - .HasColumnType("integer"); - - b.Property("Length") - .HasColumnType("integer"); - - b.Property("Shampoo") - .HasColumnType("boolean"); - - b.Property("Tech") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("HairPrestation"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("PrestationId") - .HasColumnType("bigint"); - - b.Property("QueryId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("PrestationId"); - - b.HasIndex("QueryId"); - - b.ToTable("HairPrestationCollectionItem"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Brand") - .IsRequired() - .HasColumnType("text"); - - b.Property("ColorId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("ColorId"); - - b.ToTable("HairTaint"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.Property("TaintId") - .HasColumnType("bigint"); - - b.Property("PrestationId") - .HasColumnType("bigint"); - - b.HasKey("TaintId", "PrestationId"); - - b.HasIndex("PrestationId"); - - b.ToTable("HairTaintInstance"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Evolution.Feature", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("ShortName") - .IsRequired() - .HasColumnType("text"); - - b.Property("Status") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("Feature"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("FeatureId") - .HasColumnType("bigint"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("FeatureId"); - - b.ToTable("Bug"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.DeviceDeclaration", b => - { - b.Property("DeviceId") - .HasColumnType("text"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasColumnType("timestamp with time zone") - .HasDefaultValueSql("LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("LatestActivityUpdate") - .HasColumnType("timestamp with time zone"); - - b.Property("Model") - .IsRequired() - .HasColumnType("text"); - - b.Property("Platform") - .IsRequired() - .HasColumnType("text"); - - b.Property("Version") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("DeviceId"); - - b.HasIndex("DeviceOwnerId"); - - b.ToTable("DeviceDeclaration"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Depth") - .HasColumnType("numeric"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("Height") - .HasColumnType("numeric"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Price") - .HasColumnType("numeric"); - - b.Property("Public") - .HasColumnType("boolean"); - - b.Property("Weight") - .HasColumnType("numeric"); - - b.Property("Width") - .HasColumnType("numeric"); - - b.HasKey("Id"); - - b.ToTable("Products"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ContextId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Public") - .HasColumnType("boolean"); - - b.HasKey("Id"); - - b.HasIndex("ContextId"); - - b.ToTable("Services"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("For") - .HasColumnType("smallint"); - - b.Property("Message") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Sender") - .IsRequired() - .HasColumnType("text"); - - b.Property("Topic") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.ToTable("Announce"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DismissClicked", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("NotificationId") - .HasColumnType("bigint"); - - b.HasKey("UserId", "NotificationId"); - - b.HasIndex("NotificationId"); - - b.ToTable("DismissClicked"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("character varying(255)"); - - b.HasKey("Id"); - - b.ToTable("Instrument"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.InstrumentRating", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("InstrumentId") - .HasColumnType("bigint"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.HasAlternateKey("InstrumentId", "OwnerId"); - - b.HasIndex("OwnerId"); - - b.ToTable("InstrumentRating"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId") - .HasColumnType("text"); - - b.Property("DjSettingsUserId") - .HasColumnType("text"); - - b.Property("GeneralSettingsUserId") - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.Property("TendencyId") - .HasColumnType("bigint"); - - b.HasKey("OwnerProfileId"); - - b.HasIndex("DjSettingsUserId"); - - b.HasIndex("GeneralSettingsUserId"); - - b.ToTable("MusicalPreference"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("character varying(255)"); - - b.HasKey("Id"); - - b.ToTable("MusicalTendency"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("SoundCloudId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("DjSettings"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("GeneralSettings"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId") - .HasColumnType("bigint"); - - b.Property("UserId") - .HasColumnType("text"); - - b.HasKey("InstrumentId", "UserId"); - - b.HasIndex("UserId"); - - b.ToTable("Instrumentation"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Property("CreationToken") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("ExecutorId") - .IsRequired() - .HasColumnType("text"); - - b.Property("OrderReference") - .IsRequired() - .HasColumnType("text"); - - b.Property("PaypalPayerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("State") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("CreationToken"); - - b.HasIndex("ExecutorId"); - - b.ToTable("PayPalPayment"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ApplicationUserId") - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Public") - .HasColumnType("boolean"); - - b.HasKey("Id"); - - b.HasIndex("ApplicationUserId"); - - b.ToTable("Circle"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId") - .HasColumnType("text"); - - b.Property("CircleId") - .HasColumnType("bigint"); - - b.HasKey("MemberId", "CircleId"); - - b.HasIndex("CircleId"); - - b.ToTable("CircleMembers"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId") - .HasColumnType("text"); - - b.Property("UserId") - .HasColumnType("text"); - - b.Property("AddressId") - .HasColumnType("bigint"); - - b.Property("ApplicationUserId") - .HasColumnType("text"); - - b.Property("EMail") - .IsRequired() - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("OwnerId", "UserId"); - - b.HasIndex("AddressId"); - - b.HasIndex("ApplicationUserId"); - - b.ToTable("Contact"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.Property("HRef") - .HasColumnType("text"); - - b.Property("Method") - .HasColumnType("text"); - - b.Property("BrusherProfileUserId") - .HasColumnType("text"); - - b.Property("ContentType") - .IsRequired() - .HasColumnType("text"); - - b.Property("PayPalPaymentCreationToken") - .HasColumnType("text"); - - b.Property("Rel") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("HRef", "Method"); - - b.HasIndex("BrusherProfileUserId"); - - b.HasIndex("PayPalPaymentCreationToken"); - - b.ToTable("HyperLink"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Address") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("Latitude") - .HasColumnType("double precision"); - - b.Property("Longitude") - .HasColumnType("double precision"); - - b.HasKey("Id"); - - b.ToTable("Locations"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostalAddress", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("City") - .IsRequired() - .HasColumnType("text"); - - b.Property("Country") - .IsRequired() - .HasColumnType("text"); - - b.Property("PostalCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("Province") - .IsRequired() - .HasColumnType("text"); - - b.Property("State") - .IsRequired() - .HasColumnType("text"); - - b.Property("Street1") - .IsRequired() - .HasColumnType("text"); - - b.Property("Street2") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("PostalAddress"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("Tags"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("SiteSkills"); - }); - - modelBuilder.Entity("Yavsc.Models.Streaming.LiveFlow", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("DifferedFileName") - .IsRequired() - .HasColumnType("text"); - - b.Property("MediaType") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Pitch") - .IsRequired() - .HasColumnType("text"); - - b.Property("SequenceNumber") - .HasColumnType("integer"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.ToTable("LiveFlow"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("Hidden") - .HasColumnType("boolean"); - - b.Property("ModeratorGroupName") - .IsRequired() - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("ParentCode") - .HasColumnType("text"); - - b.Property("Photo") - .IsRequired() - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.Property("SettingsClassName") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Code"); - - b.HasIndex("ParentCode"); - - b.ToTable("Activities"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("FormationSettingsUserId") - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("WorkingForId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("FormationSettingsUserId"); - - b.HasIndex("PerformerId"); - - b.HasIndex("WorkingForId"); - - b.ToTable("CoWorking"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ActionName") - .IsRequired() - .HasColumnType("text"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.ToTable("CommandForm"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId") - .HasColumnType("text"); - - b.Property("AcceptNotifications") - .HasColumnType("boolean"); - - b.Property("AcceptPublicContact") - .HasColumnType("boolean"); - - b.Property("Active") - .HasColumnType("boolean"); - - b.Property("MaxDailyCost") - .HasColumnType("integer"); - - b.Property("MinDailyCost") - .HasColumnType("integer"); - - b.Property("OrganizationAddressId") - .HasColumnType("bigint"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.Property("SIREN") - .IsRequired() - .HasColumnType("text"); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients") - .HasColumnType("boolean"); - - b.Property("WebSite") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("PerformerId"); - - b.HasIndex("OrganizationAddressId"); - - b.ToTable("Performers"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("DisplayName") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("FormationSettings"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Accepted") - .HasColumnType("boolean"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Decided") - .HasColumnType("boolean"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("EventDate") - .HasColumnType("timestamp with time zone"); - - b.Property("LocationId") - .HasColumnType("bigint"); - - b.Property("LocationType") - .HasColumnType("integer"); - - b.Property("PaymentId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("Reason") - .IsRequired() - .HasColumnType("text"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("LocationId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.ToTable("RdvQueries"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode") - .HasColumnType("text"); - - b.Property("UserId") - .HasColumnType("text"); - - b.Property("Weight") - .HasColumnType("integer"); - - b.HasKey("DoesCode", "UserId"); - - b.HasIndex("UserId"); - - b.ToTable("UserActivities"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Calendar.Period", b => - { - b.Property("Start") - .HasColumnType("timestamp with time zone"); - - b.Property("End") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Start", "End"); - - b.ToTable("Period"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.EMailing.MailingTemplate", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("Body") - .IsRequired() - .HasMaxLength(65536) - .HasColumnType("character varying(65536)"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("ReplyToAddress") - .IsRequired() - .HasColumnType("text"); - - b.Property("ToSend") - .HasColumnType("integer"); - - b.Property("Topic") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("MailingTemplate"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Accepted") - .HasColumnType("boolean"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Decided") - .HasColumnType("boolean"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("GitId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PaymentId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.Property("Version") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("GitId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.ToTable("Project"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("ProjectId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("ProjectId"); - - b.ToTable("ProjectBuildConfiguration"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Branch") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Path") - .IsRequired() - .HasColumnType("text"); - - b.Property("Url") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.ToTable("GitRepositoryReference"); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null) - .WithMany() - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null) - .WithMany() - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "TargetUser") - .WithMany() - .HasForeignKey("TargetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TargetUser"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany("BlackList") - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost", "Target") - .WithMany("ACL") - .HasForeignKey("BlogPostId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Circle", "Allowed") - .WithMany() - .HasForeignKey("CircleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Allowed"); - - b.Navigation("Target"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithOne("AccountBalance") - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Relationship.Location", "PostalAddress") - .WithMany() - .HasForeignKey("PostalAddressId"); - - b.Navigation("PostalAddress"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance", "Balance") - .WithMany() - .HasForeignKey("BalanceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Balance"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany("BankInfo") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate", null) - .WithMany("Bill") - .HasForeignKey("EstimateId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate", null) - .WithMany("Bill") - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery", "Query") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Owner"); - - b.Navigation("Query"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Author") - .WithMany("Posts") - .HasForeignKey("AuthorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Author"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost", "Post") - .WithMany("Tags") - .HasForeignKey("PostId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Tag", "Tag") - .WithMany() - .HasForeignKey("TagId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Post"); - - b.Navigation("Tag"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Author") - .WithMany() - .HasForeignKey("AuthorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Blog.Comment", "Parent") - .WithMany("Children") - .HasForeignKey("ParentId"); - - b.HasOne("Yavsc.Models.Blog.BlogPost", "Post") - .WithMany("Comments") - .HasForeignKey("ReceiverId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Author"); - - b.Navigation("Parent"); - - b.Navigation("Post"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule", null) - .WithMany("Events") - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Server.Models.Calendar.Period", "Period") - .WithMany() - .HasForeignKey("PeriodStart", "PeriodEnd") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Period"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany("Connections") - .HasForeignKey("ApplicationUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany("Rooms") - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomAccess", b => - { - b.HasOne("Yavsc.Models.Chat.ChatRoom", "Room") - .WithMany("Moderation") - .HasForeignKey("ChannelName") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany("RoomAccess") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Room"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule", "Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "BaseProfile") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("BaseProfile"); - - b.Navigation("Schedule"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Location", "Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation", "Prestation") - .WithMany() - .HasForeignKey("PrestationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.BrusherProfile", "SelectedProfile") - .WithMany() - .HasForeignKey("SelectedProfileUserId"); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("Location"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Prestation"); - - b.Navigation("Regularisation"); - - b.Navigation("SelectedProfile"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Location", "Location") - .WithMany() - .HasForeignKey("LocationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("Location"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Regularisation"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation", "Prestation") - .WithMany() - .HasForeignKey("PrestationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery", "Query") - .WithMany("Prestations") - .HasForeignKey("QueryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Prestation"); - - b.Navigation("Query"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color", "Color") - .WithMany() - .HasForeignKey("ColorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Color"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation", "Prestation") - .WithMany("Taints") - .HasForeignKey("PrestationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.HairTaint", "Taint") - .WithMany() - .HasForeignKey("TaintId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Prestation"); - - b.Navigation("Taint"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.HasOne("Yavsc.Models.IT.Evolution.Feature", "False") - .WithMany() - .HasForeignKey("FeatureId"); - - b.Navigation("False"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.DeviceDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "DeviceOwner") - .WithMany("DeviceDeclaration") - .HasForeignKey("DeviceOwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("DeviceOwner"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany("Services") - .HasForeignKey("ContextId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Context"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DismissClicked", b => - { - b.HasOne("Yavsc.Abstract.Models.Messaging.Notification", "Notified") - .WithMany() - .HasForeignKey("NotificationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Notified"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.InstrumentRating", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument", "Instrument") - .WithMany() - .HasForeignKey("InstrumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "Profile") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Instrument"); - - b.Navigation("Profile"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings", null) - .WithMany("SoundColor") - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings", null) - .WithMany("SoundColor") - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument", "Tool") - .WithMany() - .HasForeignKey("InstrumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tool"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Executor") - .WithMany() - .HasForeignKey("ExecutorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Executor"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany("Circles") - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle", "Circle") - .WithMany("Members") - .HasForeignKey("CircleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Member") - .WithMany("Membership") - .HasForeignKey("MemberId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Circle"); - - b.Navigation("Member"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.Relationship.PostalAddress", "PostalAddress") - .WithMany() - .HasForeignKey("AddressId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany("Book") - .HasForeignKey("ApplicationUserId"); - - b.Navigation("PostalAddress"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.HasOne("Yavsc.Models.Haircut.BrusherProfile", null) - .WithMany("Links") - .HasForeignKey("BrusherProfileUserId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", null) - .WithMany("Links") - .HasForeignKey("PayPalPaymentCreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Streaming.LiveFlow", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Parent") - .WithMany("Children") - .HasForeignKey("ParentCode"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings", null) - .WithMany("CoWorking") - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "Performer") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "WorkingFor") - .WithMany() - .HasForeignKey("WorkingForId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Performer"); - - b.Navigation("WorkingFor"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany("Forms") - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Context"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location", "OrganizationAddress") - .WithMany() - .HasForeignKey("OrganizationAddressId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Performer") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("OrganizationAddress"); - - b.Navigation("Performer"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Location", "Location") - .WithMany() - .HasForeignKey("LocationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("Location"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Regularisation"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Does") - .WithMany() - .HasForeignKey("DoesCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "User") - .WithMany("Activity") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Does"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", "Repository") - .WithMany() - .HasForeignKey("GitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Regularisation"); - - b.Navigation("Repository"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.HasOne("Yavsc.Server.Models.IT.Project", "TargetProject") - .WithMany("Configurations") - .HasForeignKey("ProjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TargetProject"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Navigation("AccountBalance") - .IsRequired(); - - b.Navigation("BankInfo"); - - b.Navigation("BlackList"); - - b.Navigation("Book"); - - b.Navigation("Circles"); - - b.Navigation("Connections"); - - b.Navigation("DeviceDeclaration"); - - b.Navigation("Membership"); - - b.Navigation("Posts"); - - b.Navigation("RoomAccess"); - - b.Navigation("Rooms"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Navigation("Bill"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Navigation("Bill"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.Navigation("ACL"); - - b.Navigation("Comments"); - - b.Navigation("Tags"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.Navigation("Children"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Navigation("Events"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.Navigation("Moderation"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Navigation("Links"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Navigation("Prestations"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Navigation("Taints"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Navigation("SoundColor"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Navigation("SoundColor"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Navigation("Links"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Navigation("Members"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Navigation("Children"); - - b.Navigation("Forms"); - - b.Navigation("Services"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Navigation("Activity"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Navigation("CoWorking"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.Navigation("Configurations"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/Yavsc.Server/Migrations/20250613131533_trackedNulls.cs b/src/Yavsc.Server/Migrations/20250613131533_trackedNulls.cs deleted file mode 100644 index 724f7d0a..00000000 --- a/src/Yavsc.Server/Migrations/20250613131533_trackedNulls.cs +++ /dev/null @@ -1,22 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace Yavsc.Migrations -{ - /// - public partial class trackedNulls : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - - } - } -} diff --git a/src/Yavsc.Server/Migrations/20250613131836_blogNulls.Designer.cs b/src/Yavsc.Server/Migrations/20250613131836_blogNulls.Designer.cs deleted file mode 100644 index 4f905adc..00000000 --- a/src/Yavsc.Server/Migrations/20250613131836_blogNulls.Designer.cs +++ /dev/null @@ -1,3503 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; -using Yavsc.Models; - -#nullable disable - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20250613131836_blogNulls")] - partial class blogNulls - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "9.0.6") - .HasAnnotation("Relational:MaxIdentifierLength", 63); - - NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasColumnType("text"); - - b.Property("Name") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("NormalizedName") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .IsUnique() - .HasDatabaseName("RoleNameIndex"); - - b.ToTable("AspNetRoles", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ClaimType") - .HasColumnType("text"); - - b.Property("ClaimValue") - .HasColumnType("text"); - - b.Property("RoleId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("RoleId"); - - b.ToTable("AspNetRoleClaims", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ClaimType") - .HasColumnType("text"); - - b.Property("ClaimValue") - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.ToTable("AspNetUserClaims", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => - { - b.Property("LoginProvider") - .HasColumnType("text"); - - b.Property("ProviderKey") - .HasColumnType("text"); - - b.Property("ProviderDisplayName") - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasIndex("UserId"); - - b.ToTable("AspNetUserLogins", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("RoleId") - .HasColumnType("text"); - - b.HasKey("UserId", "RoleId"); - - b.HasIndex("RoleId"); - - b.ToTable("AspNetUserRoles", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("LoginProvider") - .HasColumnType("text"); - - b.Property("Name") - .HasColumnType("text"); - - b.Property("Value") - .HasColumnType("text"); - - b.HasKey("UserId", "LoginProvider", "Name"); - - b.ToTable("AspNetUserTokens", (string)null); - }); - - modelBuilder.Entity("Yavsc.Abstract.Identity.ClientProviderInfo", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("Avatar") - .IsRequired() - .HasColumnType("text"); - - b.Property("BillingAddressId") - .HasColumnType("bigint"); - - b.Property("EMail") - .IsRequired() - .HasColumnType("text"); - - b.Property("Phone") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserName") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("ClientProviderInfo"); - }); - - modelBuilder.Entity("Yavsc.Abstract.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Target") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("body") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("click_action") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("color") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("icon") - .ValueGeneratedOnAdd() - .HasMaxLength(512) - .HasColumnType("character varying(512)") - .HasDefaultValue("exclam"); - - b.Property("sound") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("tag") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("title") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("character varying(1024)"); - - b.HasKey("Id"); - - b.ToTable("Notification"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Reason") - .IsRequired() - .HasColumnType("text"); - - b.Property("TargetId") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("TargetId"); - - b.ToTable("Ban"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.HasIndex("UserId"); - - b.ToTable("BlackListed"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId") - .HasColumnType("bigint"); - - b.Property("BlogPostId") - .HasColumnType("bigint"); - - b.HasKey("CircleId", "BlogPostId"); - - b.HasIndex("BlogPostId"); - - b.ToTable("CircleAuthorizationToBlogPost"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("ContactCredits") - .HasColumnType("bigint"); - - b.Property("Credits") - .HasColumnType("numeric"); - - b.HasKey("UserId"); - - b.ToTable("BankStatus"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("AccessFailedCount") - .HasColumnType("integer"); - - b.Property("AllowMonthlyEmail") - .HasColumnType("boolean"); - - b.Property("Avatar") - .IsRequired() - .ValueGeneratedOnAdd() - .HasMaxLength(512) - .HasColumnType("character varying(512)") - .HasDefaultValue("/images/Users/icon_user.png"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasColumnType("text"); - - b.Property("DedicatedGoogleCalendar") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("DiskQuota") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasDefaultValue(524288000L); - - b.Property("DiskUsage") - .HasColumnType("bigint"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("EmailConfirmed") - .HasColumnType("boolean"); - - b.Property("FullName") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("LockoutEnabled") - .HasColumnType("boolean"); - - b.Property("LockoutEnd") - .HasColumnType("timestamp with time zone"); - - b.Property("MaxFileSize") - .HasColumnType("bigint"); - - b.Property("NormalizedEmail") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("NormalizedUserName") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("PasswordHash") - .HasColumnType("text"); - - b.Property("PhoneNumber") - .HasColumnType("text"); - - b.Property("PhoneNumberConfirmed") - .HasColumnType("boolean"); - - b.Property("PostalAddressId") - .HasColumnType("bigint"); - - b.Property("SecurityStamp") - .HasColumnType("text"); - - b.Property("TwoFactorEnabled") - .HasColumnType("boolean"); - - b.Property("UserName") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.HasKey("Id"); - - b.HasAlternateKey("Email"); - - b.HasIndex("NormalizedEmail") - .HasDatabaseName("EmailIndex"); - - b.HasIndex("NormalizedUserName") - .IsUnique() - .HasDatabaseName("UserNameIndex"); - - b.HasIndex("PostalAddressId"); - - b.ToTable("AspNetUsers", (string)null); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("text"); - - b.Property("AccessTokenLifetime") - .HasColumnType("integer"); - - b.Property("Active") - .HasColumnType("boolean"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("character varying(128)"); - - b.Property("LogoutRedirectUri") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("RedirectUri") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("RefreshTokenLifeTime") - .HasColumnType("integer"); - - b.Property("Secret") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("Type") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("Applications"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.OAuth2Tokens", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("AccessToken") - .IsRequired() - .HasColumnType("text"); - - b.Property("Expiration") - .HasColumnType("timestamp with time zone"); - - b.Property("ExpiresIn") - .IsRequired() - .HasColumnType("text"); - - b.Property("RefreshToken") - .IsRequired() - .HasColumnType("text"); - - b.Property("TokenType") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("OAuth2Tokens"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("character varying(50)"); - - b.Property("ExpiresUtc") - .HasColumnType("timestamp with time zone"); - - b.Property("IssuedUtc") - .HasColumnType("timestamp with time zone"); - - b.Property("ProtectedTicket") - .IsRequired() - .HasColumnType("text"); - - b.Property("Subject") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("character varying(50)"); - - b.HasKey("Id"); - - b.ToTable("RefreshTokens"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Scope", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("character varying(1024)"); - - b.HasKey("Id"); - - b.ToTable("Scopes"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("BalanceId") - .IsRequired() - .HasColumnType("text"); - - b.Property("ExecDate") - .HasColumnType("timestamp with time zone"); - - b.Property("Impact") - .HasColumnType("numeric"); - - b.Property("Reason") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("BalanceId"); - - b.ToTable("BankBook"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AccountNumber") - .IsRequired() - .HasColumnType("text"); - - b.Property("BIC") - .IsRequired() - .HasColumnType("text"); - - b.Property("BankCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("BankedKey") - .HasColumnType("integer"); - - b.Property("IBAN") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.Property("WicketCode") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.ToTable("BankIdentity"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Count") - .HasColumnType("integer"); - - b.Property("Currency") - .IsRequired() - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("EstimateId") - .HasColumnType("bigint"); - - b.Property("EstimateTemplateId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("UnitaryCost") - .HasColumnType("numeric"); - - b.HasKey("Id"); - - b.HasIndex("EstimateId"); - - b.HasIndex("EstimateTemplateId"); - - b.ToTable("CommandLine"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AttachedFilesString") - .IsRequired() - .HasColumnType("text"); - - b.Property("AttachedGraphicsString") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientValidationDate") - .HasColumnType("timestamp with time zone"); - - b.Property("CommandId") - .HasColumnType("bigint"); - - b.Property("CommandType") - .IsRequired() - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("ProviderValidationDate") - .HasColumnType("timestamp with time zone"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ClientId"); - - b.HasIndex("CommandId"); - - b.HasIndex("OwnerId"); - - b.ToTable("Estimates"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("EstimateTemplates"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN") - .HasColumnType("text"); - - b.HasKey("SIREN"); - - b.ToTable("ExceptionsSIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AuthorId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Content") - .IsRequired() - .HasMaxLength(56224) - .HasColumnType("character varying(56224)"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Photo") - .HasMaxLength(1024) - .HasColumnType("character varying(1024)"); - - b.Property("Title") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("character varying(1024)"); - - b.Property("UserCreated") - .HasColumnType("text"); - - b.Property("UserModified") - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("AuthorId"); - - b.ToTable("BlogSpot"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.Property("PostId") - .HasColumnType("bigint"); - - b.Property("TagId") - .HasColumnType("bigint"); - - b.HasKey("PostId", "TagId"); - - b.HasIndex("TagId"); - - b.ToTable("BlogTag"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AuthorId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Content") - .IsRequired() - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("ParentId") - .HasColumnType("bigint"); - - b.Property("ReceiverId") - .HasColumnType("bigint"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("Visible") - .HasColumnType("boolean"); - - b.HasKey("Id"); - - b.HasIndex("AuthorId"); - - b.HasIndex("ParentId"); - - b.HasIndex("ReceiverId"); - - b.ToTable("Comment"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Property("OwnerId") - .HasColumnType("text"); - - b.HasKey("OwnerId"); - - b.ToTable("Schedule"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("PeriodEnd") - .HasColumnType("timestamp with time zone"); - - b.Property("PeriodStart") - .HasColumnType("timestamp with time zone"); - - b.Property("Reccurence") - .HasColumnType("integer"); - - b.Property("ScheduleOwnerId") - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ScheduleOwnerId"); - - b.HasIndex("PeriodStart", "PeriodEnd"); - - b.ToTable("ScheduledEvent"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.Property("ConnectionId") - .HasColumnType("text"); - - b.Property("ApplicationUserId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Connected") - .HasColumnType("boolean"); - - b.Property("UserAgent") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("ConnectionId"); - - b.HasIndex("ApplicationUserId"); - - b.ToTable("ChatConnection"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.Property("Name") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("LatestJoinPart") - .HasColumnType("timestamp with time zone"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Topic") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Name"); - - b.HasIndex("OwnerId"); - - b.ToTable("ChatRoom"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomAccess", b => - { - b.Property("ChannelName") - .HasColumnType("text"); - - b.Property("UserId") - .HasColumnType("text"); - - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Level") - .HasColumnType("integer"); - - b.HasKey("ChannelName", "UserId"); - - b.HasIndex("UserId"); - - b.ToTable("ChatRoomAccess"); - }); - - modelBuilder.Entity("Yavsc.Models.Cratie.Option", b => - { - b.Property("Code") - .HasColumnType("text"); - - b.Property("CodeScrutin") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Code", "CodeScrutin"); - - b.ToTable("Option"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Blue") - .HasColumnType("smallint"); - - b.Property("Green") - .HasColumnType("smallint"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Red") - .HasColumnType("smallint"); - - b.HasKey("Id"); - - b.ToTable("Color"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("Summary") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("Form"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("ActionDistance") - .HasColumnType("integer"); - - b.Property("CarePrice") - .HasColumnType("numeric"); - - b.Property("FlatFeeDiscount") - .HasColumnType("numeric"); - - b.Property("HalfBalayagePrice") - .HasColumnType("numeric"); - - b.Property("HalfBrushingPrice") - .HasColumnType("numeric"); - - b.Property("HalfColorPrice") - .HasColumnType("numeric"); - - b.Property("HalfDefrisPrice") - .HasColumnType("numeric"); - - b.Property("HalfFoldingPrice") - .HasColumnType("numeric"); - - b.Property("HalfMechPrice") - .HasColumnType("numeric"); - - b.Property("HalfMultiColorPrice") - .HasColumnType("numeric"); - - b.Property("HalfPermanentPrice") - .HasColumnType("numeric"); - - b.Property("KidCutPrice") - .HasColumnType("numeric"); - - b.Property("LongBalayagePrice") - .HasColumnType("numeric"); - - b.Property("LongBrushingPrice") - .HasColumnType("numeric"); - - b.Property("LongColorPrice") - .HasColumnType("numeric"); - - b.Property("LongDefrisPrice") - .HasColumnType("numeric"); - - b.Property("LongFoldingPrice") - .HasColumnType("numeric"); - - b.Property("LongMechPrice") - .HasColumnType("numeric"); - - b.Property("LongMultiColorPrice") - .HasColumnType("numeric"); - - b.Property("LongPermanentPrice") - .HasColumnType("numeric"); - - b.Property("ManBrushPrice") - .HasColumnType("numeric"); - - b.Property("ManCutPrice") - .HasColumnType("numeric"); - - b.Property("ScheduleOwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("ShampooPrice") - .HasColumnType("numeric"); - - b.Property("ShortBalayagePrice") - .HasColumnType("numeric"); - - b.Property("ShortBrushingPrice") - .HasColumnType("numeric"); - - b.Property("ShortColorPrice") - .HasColumnType("numeric"); - - b.Property("ShortDefrisPrice") - .HasColumnType("numeric"); - - b.Property("ShortFoldingPrice") - .HasColumnType("numeric"); - - b.Property("ShortMechPrice") - .HasColumnType("numeric"); - - b.Property("ShortMultiColorPrice") - .HasColumnType("numeric"); - - b.Property("ShortPermanentPrice") - .HasColumnType("numeric"); - - b.Property("WomenHalfCutPrice") - .HasColumnType("numeric"); - - b.Property("WomenLongCutPrice") - .HasColumnType("numeric"); - - b.Property("WomenShortCutPrice") - .HasColumnType("numeric"); - - b.HasKey("UserId"); - - b.HasIndex("ScheduleOwnerId"); - - b.ToTable("BrusherProfile"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Accepted") - .HasColumnType("boolean"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("AdditionalInfo") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Decided") - .HasColumnType("boolean"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("EventDate") - .HasColumnType("timestamp with time zone"); - - b.Property("LocationId") - .HasColumnType("bigint"); - - b.Property("PaymentId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PrestationId") - .HasColumnType("bigint"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("SelectedProfileUserId") - .HasColumnType("text"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("LocationId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.HasIndex("PrestationId"); - - b.HasIndex("SelectedProfileUserId"); - - b.ToTable("HairCutQueries"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Accepted") - .HasColumnType("boolean"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Decided") - .HasColumnType("boolean"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("EventDate") - .HasColumnType("timestamp with time zone"); - - b.Property("LocationId") - .HasColumnType("bigint"); - - b.Property("PaymentId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("LocationId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.ToTable("HairMultiCutQueries"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Cares") - .HasColumnType("boolean"); - - b.Property("Cut") - .HasColumnType("boolean"); - - b.Property("Dressing") - .HasColumnType("integer"); - - b.Property("Gender") - .HasColumnType("integer"); - - b.Property("Length") - .HasColumnType("integer"); - - b.Property("Shampoo") - .HasColumnType("boolean"); - - b.Property("Tech") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("HairPrestation"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("PrestationId") - .HasColumnType("bigint"); - - b.Property("QueryId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("PrestationId"); - - b.HasIndex("QueryId"); - - b.ToTable("HairPrestationCollectionItem"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Brand") - .IsRequired() - .HasColumnType("text"); - - b.Property("ColorId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("ColorId"); - - b.ToTable("HairTaint"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.Property("TaintId") - .HasColumnType("bigint"); - - b.Property("PrestationId") - .HasColumnType("bigint"); - - b.HasKey("TaintId", "PrestationId"); - - b.HasIndex("PrestationId"); - - b.ToTable("HairTaintInstance"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Evolution.Feature", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("ShortName") - .IsRequired() - .HasColumnType("text"); - - b.Property("Status") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("Feature"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("FeatureId") - .HasColumnType("bigint"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("FeatureId"); - - b.ToTable("Bug"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.DeviceDeclaration", b => - { - b.Property("DeviceId") - .HasColumnType("text"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasColumnType("timestamp with time zone") - .HasDefaultValueSql("LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("LatestActivityUpdate") - .HasColumnType("timestamp with time zone"); - - b.Property("Model") - .IsRequired() - .HasColumnType("text"); - - b.Property("Platform") - .IsRequired() - .HasColumnType("text"); - - b.Property("Version") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("DeviceId"); - - b.HasIndex("DeviceOwnerId"); - - b.ToTable("DeviceDeclaration"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Depth") - .HasColumnType("numeric"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("Height") - .HasColumnType("numeric"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Price") - .HasColumnType("numeric"); - - b.Property("Public") - .HasColumnType("boolean"); - - b.Property("Weight") - .HasColumnType("numeric"); - - b.Property("Width") - .HasColumnType("numeric"); - - b.HasKey("Id"); - - b.ToTable("Products"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ContextId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Public") - .HasColumnType("boolean"); - - b.HasKey("Id"); - - b.HasIndex("ContextId"); - - b.ToTable("Services"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("For") - .HasColumnType("smallint"); - - b.Property("Message") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Sender") - .IsRequired() - .HasColumnType("text"); - - b.Property("Topic") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.ToTable("Announce"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DismissClicked", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("NotificationId") - .HasColumnType("bigint"); - - b.HasKey("UserId", "NotificationId"); - - b.HasIndex("NotificationId"); - - b.ToTable("DismissClicked"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("character varying(255)"); - - b.HasKey("Id"); - - b.ToTable("Instrument"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.InstrumentRating", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("InstrumentId") - .HasColumnType("bigint"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.HasAlternateKey("InstrumentId", "OwnerId"); - - b.HasIndex("OwnerId"); - - b.ToTable("InstrumentRating"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId") - .HasColumnType("text"); - - b.Property("DjSettingsUserId") - .HasColumnType("text"); - - b.Property("GeneralSettingsUserId") - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.Property("TendencyId") - .HasColumnType("bigint"); - - b.HasKey("OwnerProfileId"); - - b.HasIndex("DjSettingsUserId"); - - b.HasIndex("GeneralSettingsUserId"); - - b.ToTable("MusicalPreference"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("character varying(255)"); - - b.HasKey("Id"); - - b.ToTable("MusicalTendency"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("SoundCloudId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("DjSettings"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("GeneralSettings"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId") - .HasColumnType("bigint"); - - b.Property("UserId") - .HasColumnType("text"); - - b.HasKey("InstrumentId", "UserId"); - - b.HasIndex("UserId"); - - b.ToTable("Instrumentation"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Property("CreationToken") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("ExecutorId") - .IsRequired() - .HasColumnType("text"); - - b.Property("OrderReference") - .IsRequired() - .HasColumnType("text"); - - b.Property("PaypalPayerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("State") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("CreationToken"); - - b.HasIndex("ExecutorId"); - - b.ToTable("PayPalPayment"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ApplicationUserId") - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Public") - .HasColumnType("boolean"); - - b.HasKey("Id"); - - b.HasIndex("ApplicationUserId"); - - b.ToTable("Circle"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId") - .HasColumnType("text"); - - b.Property("CircleId") - .HasColumnType("bigint"); - - b.HasKey("MemberId", "CircleId"); - - b.HasIndex("CircleId"); - - b.ToTable("CircleMembers"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId") - .HasColumnType("text"); - - b.Property("UserId") - .HasColumnType("text"); - - b.Property("AddressId") - .HasColumnType("bigint"); - - b.Property("ApplicationUserId") - .HasColumnType("text"); - - b.Property("EMail") - .IsRequired() - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("OwnerId", "UserId"); - - b.HasIndex("AddressId"); - - b.HasIndex("ApplicationUserId"); - - b.ToTable("Contact"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.Property("HRef") - .HasColumnType("text"); - - b.Property("Method") - .HasColumnType("text"); - - b.Property("BrusherProfileUserId") - .HasColumnType("text"); - - b.Property("ContentType") - .IsRequired() - .HasColumnType("text"); - - b.Property("PayPalPaymentCreationToken") - .HasColumnType("text"); - - b.Property("Rel") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("HRef", "Method"); - - b.HasIndex("BrusherProfileUserId"); - - b.HasIndex("PayPalPaymentCreationToken"); - - b.ToTable("HyperLink"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Address") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("Latitude") - .HasColumnType("double precision"); - - b.Property("Longitude") - .HasColumnType("double precision"); - - b.HasKey("Id"); - - b.ToTable("Locations"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostalAddress", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("City") - .IsRequired() - .HasColumnType("text"); - - b.Property("Country") - .IsRequired() - .HasColumnType("text"); - - b.Property("PostalCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("Province") - .IsRequired() - .HasColumnType("text"); - - b.Property("State") - .IsRequired() - .HasColumnType("text"); - - b.Property("Street1") - .IsRequired() - .HasColumnType("text"); - - b.Property("Street2") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("PostalAddress"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("Tags"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("SiteSkills"); - }); - - modelBuilder.Entity("Yavsc.Models.Streaming.LiveFlow", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("DifferedFileName") - .IsRequired() - .HasColumnType("text"); - - b.Property("MediaType") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Pitch") - .IsRequired() - .HasColumnType("text"); - - b.Property("SequenceNumber") - .HasColumnType("integer"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.ToTable("LiveFlow"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("Hidden") - .HasColumnType("boolean"); - - b.Property("ModeratorGroupName") - .IsRequired() - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("ParentCode") - .HasColumnType("text"); - - b.Property("Photo") - .IsRequired() - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.Property("SettingsClassName") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Code"); - - b.HasIndex("ParentCode"); - - b.ToTable("Activities"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("FormationSettingsUserId") - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("WorkingForId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("FormationSettingsUserId"); - - b.HasIndex("PerformerId"); - - b.HasIndex("WorkingForId"); - - b.ToTable("CoWorking"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ActionName") - .IsRequired() - .HasColumnType("text"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.ToTable("CommandForm"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId") - .HasColumnType("text"); - - b.Property("AcceptNotifications") - .HasColumnType("boolean"); - - b.Property("AcceptPublicContact") - .HasColumnType("boolean"); - - b.Property("Active") - .HasColumnType("boolean"); - - b.Property("MaxDailyCost") - .HasColumnType("integer"); - - b.Property("MinDailyCost") - .HasColumnType("integer"); - - b.Property("OrganizationAddressId") - .HasColumnType("bigint"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.Property("SIREN") - .IsRequired() - .HasColumnType("text"); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients") - .HasColumnType("boolean"); - - b.Property("WebSite") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("PerformerId"); - - b.HasIndex("OrganizationAddressId"); - - b.ToTable("Performers"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("DisplayName") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("FormationSettings"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Accepted") - .HasColumnType("boolean"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Decided") - .HasColumnType("boolean"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("EventDate") - .HasColumnType("timestamp with time zone"); - - b.Property("LocationId") - .HasColumnType("bigint"); - - b.Property("LocationType") - .HasColumnType("integer"); - - b.Property("PaymentId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("Reason") - .IsRequired() - .HasColumnType("text"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("LocationId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.ToTable("RdvQueries"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode") - .HasColumnType("text"); - - b.Property("UserId") - .HasColumnType("text"); - - b.Property("Weight") - .HasColumnType("integer"); - - b.HasKey("DoesCode", "UserId"); - - b.HasIndex("UserId"); - - b.ToTable("UserActivities"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Calendar.Period", b => - { - b.Property("Start") - .HasColumnType("timestamp with time zone"); - - b.Property("End") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Start", "End"); - - b.ToTable("Period"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.EMailing.MailingTemplate", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("Body") - .IsRequired() - .HasMaxLength(65536) - .HasColumnType("character varying(65536)"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("ReplyToAddress") - .IsRequired() - .HasColumnType("text"); - - b.Property("ToSend") - .HasColumnType("integer"); - - b.Property("Topic") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("MailingTemplate"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Accepted") - .HasColumnType("boolean"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Decided") - .HasColumnType("boolean"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("GitId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PaymentId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.Property("Version") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("GitId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.ToTable("Project"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("ProjectId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("ProjectId"); - - b.ToTable("ProjectBuildConfiguration"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Branch") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Path") - .IsRequired() - .HasColumnType("text"); - - b.Property("Url") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.ToTable("GitRepositoryReference"); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null) - .WithMany() - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null) - .WithMany() - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "TargetUser") - .WithMany() - .HasForeignKey("TargetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TargetUser"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany("BlackList") - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost", "Target") - .WithMany("ACL") - .HasForeignKey("BlogPostId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Circle", "Allowed") - .WithMany() - .HasForeignKey("CircleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Allowed"); - - b.Navigation("Target"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithOne("AccountBalance") - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Relationship.Location", "PostalAddress") - .WithMany() - .HasForeignKey("PostalAddressId"); - - b.Navigation("PostalAddress"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance", "Balance") - .WithMany() - .HasForeignKey("BalanceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Balance"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany("BankInfo") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate", null) - .WithMany("Bill") - .HasForeignKey("EstimateId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate", null) - .WithMany("Bill") - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery", "Query") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Owner"); - - b.Navigation("Query"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Author") - .WithMany("Posts") - .HasForeignKey("AuthorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Author"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost", "Post") - .WithMany("Tags") - .HasForeignKey("PostId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Tag", "Tag") - .WithMany() - .HasForeignKey("TagId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Post"); - - b.Navigation("Tag"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Author") - .WithMany() - .HasForeignKey("AuthorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Blog.Comment", "Parent") - .WithMany("Children") - .HasForeignKey("ParentId"); - - b.HasOne("Yavsc.Models.Blog.BlogPost", "Post") - .WithMany("Comments") - .HasForeignKey("ReceiverId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Author"); - - b.Navigation("Parent"); - - b.Navigation("Post"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule", null) - .WithMany("Events") - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Server.Models.Calendar.Period", "Period") - .WithMany() - .HasForeignKey("PeriodStart", "PeriodEnd") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Period"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany("Connections") - .HasForeignKey("ApplicationUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany("Rooms") - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomAccess", b => - { - b.HasOne("Yavsc.Models.Chat.ChatRoom", "Room") - .WithMany("Moderation") - .HasForeignKey("ChannelName") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany("RoomAccess") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Room"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule", "Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "BaseProfile") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("BaseProfile"); - - b.Navigation("Schedule"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Location", "Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation", "Prestation") - .WithMany() - .HasForeignKey("PrestationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.BrusherProfile", "SelectedProfile") - .WithMany() - .HasForeignKey("SelectedProfileUserId"); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("Location"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Prestation"); - - b.Navigation("Regularisation"); - - b.Navigation("SelectedProfile"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Location", "Location") - .WithMany() - .HasForeignKey("LocationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("Location"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Regularisation"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation", "Prestation") - .WithMany() - .HasForeignKey("PrestationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery", "Query") - .WithMany("Prestations") - .HasForeignKey("QueryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Prestation"); - - b.Navigation("Query"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color", "Color") - .WithMany() - .HasForeignKey("ColorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Color"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation", "Prestation") - .WithMany("Taints") - .HasForeignKey("PrestationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.HairTaint", "Taint") - .WithMany() - .HasForeignKey("TaintId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Prestation"); - - b.Navigation("Taint"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.HasOne("Yavsc.Models.IT.Evolution.Feature", "False") - .WithMany() - .HasForeignKey("FeatureId"); - - b.Navigation("False"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.DeviceDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "DeviceOwner") - .WithMany("DeviceDeclaration") - .HasForeignKey("DeviceOwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("DeviceOwner"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany("Services") - .HasForeignKey("ContextId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Context"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DismissClicked", b => - { - b.HasOne("Yavsc.Abstract.Models.Messaging.Notification", "Notified") - .WithMany() - .HasForeignKey("NotificationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Notified"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.InstrumentRating", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument", "Instrument") - .WithMany() - .HasForeignKey("InstrumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "Profile") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Instrument"); - - b.Navigation("Profile"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings", null) - .WithMany("SoundColor") - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings", null) - .WithMany("SoundColor") - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument", "Tool") - .WithMany() - .HasForeignKey("InstrumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tool"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Executor") - .WithMany() - .HasForeignKey("ExecutorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Executor"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany("Circles") - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle", "Circle") - .WithMany("Members") - .HasForeignKey("CircleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Member") - .WithMany("Membership") - .HasForeignKey("MemberId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Circle"); - - b.Navigation("Member"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.Relationship.PostalAddress", "PostalAddress") - .WithMany() - .HasForeignKey("AddressId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany("Book") - .HasForeignKey("ApplicationUserId"); - - b.Navigation("PostalAddress"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.HasOne("Yavsc.Models.Haircut.BrusherProfile", null) - .WithMany("Links") - .HasForeignKey("BrusherProfileUserId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", null) - .WithMany("Links") - .HasForeignKey("PayPalPaymentCreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Streaming.LiveFlow", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Parent") - .WithMany("Children") - .HasForeignKey("ParentCode"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings", null) - .WithMany("CoWorking") - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "Performer") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "WorkingFor") - .WithMany() - .HasForeignKey("WorkingForId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Performer"); - - b.Navigation("WorkingFor"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany("Forms") - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Context"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location", "OrganizationAddress") - .WithMany() - .HasForeignKey("OrganizationAddressId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Performer") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("OrganizationAddress"); - - b.Navigation("Performer"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Location", "Location") - .WithMany() - .HasForeignKey("LocationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("Location"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Regularisation"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Does") - .WithMany() - .HasForeignKey("DoesCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "User") - .WithMany("Activity") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Does"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", "Repository") - .WithMany() - .HasForeignKey("GitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Regularisation"); - - b.Navigation("Repository"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.HasOne("Yavsc.Server.Models.IT.Project", "TargetProject") - .WithMany("Configurations") - .HasForeignKey("ProjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TargetProject"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Navigation("AccountBalance") - .IsRequired(); - - b.Navigation("BankInfo"); - - b.Navigation("BlackList"); - - b.Navigation("Book"); - - b.Navigation("Circles"); - - b.Navigation("Connections"); - - b.Navigation("DeviceDeclaration"); - - b.Navigation("Membership"); - - b.Navigation("Posts"); - - b.Navigation("RoomAccess"); - - b.Navigation("Rooms"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Navigation("Bill"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Navigation("Bill"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.Navigation("ACL"); - - b.Navigation("Comments"); - - b.Navigation("Tags"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.Navigation("Children"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Navigation("Events"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.Navigation("Moderation"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Navigation("Links"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Navigation("Prestations"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Navigation("Taints"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Navigation("SoundColor"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Navigation("SoundColor"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Navigation("Links"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Navigation("Members"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Navigation("Children"); - - b.Navigation("Forms"); - - b.Navigation("Services"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Navigation("Activity"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Navigation("CoWorking"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.Navigation("Configurations"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/Yavsc.Server/Migrations/20250613131836_blogNulls.cs b/src/Yavsc.Server/Migrations/20250613131836_blogNulls.cs deleted file mode 100644 index 22df9178..00000000 --- a/src/Yavsc.Server/Migrations/20250613131836_blogNulls.cs +++ /dev/null @@ -1,54 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace Yavsc.Migrations -{ - /// - public partial class blogNulls : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "UserModified", - table: "BlogSpot", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "UserCreated", - table: "BlogSpot", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "UserModified", - table: "BlogSpot", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "UserCreated", - table: "BlogSpot", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - } - } -} diff --git a/src/Yavsc.Server/Migrations/20250613132139_BlogPostInputViewModelNulls.Designer.cs b/src/Yavsc.Server/Migrations/20250613132139_BlogPostInputViewModelNulls.Designer.cs deleted file mode 100644 index 75da28c4..00000000 --- a/src/Yavsc.Server/Migrations/20250613132139_BlogPostInputViewModelNulls.Designer.cs +++ /dev/null @@ -1,3502 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; -using Yavsc.Models; - -#nullable disable - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20250613132139_BlogPostInputViewModelNulls")] - partial class BlogPostInputViewModelNulls - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "9.0.6") - .HasAnnotation("Relational:MaxIdentifierLength", 63); - - NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasColumnType("text"); - - b.Property("Name") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("NormalizedName") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .IsUnique() - .HasDatabaseName("RoleNameIndex"); - - b.ToTable("AspNetRoles", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ClaimType") - .HasColumnType("text"); - - b.Property("ClaimValue") - .HasColumnType("text"); - - b.Property("RoleId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("RoleId"); - - b.ToTable("AspNetRoleClaims", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ClaimType") - .HasColumnType("text"); - - b.Property("ClaimValue") - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.ToTable("AspNetUserClaims", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => - { - b.Property("LoginProvider") - .HasColumnType("text"); - - b.Property("ProviderKey") - .HasColumnType("text"); - - b.Property("ProviderDisplayName") - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasIndex("UserId"); - - b.ToTable("AspNetUserLogins", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("RoleId") - .HasColumnType("text"); - - b.HasKey("UserId", "RoleId"); - - b.HasIndex("RoleId"); - - b.ToTable("AspNetUserRoles", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("LoginProvider") - .HasColumnType("text"); - - b.Property("Name") - .HasColumnType("text"); - - b.Property("Value") - .HasColumnType("text"); - - b.HasKey("UserId", "LoginProvider", "Name"); - - b.ToTable("AspNetUserTokens", (string)null); - }); - - modelBuilder.Entity("Yavsc.Abstract.Identity.ClientProviderInfo", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("Avatar") - .IsRequired() - .HasColumnType("text"); - - b.Property("BillingAddressId") - .HasColumnType("bigint"); - - b.Property("EMail") - .IsRequired() - .HasColumnType("text"); - - b.Property("Phone") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserName") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("ClientProviderInfo"); - }); - - modelBuilder.Entity("Yavsc.Abstract.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Target") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("body") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("click_action") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("color") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("icon") - .ValueGeneratedOnAdd() - .HasMaxLength(512) - .HasColumnType("character varying(512)") - .HasDefaultValue("exclam"); - - b.Property("sound") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("tag") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("title") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("character varying(1024)"); - - b.HasKey("Id"); - - b.ToTable("Notification"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Reason") - .IsRequired() - .HasColumnType("text"); - - b.Property("TargetId") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("TargetId"); - - b.ToTable("Ban"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.HasIndex("UserId"); - - b.ToTable("BlackListed"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId") - .HasColumnType("bigint"); - - b.Property("BlogPostId") - .HasColumnType("bigint"); - - b.HasKey("CircleId", "BlogPostId"); - - b.HasIndex("BlogPostId"); - - b.ToTable("CircleAuthorizationToBlogPost"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("ContactCredits") - .HasColumnType("bigint"); - - b.Property("Credits") - .HasColumnType("numeric"); - - b.HasKey("UserId"); - - b.ToTable("BankStatus"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("AccessFailedCount") - .HasColumnType("integer"); - - b.Property("AllowMonthlyEmail") - .HasColumnType("boolean"); - - b.Property("Avatar") - .IsRequired() - .ValueGeneratedOnAdd() - .HasMaxLength(512) - .HasColumnType("character varying(512)") - .HasDefaultValue("/images/Users/icon_user.png"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasColumnType("text"); - - b.Property("DedicatedGoogleCalendar") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("DiskQuota") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasDefaultValue(524288000L); - - b.Property("DiskUsage") - .HasColumnType("bigint"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("EmailConfirmed") - .HasColumnType("boolean"); - - b.Property("FullName") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("LockoutEnabled") - .HasColumnType("boolean"); - - b.Property("LockoutEnd") - .HasColumnType("timestamp with time zone"); - - b.Property("MaxFileSize") - .HasColumnType("bigint"); - - b.Property("NormalizedEmail") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("NormalizedUserName") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("PasswordHash") - .HasColumnType("text"); - - b.Property("PhoneNumber") - .HasColumnType("text"); - - b.Property("PhoneNumberConfirmed") - .HasColumnType("boolean"); - - b.Property("PostalAddressId") - .HasColumnType("bigint"); - - b.Property("SecurityStamp") - .HasColumnType("text"); - - b.Property("TwoFactorEnabled") - .HasColumnType("boolean"); - - b.Property("UserName") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.HasKey("Id"); - - b.HasAlternateKey("Email"); - - b.HasIndex("NormalizedEmail") - .HasDatabaseName("EmailIndex"); - - b.HasIndex("NormalizedUserName") - .IsUnique() - .HasDatabaseName("UserNameIndex"); - - b.HasIndex("PostalAddressId"); - - b.ToTable("AspNetUsers", (string)null); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("text"); - - b.Property("AccessTokenLifetime") - .HasColumnType("integer"); - - b.Property("Active") - .HasColumnType("boolean"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("character varying(128)"); - - b.Property("LogoutRedirectUri") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("RedirectUri") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("RefreshTokenLifeTime") - .HasColumnType("integer"); - - b.Property("Secret") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("Type") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("Applications"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.OAuth2Tokens", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("AccessToken") - .IsRequired() - .HasColumnType("text"); - - b.Property("Expiration") - .HasColumnType("timestamp with time zone"); - - b.Property("ExpiresIn") - .IsRequired() - .HasColumnType("text"); - - b.Property("RefreshToken") - .IsRequired() - .HasColumnType("text"); - - b.Property("TokenType") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("OAuth2Tokens"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("character varying(50)"); - - b.Property("ExpiresUtc") - .HasColumnType("timestamp with time zone"); - - b.Property("IssuedUtc") - .HasColumnType("timestamp with time zone"); - - b.Property("ProtectedTicket") - .IsRequired() - .HasColumnType("text"); - - b.Property("Subject") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("character varying(50)"); - - b.HasKey("Id"); - - b.ToTable("RefreshTokens"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Scope", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("character varying(1024)"); - - b.HasKey("Id"); - - b.ToTable("Scopes"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("BalanceId") - .IsRequired() - .HasColumnType("text"); - - b.Property("ExecDate") - .HasColumnType("timestamp with time zone"); - - b.Property("Impact") - .HasColumnType("numeric"); - - b.Property("Reason") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("BalanceId"); - - b.ToTable("BankBook"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AccountNumber") - .IsRequired() - .HasColumnType("text"); - - b.Property("BIC") - .IsRequired() - .HasColumnType("text"); - - b.Property("BankCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("BankedKey") - .HasColumnType("integer"); - - b.Property("IBAN") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.Property("WicketCode") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.ToTable("BankIdentity"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Count") - .HasColumnType("integer"); - - b.Property("Currency") - .IsRequired() - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("EstimateId") - .HasColumnType("bigint"); - - b.Property("EstimateTemplateId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("UnitaryCost") - .HasColumnType("numeric"); - - b.HasKey("Id"); - - b.HasIndex("EstimateId"); - - b.HasIndex("EstimateTemplateId"); - - b.ToTable("CommandLine"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AttachedFilesString") - .IsRequired() - .HasColumnType("text"); - - b.Property("AttachedGraphicsString") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientValidationDate") - .HasColumnType("timestamp with time zone"); - - b.Property("CommandId") - .HasColumnType("bigint"); - - b.Property("CommandType") - .IsRequired() - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("ProviderValidationDate") - .HasColumnType("timestamp with time zone"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ClientId"); - - b.HasIndex("CommandId"); - - b.HasIndex("OwnerId"); - - b.ToTable("Estimates"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("EstimateTemplates"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN") - .HasColumnType("text"); - - b.HasKey("SIREN"); - - b.ToTable("ExceptionsSIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AuthorId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Content") - .HasMaxLength(56224) - .HasColumnType("character varying(56224)"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Photo") - .HasMaxLength(1024) - .HasColumnType("character varying(1024)"); - - b.Property("Title") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("character varying(1024)"); - - b.Property("UserCreated") - .HasColumnType("text"); - - b.Property("UserModified") - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("AuthorId"); - - b.ToTable("BlogSpot"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.Property("PostId") - .HasColumnType("bigint"); - - b.Property("TagId") - .HasColumnType("bigint"); - - b.HasKey("PostId", "TagId"); - - b.HasIndex("TagId"); - - b.ToTable("BlogTag"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AuthorId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Content") - .IsRequired() - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("ParentId") - .HasColumnType("bigint"); - - b.Property("ReceiverId") - .HasColumnType("bigint"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("Visible") - .HasColumnType("boolean"); - - b.HasKey("Id"); - - b.HasIndex("AuthorId"); - - b.HasIndex("ParentId"); - - b.HasIndex("ReceiverId"); - - b.ToTable("Comment"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Property("OwnerId") - .HasColumnType("text"); - - b.HasKey("OwnerId"); - - b.ToTable("Schedule"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("PeriodEnd") - .HasColumnType("timestamp with time zone"); - - b.Property("PeriodStart") - .HasColumnType("timestamp with time zone"); - - b.Property("Reccurence") - .HasColumnType("integer"); - - b.Property("ScheduleOwnerId") - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ScheduleOwnerId"); - - b.HasIndex("PeriodStart", "PeriodEnd"); - - b.ToTable("ScheduledEvent"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.Property("ConnectionId") - .HasColumnType("text"); - - b.Property("ApplicationUserId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Connected") - .HasColumnType("boolean"); - - b.Property("UserAgent") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("ConnectionId"); - - b.HasIndex("ApplicationUserId"); - - b.ToTable("ChatConnection"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.Property("Name") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("LatestJoinPart") - .HasColumnType("timestamp with time zone"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Topic") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Name"); - - b.HasIndex("OwnerId"); - - b.ToTable("ChatRoom"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomAccess", b => - { - b.Property("ChannelName") - .HasColumnType("text"); - - b.Property("UserId") - .HasColumnType("text"); - - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Level") - .HasColumnType("integer"); - - b.HasKey("ChannelName", "UserId"); - - b.HasIndex("UserId"); - - b.ToTable("ChatRoomAccess"); - }); - - modelBuilder.Entity("Yavsc.Models.Cratie.Option", b => - { - b.Property("Code") - .HasColumnType("text"); - - b.Property("CodeScrutin") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Code", "CodeScrutin"); - - b.ToTable("Option"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Blue") - .HasColumnType("smallint"); - - b.Property("Green") - .HasColumnType("smallint"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Red") - .HasColumnType("smallint"); - - b.HasKey("Id"); - - b.ToTable("Color"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("Summary") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("Form"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("ActionDistance") - .HasColumnType("integer"); - - b.Property("CarePrice") - .HasColumnType("numeric"); - - b.Property("FlatFeeDiscount") - .HasColumnType("numeric"); - - b.Property("HalfBalayagePrice") - .HasColumnType("numeric"); - - b.Property("HalfBrushingPrice") - .HasColumnType("numeric"); - - b.Property("HalfColorPrice") - .HasColumnType("numeric"); - - b.Property("HalfDefrisPrice") - .HasColumnType("numeric"); - - b.Property("HalfFoldingPrice") - .HasColumnType("numeric"); - - b.Property("HalfMechPrice") - .HasColumnType("numeric"); - - b.Property("HalfMultiColorPrice") - .HasColumnType("numeric"); - - b.Property("HalfPermanentPrice") - .HasColumnType("numeric"); - - b.Property("KidCutPrice") - .HasColumnType("numeric"); - - b.Property("LongBalayagePrice") - .HasColumnType("numeric"); - - b.Property("LongBrushingPrice") - .HasColumnType("numeric"); - - b.Property("LongColorPrice") - .HasColumnType("numeric"); - - b.Property("LongDefrisPrice") - .HasColumnType("numeric"); - - b.Property("LongFoldingPrice") - .HasColumnType("numeric"); - - b.Property("LongMechPrice") - .HasColumnType("numeric"); - - b.Property("LongMultiColorPrice") - .HasColumnType("numeric"); - - b.Property("LongPermanentPrice") - .HasColumnType("numeric"); - - b.Property("ManBrushPrice") - .HasColumnType("numeric"); - - b.Property("ManCutPrice") - .HasColumnType("numeric"); - - b.Property("ScheduleOwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("ShampooPrice") - .HasColumnType("numeric"); - - b.Property("ShortBalayagePrice") - .HasColumnType("numeric"); - - b.Property("ShortBrushingPrice") - .HasColumnType("numeric"); - - b.Property("ShortColorPrice") - .HasColumnType("numeric"); - - b.Property("ShortDefrisPrice") - .HasColumnType("numeric"); - - b.Property("ShortFoldingPrice") - .HasColumnType("numeric"); - - b.Property("ShortMechPrice") - .HasColumnType("numeric"); - - b.Property("ShortMultiColorPrice") - .HasColumnType("numeric"); - - b.Property("ShortPermanentPrice") - .HasColumnType("numeric"); - - b.Property("WomenHalfCutPrice") - .HasColumnType("numeric"); - - b.Property("WomenLongCutPrice") - .HasColumnType("numeric"); - - b.Property("WomenShortCutPrice") - .HasColumnType("numeric"); - - b.HasKey("UserId"); - - b.HasIndex("ScheduleOwnerId"); - - b.ToTable("BrusherProfile"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Accepted") - .HasColumnType("boolean"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("AdditionalInfo") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Decided") - .HasColumnType("boolean"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("EventDate") - .HasColumnType("timestamp with time zone"); - - b.Property("LocationId") - .HasColumnType("bigint"); - - b.Property("PaymentId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PrestationId") - .HasColumnType("bigint"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("SelectedProfileUserId") - .HasColumnType("text"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("LocationId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.HasIndex("PrestationId"); - - b.HasIndex("SelectedProfileUserId"); - - b.ToTable("HairCutQueries"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Accepted") - .HasColumnType("boolean"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Decided") - .HasColumnType("boolean"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("EventDate") - .HasColumnType("timestamp with time zone"); - - b.Property("LocationId") - .HasColumnType("bigint"); - - b.Property("PaymentId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("LocationId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.ToTable("HairMultiCutQueries"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Cares") - .HasColumnType("boolean"); - - b.Property("Cut") - .HasColumnType("boolean"); - - b.Property("Dressing") - .HasColumnType("integer"); - - b.Property("Gender") - .HasColumnType("integer"); - - b.Property("Length") - .HasColumnType("integer"); - - b.Property("Shampoo") - .HasColumnType("boolean"); - - b.Property("Tech") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("HairPrestation"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("PrestationId") - .HasColumnType("bigint"); - - b.Property("QueryId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("PrestationId"); - - b.HasIndex("QueryId"); - - b.ToTable("HairPrestationCollectionItem"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Brand") - .IsRequired() - .HasColumnType("text"); - - b.Property("ColorId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("ColorId"); - - b.ToTable("HairTaint"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.Property("TaintId") - .HasColumnType("bigint"); - - b.Property("PrestationId") - .HasColumnType("bigint"); - - b.HasKey("TaintId", "PrestationId"); - - b.HasIndex("PrestationId"); - - b.ToTable("HairTaintInstance"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Evolution.Feature", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("ShortName") - .IsRequired() - .HasColumnType("text"); - - b.Property("Status") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("Feature"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("FeatureId") - .HasColumnType("bigint"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("FeatureId"); - - b.ToTable("Bug"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.DeviceDeclaration", b => - { - b.Property("DeviceId") - .HasColumnType("text"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasColumnType("timestamp with time zone") - .HasDefaultValueSql("LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("LatestActivityUpdate") - .HasColumnType("timestamp with time zone"); - - b.Property("Model") - .IsRequired() - .HasColumnType("text"); - - b.Property("Platform") - .IsRequired() - .HasColumnType("text"); - - b.Property("Version") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("DeviceId"); - - b.HasIndex("DeviceOwnerId"); - - b.ToTable("DeviceDeclaration"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Depth") - .HasColumnType("numeric"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("Height") - .HasColumnType("numeric"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Price") - .HasColumnType("numeric"); - - b.Property("Public") - .HasColumnType("boolean"); - - b.Property("Weight") - .HasColumnType("numeric"); - - b.Property("Width") - .HasColumnType("numeric"); - - b.HasKey("Id"); - - b.ToTable("Products"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ContextId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Public") - .HasColumnType("boolean"); - - b.HasKey("Id"); - - b.HasIndex("ContextId"); - - b.ToTable("Services"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("For") - .HasColumnType("smallint"); - - b.Property("Message") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Sender") - .IsRequired() - .HasColumnType("text"); - - b.Property("Topic") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.ToTable("Announce"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DismissClicked", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("NotificationId") - .HasColumnType("bigint"); - - b.HasKey("UserId", "NotificationId"); - - b.HasIndex("NotificationId"); - - b.ToTable("DismissClicked"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("character varying(255)"); - - b.HasKey("Id"); - - b.ToTable("Instrument"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.InstrumentRating", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("InstrumentId") - .HasColumnType("bigint"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.HasAlternateKey("InstrumentId", "OwnerId"); - - b.HasIndex("OwnerId"); - - b.ToTable("InstrumentRating"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId") - .HasColumnType("text"); - - b.Property("DjSettingsUserId") - .HasColumnType("text"); - - b.Property("GeneralSettingsUserId") - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.Property("TendencyId") - .HasColumnType("bigint"); - - b.HasKey("OwnerProfileId"); - - b.HasIndex("DjSettingsUserId"); - - b.HasIndex("GeneralSettingsUserId"); - - b.ToTable("MusicalPreference"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("character varying(255)"); - - b.HasKey("Id"); - - b.ToTable("MusicalTendency"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("SoundCloudId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("DjSettings"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("GeneralSettings"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId") - .HasColumnType("bigint"); - - b.Property("UserId") - .HasColumnType("text"); - - b.HasKey("InstrumentId", "UserId"); - - b.HasIndex("UserId"); - - b.ToTable("Instrumentation"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Property("CreationToken") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("ExecutorId") - .IsRequired() - .HasColumnType("text"); - - b.Property("OrderReference") - .IsRequired() - .HasColumnType("text"); - - b.Property("PaypalPayerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("State") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("CreationToken"); - - b.HasIndex("ExecutorId"); - - b.ToTable("PayPalPayment"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ApplicationUserId") - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Public") - .HasColumnType("boolean"); - - b.HasKey("Id"); - - b.HasIndex("ApplicationUserId"); - - b.ToTable("Circle"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId") - .HasColumnType("text"); - - b.Property("CircleId") - .HasColumnType("bigint"); - - b.HasKey("MemberId", "CircleId"); - - b.HasIndex("CircleId"); - - b.ToTable("CircleMembers"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId") - .HasColumnType("text"); - - b.Property("UserId") - .HasColumnType("text"); - - b.Property("AddressId") - .HasColumnType("bigint"); - - b.Property("ApplicationUserId") - .HasColumnType("text"); - - b.Property("EMail") - .IsRequired() - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("OwnerId", "UserId"); - - b.HasIndex("AddressId"); - - b.HasIndex("ApplicationUserId"); - - b.ToTable("Contact"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.Property("HRef") - .HasColumnType("text"); - - b.Property("Method") - .HasColumnType("text"); - - b.Property("BrusherProfileUserId") - .HasColumnType("text"); - - b.Property("ContentType") - .IsRequired() - .HasColumnType("text"); - - b.Property("PayPalPaymentCreationToken") - .HasColumnType("text"); - - b.Property("Rel") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("HRef", "Method"); - - b.HasIndex("BrusherProfileUserId"); - - b.HasIndex("PayPalPaymentCreationToken"); - - b.ToTable("HyperLink"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Address") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("Latitude") - .HasColumnType("double precision"); - - b.Property("Longitude") - .HasColumnType("double precision"); - - b.HasKey("Id"); - - b.ToTable("Locations"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostalAddress", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("City") - .IsRequired() - .HasColumnType("text"); - - b.Property("Country") - .IsRequired() - .HasColumnType("text"); - - b.Property("PostalCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("Province") - .IsRequired() - .HasColumnType("text"); - - b.Property("State") - .IsRequired() - .HasColumnType("text"); - - b.Property("Street1") - .IsRequired() - .HasColumnType("text"); - - b.Property("Street2") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("PostalAddress"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("Tags"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("SiteSkills"); - }); - - modelBuilder.Entity("Yavsc.Models.Streaming.LiveFlow", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("DifferedFileName") - .IsRequired() - .HasColumnType("text"); - - b.Property("MediaType") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Pitch") - .IsRequired() - .HasColumnType("text"); - - b.Property("SequenceNumber") - .HasColumnType("integer"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.ToTable("LiveFlow"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("Hidden") - .HasColumnType("boolean"); - - b.Property("ModeratorGroupName") - .IsRequired() - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("ParentCode") - .HasColumnType("text"); - - b.Property("Photo") - .IsRequired() - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.Property("SettingsClassName") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Code"); - - b.HasIndex("ParentCode"); - - b.ToTable("Activities"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("FormationSettingsUserId") - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("WorkingForId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("FormationSettingsUserId"); - - b.HasIndex("PerformerId"); - - b.HasIndex("WorkingForId"); - - b.ToTable("CoWorking"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ActionName") - .IsRequired() - .HasColumnType("text"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.ToTable("CommandForm"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId") - .HasColumnType("text"); - - b.Property("AcceptNotifications") - .HasColumnType("boolean"); - - b.Property("AcceptPublicContact") - .HasColumnType("boolean"); - - b.Property("Active") - .HasColumnType("boolean"); - - b.Property("MaxDailyCost") - .HasColumnType("integer"); - - b.Property("MinDailyCost") - .HasColumnType("integer"); - - b.Property("OrganizationAddressId") - .HasColumnType("bigint"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.Property("SIREN") - .IsRequired() - .HasColumnType("text"); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients") - .HasColumnType("boolean"); - - b.Property("WebSite") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("PerformerId"); - - b.HasIndex("OrganizationAddressId"); - - b.ToTable("Performers"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("DisplayName") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("FormationSettings"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Accepted") - .HasColumnType("boolean"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Decided") - .HasColumnType("boolean"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("EventDate") - .HasColumnType("timestamp with time zone"); - - b.Property("LocationId") - .HasColumnType("bigint"); - - b.Property("LocationType") - .HasColumnType("integer"); - - b.Property("PaymentId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("Reason") - .IsRequired() - .HasColumnType("text"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("LocationId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.ToTable("RdvQueries"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode") - .HasColumnType("text"); - - b.Property("UserId") - .HasColumnType("text"); - - b.Property("Weight") - .HasColumnType("integer"); - - b.HasKey("DoesCode", "UserId"); - - b.HasIndex("UserId"); - - b.ToTable("UserActivities"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Calendar.Period", b => - { - b.Property("Start") - .HasColumnType("timestamp with time zone"); - - b.Property("End") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Start", "End"); - - b.ToTable("Period"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.EMailing.MailingTemplate", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("Body") - .IsRequired() - .HasMaxLength(65536) - .HasColumnType("character varying(65536)"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("ReplyToAddress") - .IsRequired() - .HasColumnType("text"); - - b.Property("ToSend") - .HasColumnType("integer"); - - b.Property("Topic") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("MailingTemplate"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Accepted") - .HasColumnType("boolean"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Decided") - .HasColumnType("boolean"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("GitId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PaymentId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.Property("Version") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("GitId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.ToTable("Project"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("ProjectId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("ProjectId"); - - b.ToTable("ProjectBuildConfiguration"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Branch") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Path") - .IsRequired() - .HasColumnType("text"); - - b.Property("Url") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.ToTable("GitRepositoryReference"); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null) - .WithMany() - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null) - .WithMany() - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "TargetUser") - .WithMany() - .HasForeignKey("TargetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TargetUser"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany("BlackList") - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost", "Target") - .WithMany("ACL") - .HasForeignKey("BlogPostId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Circle", "Allowed") - .WithMany() - .HasForeignKey("CircleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Allowed"); - - b.Navigation("Target"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithOne("AccountBalance") - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Relationship.Location", "PostalAddress") - .WithMany() - .HasForeignKey("PostalAddressId"); - - b.Navigation("PostalAddress"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance", "Balance") - .WithMany() - .HasForeignKey("BalanceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Balance"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany("BankInfo") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate", null) - .WithMany("Bill") - .HasForeignKey("EstimateId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate", null) - .WithMany("Bill") - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery", "Query") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Owner"); - - b.Navigation("Query"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Author") - .WithMany("Posts") - .HasForeignKey("AuthorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Author"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost", "Post") - .WithMany("Tags") - .HasForeignKey("PostId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Tag", "Tag") - .WithMany() - .HasForeignKey("TagId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Post"); - - b.Navigation("Tag"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Author") - .WithMany() - .HasForeignKey("AuthorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Blog.Comment", "Parent") - .WithMany("Children") - .HasForeignKey("ParentId"); - - b.HasOne("Yavsc.Models.Blog.BlogPost", "Post") - .WithMany("Comments") - .HasForeignKey("ReceiverId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Author"); - - b.Navigation("Parent"); - - b.Navigation("Post"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule", null) - .WithMany("Events") - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Server.Models.Calendar.Period", "Period") - .WithMany() - .HasForeignKey("PeriodStart", "PeriodEnd") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Period"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany("Connections") - .HasForeignKey("ApplicationUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany("Rooms") - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomAccess", b => - { - b.HasOne("Yavsc.Models.Chat.ChatRoom", "Room") - .WithMany("Moderation") - .HasForeignKey("ChannelName") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany("RoomAccess") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Room"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule", "Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "BaseProfile") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("BaseProfile"); - - b.Navigation("Schedule"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Location", "Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation", "Prestation") - .WithMany() - .HasForeignKey("PrestationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.BrusherProfile", "SelectedProfile") - .WithMany() - .HasForeignKey("SelectedProfileUserId"); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("Location"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Prestation"); - - b.Navigation("Regularisation"); - - b.Navigation("SelectedProfile"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Location", "Location") - .WithMany() - .HasForeignKey("LocationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("Location"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Regularisation"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation", "Prestation") - .WithMany() - .HasForeignKey("PrestationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery", "Query") - .WithMany("Prestations") - .HasForeignKey("QueryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Prestation"); - - b.Navigation("Query"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color", "Color") - .WithMany() - .HasForeignKey("ColorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Color"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation", "Prestation") - .WithMany("Taints") - .HasForeignKey("PrestationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.HairTaint", "Taint") - .WithMany() - .HasForeignKey("TaintId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Prestation"); - - b.Navigation("Taint"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.HasOne("Yavsc.Models.IT.Evolution.Feature", "False") - .WithMany() - .HasForeignKey("FeatureId"); - - b.Navigation("False"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.DeviceDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "DeviceOwner") - .WithMany("DeviceDeclaration") - .HasForeignKey("DeviceOwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("DeviceOwner"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany("Services") - .HasForeignKey("ContextId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Context"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DismissClicked", b => - { - b.HasOne("Yavsc.Abstract.Models.Messaging.Notification", "Notified") - .WithMany() - .HasForeignKey("NotificationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Notified"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.InstrumentRating", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument", "Instrument") - .WithMany() - .HasForeignKey("InstrumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "Profile") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Instrument"); - - b.Navigation("Profile"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings", null) - .WithMany("SoundColor") - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings", null) - .WithMany("SoundColor") - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument", "Tool") - .WithMany() - .HasForeignKey("InstrumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tool"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Executor") - .WithMany() - .HasForeignKey("ExecutorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Executor"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany("Circles") - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle", "Circle") - .WithMany("Members") - .HasForeignKey("CircleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Member") - .WithMany("Membership") - .HasForeignKey("MemberId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Circle"); - - b.Navigation("Member"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.Relationship.PostalAddress", "PostalAddress") - .WithMany() - .HasForeignKey("AddressId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany("Book") - .HasForeignKey("ApplicationUserId"); - - b.Navigation("PostalAddress"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.HasOne("Yavsc.Models.Haircut.BrusherProfile", null) - .WithMany("Links") - .HasForeignKey("BrusherProfileUserId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", null) - .WithMany("Links") - .HasForeignKey("PayPalPaymentCreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Streaming.LiveFlow", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Parent") - .WithMany("Children") - .HasForeignKey("ParentCode"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings", null) - .WithMany("CoWorking") - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "Performer") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "WorkingFor") - .WithMany() - .HasForeignKey("WorkingForId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Performer"); - - b.Navigation("WorkingFor"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany("Forms") - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Context"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location", "OrganizationAddress") - .WithMany() - .HasForeignKey("OrganizationAddressId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Performer") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("OrganizationAddress"); - - b.Navigation("Performer"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Location", "Location") - .WithMany() - .HasForeignKey("LocationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("Location"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Regularisation"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Does") - .WithMany() - .HasForeignKey("DoesCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "User") - .WithMany("Activity") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Does"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", "Repository") - .WithMany() - .HasForeignKey("GitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Regularisation"); - - b.Navigation("Repository"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.HasOne("Yavsc.Server.Models.IT.Project", "TargetProject") - .WithMany("Configurations") - .HasForeignKey("ProjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TargetProject"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Navigation("AccountBalance") - .IsRequired(); - - b.Navigation("BankInfo"); - - b.Navigation("BlackList"); - - b.Navigation("Book"); - - b.Navigation("Circles"); - - b.Navigation("Connections"); - - b.Navigation("DeviceDeclaration"); - - b.Navigation("Membership"); - - b.Navigation("Posts"); - - b.Navigation("RoomAccess"); - - b.Navigation("Rooms"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Navigation("Bill"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Navigation("Bill"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.Navigation("ACL"); - - b.Navigation("Comments"); - - b.Navigation("Tags"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.Navigation("Children"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Navigation("Events"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.Navigation("Moderation"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Navigation("Links"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Navigation("Prestations"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Navigation("Taints"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Navigation("SoundColor"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Navigation("SoundColor"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Navigation("Links"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Navigation("Members"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Navigation("Children"); - - b.Navigation("Forms"); - - b.Navigation("Services"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Navigation("Activity"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Navigation("CoWorking"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.Navigation("Configurations"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/Yavsc.Server/Migrations/20250613132139_BlogPostInputViewModelNulls.cs b/src/Yavsc.Server/Migrations/20250613132139_BlogPostInputViewModelNulls.cs deleted file mode 100644 index 737e5e72..00000000 --- a/src/Yavsc.Server/Migrations/20250613132139_BlogPostInputViewModelNulls.cs +++ /dev/null @@ -1,40 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace Yavsc.Migrations -{ - /// - public partial class BlogPostInputViewModelNulls : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "Content", - table: "BlogSpot", - type: "character varying(56224)", - maxLength: 56224, - nullable: true, - oldClrType: typeof(string), - oldType: "character varying(56224)", - oldMaxLength: 56224); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "Content", - table: "BlogSpot", - type: "character varying(56224)", - maxLength: 56224, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "character varying(56224)", - oldMaxLength: 56224, - oldNullable: true); - } - } -} diff --git a/src/Yavsc.Server/Migrations/20250613181510_ActivityNulls.Designer.cs b/src/Yavsc.Server/Migrations/20250613181510_ActivityNulls.Designer.cs deleted file mode 100644 index 810489e1..00000000 --- a/src/Yavsc.Server/Migrations/20250613181510_ActivityNulls.Designer.cs +++ /dev/null @@ -1,3497 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; -using Yavsc.Models; - -#nullable disable - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20250613181510_ActivityNulls")] - partial class ActivityNulls - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "9.0.6") - .HasAnnotation("Relational:MaxIdentifierLength", 63); - - NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasColumnType("text"); - - b.Property("Name") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("NormalizedName") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .IsUnique() - .HasDatabaseName("RoleNameIndex"); - - b.ToTable("AspNetRoles", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ClaimType") - .HasColumnType("text"); - - b.Property("ClaimValue") - .HasColumnType("text"); - - b.Property("RoleId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("RoleId"); - - b.ToTable("AspNetRoleClaims", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ClaimType") - .HasColumnType("text"); - - b.Property("ClaimValue") - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.ToTable("AspNetUserClaims", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => - { - b.Property("LoginProvider") - .HasColumnType("text"); - - b.Property("ProviderKey") - .HasColumnType("text"); - - b.Property("ProviderDisplayName") - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasIndex("UserId"); - - b.ToTable("AspNetUserLogins", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("RoleId") - .HasColumnType("text"); - - b.HasKey("UserId", "RoleId"); - - b.HasIndex("RoleId"); - - b.ToTable("AspNetUserRoles", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("LoginProvider") - .HasColumnType("text"); - - b.Property("Name") - .HasColumnType("text"); - - b.Property("Value") - .HasColumnType("text"); - - b.HasKey("UserId", "LoginProvider", "Name"); - - b.ToTable("AspNetUserTokens", (string)null); - }); - - modelBuilder.Entity("Yavsc.Abstract.Identity.ClientProviderInfo", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("Avatar") - .IsRequired() - .HasColumnType("text"); - - b.Property("BillingAddressId") - .HasColumnType("bigint"); - - b.Property("EMail") - .IsRequired() - .HasColumnType("text"); - - b.Property("Phone") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserName") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("ClientProviderInfo"); - }); - - modelBuilder.Entity("Yavsc.Abstract.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Target") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("body") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("click_action") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("color") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("icon") - .ValueGeneratedOnAdd() - .HasMaxLength(512) - .HasColumnType("character varying(512)") - .HasDefaultValue("exclam"); - - b.Property("sound") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("tag") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("title") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("character varying(1024)"); - - b.HasKey("Id"); - - b.ToTable("Notification"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Reason") - .IsRequired() - .HasColumnType("text"); - - b.Property("TargetId") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("TargetId"); - - b.ToTable("Ban"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.HasIndex("UserId"); - - b.ToTable("BlackListed"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId") - .HasColumnType("bigint"); - - b.Property("BlogPostId") - .HasColumnType("bigint"); - - b.HasKey("CircleId", "BlogPostId"); - - b.HasIndex("BlogPostId"); - - b.ToTable("CircleAuthorizationToBlogPost"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("ContactCredits") - .HasColumnType("bigint"); - - b.Property("Credits") - .HasColumnType("numeric"); - - b.HasKey("UserId"); - - b.ToTable("BankStatus"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("AccessFailedCount") - .HasColumnType("integer"); - - b.Property("AllowMonthlyEmail") - .HasColumnType("boolean"); - - b.Property("Avatar") - .IsRequired() - .ValueGeneratedOnAdd() - .HasMaxLength(512) - .HasColumnType("character varying(512)") - .HasDefaultValue("/images/Users/icon_user.png"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasColumnType("text"); - - b.Property("DedicatedGoogleCalendar") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("DiskQuota") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasDefaultValue(524288000L); - - b.Property("DiskUsage") - .HasColumnType("bigint"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("EmailConfirmed") - .HasColumnType("boolean"); - - b.Property("FullName") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("LockoutEnabled") - .HasColumnType("boolean"); - - b.Property("LockoutEnd") - .HasColumnType("timestamp with time zone"); - - b.Property("MaxFileSize") - .HasColumnType("bigint"); - - b.Property("NormalizedEmail") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("NormalizedUserName") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("PasswordHash") - .HasColumnType("text"); - - b.Property("PhoneNumber") - .HasColumnType("text"); - - b.Property("PhoneNumberConfirmed") - .HasColumnType("boolean"); - - b.Property("PostalAddressId") - .HasColumnType("bigint"); - - b.Property("SecurityStamp") - .HasColumnType("text"); - - b.Property("TwoFactorEnabled") - .HasColumnType("boolean"); - - b.Property("UserName") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.HasKey("Id"); - - b.HasAlternateKey("Email"); - - b.HasIndex("NormalizedEmail") - .HasDatabaseName("EmailIndex"); - - b.HasIndex("NormalizedUserName") - .IsUnique() - .HasDatabaseName("UserNameIndex"); - - b.HasIndex("PostalAddressId"); - - b.ToTable("AspNetUsers", (string)null); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("text"); - - b.Property("AccessTokenLifetime") - .HasColumnType("integer"); - - b.Property("Active") - .HasColumnType("boolean"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("character varying(128)"); - - b.Property("LogoutRedirectUri") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("RedirectUri") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("RefreshTokenLifeTime") - .HasColumnType("integer"); - - b.Property("Secret") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("Type") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("Applications"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.OAuth2Tokens", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("AccessToken") - .IsRequired() - .HasColumnType("text"); - - b.Property("Expiration") - .HasColumnType("timestamp with time zone"); - - b.Property("ExpiresIn") - .IsRequired() - .HasColumnType("text"); - - b.Property("RefreshToken") - .IsRequired() - .HasColumnType("text"); - - b.Property("TokenType") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("OAuth2Tokens"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("character varying(50)"); - - b.Property("ExpiresUtc") - .HasColumnType("timestamp with time zone"); - - b.Property("IssuedUtc") - .HasColumnType("timestamp with time zone"); - - b.Property("ProtectedTicket") - .IsRequired() - .HasColumnType("text"); - - b.Property("Subject") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("character varying(50)"); - - b.HasKey("Id"); - - b.ToTable("RefreshTokens"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Scope", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("character varying(1024)"); - - b.HasKey("Id"); - - b.ToTable("Scopes"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("BalanceId") - .IsRequired() - .HasColumnType("text"); - - b.Property("ExecDate") - .HasColumnType("timestamp with time zone"); - - b.Property("Impact") - .HasColumnType("numeric"); - - b.Property("Reason") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("BalanceId"); - - b.ToTable("BankBook"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AccountNumber") - .IsRequired() - .HasColumnType("text"); - - b.Property("BIC") - .IsRequired() - .HasColumnType("text"); - - b.Property("BankCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("BankedKey") - .HasColumnType("integer"); - - b.Property("IBAN") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.Property("WicketCode") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.ToTable("BankIdentity"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Count") - .HasColumnType("integer"); - - b.Property("Currency") - .IsRequired() - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("EstimateId") - .HasColumnType("bigint"); - - b.Property("EstimateTemplateId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("UnitaryCost") - .HasColumnType("numeric"); - - b.HasKey("Id"); - - b.HasIndex("EstimateId"); - - b.HasIndex("EstimateTemplateId"); - - b.ToTable("CommandLine"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AttachedFilesString") - .IsRequired() - .HasColumnType("text"); - - b.Property("AttachedGraphicsString") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientValidationDate") - .HasColumnType("timestamp with time zone"); - - b.Property("CommandId") - .HasColumnType("bigint"); - - b.Property("CommandType") - .IsRequired() - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("ProviderValidationDate") - .HasColumnType("timestamp with time zone"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ClientId"); - - b.HasIndex("CommandId"); - - b.HasIndex("OwnerId"); - - b.ToTable("Estimates"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("EstimateTemplates"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN") - .HasColumnType("text"); - - b.HasKey("SIREN"); - - b.ToTable("ExceptionsSIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AuthorId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Content") - .HasMaxLength(56224) - .HasColumnType("character varying(56224)"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Photo") - .HasMaxLength(1024) - .HasColumnType("character varying(1024)"); - - b.Property("Title") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("character varying(1024)"); - - b.Property("UserCreated") - .HasColumnType("text"); - - b.Property("UserModified") - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("AuthorId"); - - b.ToTable("BlogSpot"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.Property("PostId") - .HasColumnType("bigint"); - - b.Property("TagId") - .HasColumnType("bigint"); - - b.HasKey("PostId", "TagId"); - - b.HasIndex("TagId"); - - b.ToTable("BlogTag"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AuthorId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Content") - .IsRequired() - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("ParentId") - .HasColumnType("bigint"); - - b.Property("ReceiverId") - .HasColumnType("bigint"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("Visible") - .HasColumnType("boolean"); - - b.HasKey("Id"); - - b.HasIndex("AuthorId"); - - b.HasIndex("ParentId"); - - b.HasIndex("ReceiverId"); - - b.ToTable("Comment"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Property("OwnerId") - .HasColumnType("text"); - - b.HasKey("OwnerId"); - - b.ToTable("Schedule"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("PeriodEnd") - .HasColumnType("timestamp with time zone"); - - b.Property("PeriodStart") - .HasColumnType("timestamp with time zone"); - - b.Property("Reccurence") - .HasColumnType("integer"); - - b.Property("ScheduleOwnerId") - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ScheduleOwnerId"); - - b.HasIndex("PeriodStart", "PeriodEnd"); - - b.ToTable("ScheduledEvent"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.Property("ConnectionId") - .HasColumnType("text"); - - b.Property("ApplicationUserId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Connected") - .HasColumnType("boolean"); - - b.Property("UserAgent") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("ConnectionId"); - - b.HasIndex("ApplicationUserId"); - - b.ToTable("ChatConnection"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.Property("Name") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("LatestJoinPart") - .HasColumnType("timestamp with time zone"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Topic") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Name"); - - b.HasIndex("OwnerId"); - - b.ToTable("ChatRoom"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomAccess", b => - { - b.Property("ChannelName") - .HasColumnType("text"); - - b.Property("UserId") - .HasColumnType("text"); - - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Level") - .HasColumnType("integer"); - - b.HasKey("ChannelName", "UserId"); - - b.HasIndex("UserId"); - - b.ToTable("ChatRoomAccess"); - }); - - modelBuilder.Entity("Yavsc.Models.Cratie.Option", b => - { - b.Property("Code") - .HasColumnType("text"); - - b.Property("CodeScrutin") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Code", "CodeScrutin"); - - b.ToTable("Option"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Blue") - .HasColumnType("smallint"); - - b.Property("Green") - .HasColumnType("smallint"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Red") - .HasColumnType("smallint"); - - b.HasKey("Id"); - - b.ToTable("Color"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("Summary") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("Form"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("ActionDistance") - .HasColumnType("integer"); - - b.Property("CarePrice") - .HasColumnType("numeric"); - - b.Property("FlatFeeDiscount") - .HasColumnType("numeric"); - - b.Property("HalfBalayagePrice") - .HasColumnType("numeric"); - - b.Property("HalfBrushingPrice") - .HasColumnType("numeric"); - - b.Property("HalfColorPrice") - .HasColumnType("numeric"); - - b.Property("HalfDefrisPrice") - .HasColumnType("numeric"); - - b.Property("HalfFoldingPrice") - .HasColumnType("numeric"); - - b.Property("HalfMechPrice") - .HasColumnType("numeric"); - - b.Property("HalfMultiColorPrice") - .HasColumnType("numeric"); - - b.Property("HalfPermanentPrice") - .HasColumnType("numeric"); - - b.Property("KidCutPrice") - .HasColumnType("numeric"); - - b.Property("LongBalayagePrice") - .HasColumnType("numeric"); - - b.Property("LongBrushingPrice") - .HasColumnType("numeric"); - - b.Property("LongColorPrice") - .HasColumnType("numeric"); - - b.Property("LongDefrisPrice") - .HasColumnType("numeric"); - - b.Property("LongFoldingPrice") - .HasColumnType("numeric"); - - b.Property("LongMechPrice") - .HasColumnType("numeric"); - - b.Property("LongMultiColorPrice") - .HasColumnType("numeric"); - - b.Property("LongPermanentPrice") - .HasColumnType("numeric"); - - b.Property("ManBrushPrice") - .HasColumnType("numeric"); - - b.Property("ManCutPrice") - .HasColumnType("numeric"); - - b.Property("ScheduleOwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("ShampooPrice") - .HasColumnType("numeric"); - - b.Property("ShortBalayagePrice") - .HasColumnType("numeric"); - - b.Property("ShortBrushingPrice") - .HasColumnType("numeric"); - - b.Property("ShortColorPrice") - .HasColumnType("numeric"); - - b.Property("ShortDefrisPrice") - .HasColumnType("numeric"); - - b.Property("ShortFoldingPrice") - .HasColumnType("numeric"); - - b.Property("ShortMechPrice") - .HasColumnType("numeric"); - - b.Property("ShortMultiColorPrice") - .HasColumnType("numeric"); - - b.Property("ShortPermanentPrice") - .HasColumnType("numeric"); - - b.Property("WomenHalfCutPrice") - .HasColumnType("numeric"); - - b.Property("WomenLongCutPrice") - .HasColumnType("numeric"); - - b.Property("WomenShortCutPrice") - .HasColumnType("numeric"); - - b.HasKey("UserId"); - - b.HasIndex("ScheduleOwnerId"); - - b.ToTable("BrusherProfile"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Accepted") - .HasColumnType("boolean"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("AdditionalInfo") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Decided") - .HasColumnType("boolean"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("EventDate") - .HasColumnType("timestamp with time zone"); - - b.Property("LocationId") - .HasColumnType("bigint"); - - b.Property("PaymentId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PrestationId") - .HasColumnType("bigint"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("SelectedProfileUserId") - .HasColumnType("text"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("LocationId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.HasIndex("PrestationId"); - - b.HasIndex("SelectedProfileUserId"); - - b.ToTable("HairCutQueries"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Accepted") - .HasColumnType("boolean"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Decided") - .HasColumnType("boolean"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("EventDate") - .HasColumnType("timestamp with time zone"); - - b.Property("LocationId") - .HasColumnType("bigint"); - - b.Property("PaymentId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("LocationId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.ToTable("HairMultiCutQueries"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Cares") - .HasColumnType("boolean"); - - b.Property("Cut") - .HasColumnType("boolean"); - - b.Property("Dressing") - .HasColumnType("integer"); - - b.Property("Gender") - .HasColumnType("integer"); - - b.Property("Length") - .HasColumnType("integer"); - - b.Property("Shampoo") - .HasColumnType("boolean"); - - b.Property("Tech") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("HairPrestation"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("PrestationId") - .HasColumnType("bigint"); - - b.Property("QueryId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("PrestationId"); - - b.HasIndex("QueryId"); - - b.ToTable("HairPrestationCollectionItem"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Brand") - .IsRequired() - .HasColumnType("text"); - - b.Property("ColorId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("ColorId"); - - b.ToTable("HairTaint"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.Property("TaintId") - .HasColumnType("bigint"); - - b.Property("PrestationId") - .HasColumnType("bigint"); - - b.HasKey("TaintId", "PrestationId"); - - b.HasIndex("PrestationId"); - - b.ToTable("HairTaintInstance"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Evolution.Feature", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("ShortName") - .IsRequired() - .HasColumnType("text"); - - b.Property("Status") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("Feature"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("FeatureId") - .HasColumnType("bigint"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("FeatureId"); - - b.ToTable("Bug"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.DeviceDeclaration", b => - { - b.Property("DeviceId") - .HasColumnType("text"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasColumnType("timestamp with time zone") - .HasDefaultValueSql("LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("LatestActivityUpdate") - .HasColumnType("timestamp with time zone"); - - b.Property("Model") - .IsRequired() - .HasColumnType("text"); - - b.Property("Platform") - .IsRequired() - .HasColumnType("text"); - - b.Property("Version") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("DeviceId"); - - b.HasIndex("DeviceOwnerId"); - - b.ToTable("DeviceDeclaration"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Depth") - .HasColumnType("numeric"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("Height") - .HasColumnType("numeric"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Price") - .HasColumnType("numeric"); - - b.Property("Public") - .HasColumnType("boolean"); - - b.Property("Weight") - .HasColumnType("numeric"); - - b.Property("Width") - .HasColumnType("numeric"); - - b.HasKey("Id"); - - b.ToTable("Products"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ContextId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Public") - .HasColumnType("boolean"); - - b.HasKey("Id"); - - b.HasIndex("ContextId"); - - b.ToTable("Services"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("For") - .HasColumnType("smallint"); - - b.Property("Message") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Sender") - .IsRequired() - .HasColumnType("text"); - - b.Property("Topic") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.ToTable("Announce"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DismissClicked", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("NotificationId") - .HasColumnType("bigint"); - - b.HasKey("UserId", "NotificationId"); - - b.HasIndex("NotificationId"); - - b.ToTable("DismissClicked"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("character varying(255)"); - - b.HasKey("Id"); - - b.ToTable("Instrument"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.InstrumentRating", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("InstrumentId") - .HasColumnType("bigint"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.HasAlternateKey("InstrumentId", "OwnerId"); - - b.HasIndex("OwnerId"); - - b.ToTable("InstrumentRating"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId") - .HasColumnType("text"); - - b.Property("DjSettingsUserId") - .HasColumnType("text"); - - b.Property("GeneralSettingsUserId") - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.Property("TendencyId") - .HasColumnType("bigint"); - - b.HasKey("OwnerProfileId"); - - b.HasIndex("DjSettingsUserId"); - - b.HasIndex("GeneralSettingsUserId"); - - b.ToTable("MusicalPreference"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("character varying(255)"); - - b.HasKey("Id"); - - b.ToTable("MusicalTendency"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("SoundCloudId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("DjSettings"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("GeneralSettings"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId") - .HasColumnType("bigint"); - - b.Property("UserId") - .HasColumnType("text"); - - b.HasKey("InstrumentId", "UserId"); - - b.HasIndex("UserId"); - - b.ToTable("Instrumentation"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Property("CreationToken") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("ExecutorId") - .IsRequired() - .HasColumnType("text"); - - b.Property("OrderReference") - .IsRequired() - .HasColumnType("text"); - - b.Property("PaypalPayerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("State") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("CreationToken"); - - b.HasIndex("ExecutorId"); - - b.ToTable("PayPalPayment"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ApplicationUserId") - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Public") - .HasColumnType("boolean"); - - b.HasKey("Id"); - - b.HasIndex("ApplicationUserId"); - - b.ToTable("Circle"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId") - .HasColumnType("text"); - - b.Property("CircleId") - .HasColumnType("bigint"); - - b.HasKey("MemberId", "CircleId"); - - b.HasIndex("CircleId"); - - b.ToTable("CircleMembers"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId") - .HasColumnType("text"); - - b.Property("UserId") - .HasColumnType("text"); - - b.Property("AddressId") - .HasColumnType("bigint"); - - b.Property("ApplicationUserId") - .HasColumnType("text"); - - b.Property("EMail") - .IsRequired() - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("OwnerId", "UserId"); - - b.HasIndex("AddressId"); - - b.HasIndex("ApplicationUserId"); - - b.ToTable("Contact"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.Property("HRef") - .HasColumnType("text"); - - b.Property("Method") - .HasColumnType("text"); - - b.Property("BrusherProfileUserId") - .HasColumnType("text"); - - b.Property("ContentType") - .IsRequired() - .HasColumnType("text"); - - b.Property("PayPalPaymentCreationToken") - .HasColumnType("text"); - - b.Property("Rel") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("HRef", "Method"); - - b.HasIndex("BrusherProfileUserId"); - - b.HasIndex("PayPalPaymentCreationToken"); - - b.ToTable("HyperLink"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Address") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("Latitude") - .HasColumnType("double precision"); - - b.Property("Longitude") - .HasColumnType("double precision"); - - b.HasKey("Id"); - - b.ToTable("Locations"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostalAddress", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("City") - .IsRequired() - .HasColumnType("text"); - - b.Property("Country") - .IsRequired() - .HasColumnType("text"); - - b.Property("PostalCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("Province") - .IsRequired() - .HasColumnType("text"); - - b.Property("State") - .IsRequired() - .HasColumnType("text"); - - b.Property("Street1") - .IsRequired() - .HasColumnType("text"); - - b.Property("Street2") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("PostalAddress"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("Tags"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("SiteSkills"); - }); - - modelBuilder.Entity("Yavsc.Models.Streaming.LiveFlow", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("DifferedFileName") - .IsRequired() - .HasColumnType("text"); - - b.Property("MediaType") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Pitch") - .IsRequired() - .HasColumnType("text"); - - b.Property("SequenceNumber") - .HasColumnType("integer"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.ToTable("LiveFlow"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("Hidden") - .HasColumnType("boolean"); - - b.Property("ModeratorGroupName") - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("ParentCode") - .HasColumnType("text"); - - b.Property("Photo") - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.Property("SettingsClassName") - .HasColumnType("text"); - - b.Property("UserCreated") - .HasColumnType("text"); - - b.Property("UserModified") - .HasColumnType("text"); - - b.HasKey("Code"); - - b.HasIndex("ParentCode"); - - b.ToTable("Activities"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("FormationSettingsUserId") - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("WorkingForId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("FormationSettingsUserId"); - - b.HasIndex("PerformerId"); - - b.HasIndex("WorkingForId"); - - b.ToTable("CoWorking"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ActionName") - .IsRequired() - .HasColumnType("text"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.ToTable("CommandForm"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId") - .HasColumnType("text"); - - b.Property("AcceptNotifications") - .HasColumnType("boolean"); - - b.Property("AcceptPublicContact") - .HasColumnType("boolean"); - - b.Property("Active") - .HasColumnType("boolean"); - - b.Property("MaxDailyCost") - .HasColumnType("integer"); - - b.Property("MinDailyCost") - .HasColumnType("integer"); - - b.Property("OrganizationAddressId") - .HasColumnType("bigint"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.Property("SIREN") - .IsRequired() - .HasColumnType("text"); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients") - .HasColumnType("boolean"); - - b.Property("WebSite") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("PerformerId"); - - b.HasIndex("OrganizationAddressId"); - - b.ToTable("Performers"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("DisplayName") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("FormationSettings"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Accepted") - .HasColumnType("boolean"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Decided") - .HasColumnType("boolean"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("EventDate") - .HasColumnType("timestamp with time zone"); - - b.Property("LocationId") - .HasColumnType("bigint"); - - b.Property("LocationType") - .HasColumnType("integer"); - - b.Property("PaymentId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("Reason") - .IsRequired() - .HasColumnType("text"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("LocationId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.ToTable("RdvQueries"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode") - .HasColumnType("text"); - - b.Property("UserId") - .HasColumnType("text"); - - b.Property("Weight") - .HasColumnType("integer"); - - b.HasKey("DoesCode", "UserId"); - - b.HasIndex("UserId"); - - b.ToTable("UserActivities"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Calendar.Period", b => - { - b.Property("Start") - .HasColumnType("timestamp with time zone"); - - b.Property("End") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Start", "End"); - - b.ToTable("Period"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.EMailing.MailingTemplate", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("Body") - .IsRequired() - .HasMaxLength(65536) - .HasColumnType("character varying(65536)"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("ReplyToAddress") - .IsRequired() - .HasColumnType("text"); - - b.Property("ToSend") - .HasColumnType("integer"); - - b.Property("Topic") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("MailingTemplate"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Accepted") - .HasColumnType("boolean"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Decided") - .HasColumnType("boolean"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("GitId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PaymentId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.Property("Version") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("GitId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.ToTable("Project"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("ProjectId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("ProjectId"); - - b.ToTable("ProjectBuildConfiguration"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Branch") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Path") - .IsRequired() - .HasColumnType("text"); - - b.Property("Url") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.ToTable("GitRepositoryReference"); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null) - .WithMany() - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null) - .WithMany() - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "TargetUser") - .WithMany() - .HasForeignKey("TargetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TargetUser"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany("BlackList") - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost", "Target") - .WithMany("ACL") - .HasForeignKey("BlogPostId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Circle", "Allowed") - .WithMany() - .HasForeignKey("CircleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Allowed"); - - b.Navigation("Target"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithOne("AccountBalance") - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Relationship.Location", "PostalAddress") - .WithMany() - .HasForeignKey("PostalAddressId"); - - b.Navigation("PostalAddress"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance", "Balance") - .WithMany() - .HasForeignKey("BalanceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Balance"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany("BankInfo") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate", null) - .WithMany("Bill") - .HasForeignKey("EstimateId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate", null) - .WithMany("Bill") - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery", "Query") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Owner"); - - b.Navigation("Query"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Author") - .WithMany("Posts") - .HasForeignKey("AuthorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Author"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost", "Post") - .WithMany("Tags") - .HasForeignKey("PostId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Tag", "Tag") - .WithMany() - .HasForeignKey("TagId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Post"); - - b.Navigation("Tag"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Author") - .WithMany() - .HasForeignKey("AuthorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Blog.Comment", "Parent") - .WithMany("Children") - .HasForeignKey("ParentId"); - - b.HasOne("Yavsc.Models.Blog.BlogPost", "Post") - .WithMany("Comments") - .HasForeignKey("ReceiverId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Author"); - - b.Navigation("Parent"); - - b.Navigation("Post"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule", null) - .WithMany("Events") - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Server.Models.Calendar.Period", "Period") - .WithMany() - .HasForeignKey("PeriodStart", "PeriodEnd") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Period"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany("Connections") - .HasForeignKey("ApplicationUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany("Rooms") - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomAccess", b => - { - b.HasOne("Yavsc.Models.Chat.ChatRoom", "Room") - .WithMany("Moderation") - .HasForeignKey("ChannelName") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany("RoomAccess") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Room"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule", "Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "BaseProfile") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("BaseProfile"); - - b.Navigation("Schedule"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Location", "Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation", "Prestation") - .WithMany() - .HasForeignKey("PrestationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.BrusherProfile", "SelectedProfile") - .WithMany() - .HasForeignKey("SelectedProfileUserId"); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("Location"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Prestation"); - - b.Navigation("Regularisation"); - - b.Navigation("SelectedProfile"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Location", "Location") - .WithMany() - .HasForeignKey("LocationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("Location"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Regularisation"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation", "Prestation") - .WithMany() - .HasForeignKey("PrestationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery", "Query") - .WithMany("Prestations") - .HasForeignKey("QueryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Prestation"); - - b.Navigation("Query"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color", "Color") - .WithMany() - .HasForeignKey("ColorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Color"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation", "Prestation") - .WithMany("Taints") - .HasForeignKey("PrestationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.HairTaint", "Taint") - .WithMany() - .HasForeignKey("TaintId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Prestation"); - - b.Navigation("Taint"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.HasOne("Yavsc.Models.IT.Evolution.Feature", "False") - .WithMany() - .HasForeignKey("FeatureId"); - - b.Navigation("False"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.DeviceDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "DeviceOwner") - .WithMany("DeviceDeclaration") - .HasForeignKey("DeviceOwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("DeviceOwner"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany("Services") - .HasForeignKey("ContextId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Context"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DismissClicked", b => - { - b.HasOne("Yavsc.Abstract.Models.Messaging.Notification", "Notified") - .WithMany() - .HasForeignKey("NotificationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Notified"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.InstrumentRating", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument", "Instrument") - .WithMany() - .HasForeignKey("InstrumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "Profile") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Instrument"); - - b.Navigation("Profile"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings", null) - .WithMany("SoundColor") - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings", null) - .WithMany("SoundColor") - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument", "Tool") - .WithMany() - .HasForeignKey("InstrumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tool"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Executor") - .WithMany() - .HasForeignKey("ExecutorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Executor"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany("Circles") - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle", "Circle") - .WithMany("Members") - .HasForeignKey("CircleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Member") - .WithMany("Membership") - .HasForeignKey("MemberId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Circle"); - - b.Navigation("Member"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.Relationship.PostalAddress", "PostalAddress") - .WithMany() - .HasForeignKey("AddressId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany("Book") - .HasForeignKey("ApplicationUserId"); - - b.Navigation("PostalAddress"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.HasOne("Yavsc.Models.Haircut.BrusherProfile", null) - .WithMany("Links") - .HasForeignKey("BrusherProfileUserId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", null) - .WithMany("Links") - .HasForeignKey("PayPalPaymentCreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Streaming.LiveFlow", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Parent") - .WithMany("Children") - .HasForeignKey("ParentCode"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings", null) - .WithMany("CoWorking") - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "Performer") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "WorkingFor") - .WithMany() - .HasForeignKey("WorkingForId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Performer"); - - b.Navigation("WorkingFor"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany("Forms") - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Context"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location", "OrganizationAddress") - .WithMany() - .HasForeignKey("OrganizationAddressId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Performer") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("OrganizationAddress"); - - b.Navigation("Performer"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Location", "Location") - .WithMany() - .HasForeignKey("LocationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("Location"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Regularisation"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Does") - .WithMany() - .HasForeignKey("DoesCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "User") - .WithMany("Activity") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Does"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", "Repository") - .WithMany() - .HasForeignKey("GitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Regularisation"); - - b.Navigation("Repository"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.HasOne("Yavsc.Server.Models.IT.Project", "TargetProject") - .WithMany("Configurations") - .HasForeignKey("ProjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TargetProject"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Navigation("AccountBalance") - .IsRequired(); - - b.Navigation("BankInfo"); - - b.Navigation("BlackList"); - - b.Navigation("Book"); - - b.Navigation("Circles"); - - b.Navigation("Connections"); - - b.Navigation("DeviceDeclaration"); - - b.Navigation("Membership"); - - b.Navigation("Posts"); - - b.Navigation("RoomAccess"); - - b.Navigation("Rooms"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Navigation("Bill"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Navigation("Bill"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.Navigation("ACL"); - - b.Navigation("Comments"); - - b.Navigation("Tags"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.Navigation("Children"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Navigation("Events"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.Navigation("Moderation"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Navigation("Links"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Navigation("Prestations"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Navigation("Taints"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Navigation("SoundColor"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Navigation("SoundColor"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Navigation("Links"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Navigation("Members"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Navigation("Children"); - - b.Navigation("Forms"); - - b.Navigation("Services"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Navigation("Activity"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Navigation("CoWorking"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.Navigation("Configurations"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/Yavsc.Server/Migrations/20250613181510_ActivityNulls.cs b/src/Yavsc.Server/Migrations/20250613181510_ActivityNulls.cs deleted file mode 100644 index fa0b59a8..00000000 --- a/src/Yavsc.Server/Migrations/20250613181510_ActivityNulls.cs +++ /dev/null @@ -1,108 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace Yavsc.Migrations -{ - /// - public partial class ActivityNulls : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "UserModified", - table: "Activities", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "UserCreated", - table: "Activities", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "SettingsClassName", - table: "Activities", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "Photo", - table: "Activities", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "ModeratorGroupName", - table: "Activities", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "UserModified", - table: "Activities", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "UserCreated", - table: "Activities", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "SettingsClassName", - table: "Activities", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Photo", - table: "Activities", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ModeratorGroupName", - table: "Activities", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - } - } -} diff --git a/src/Yavsc.Server/Migrations/20250620185047_BrusherProfileSchedulerId.Designer.cs b/src/Yavsc.Server/Migrations/20250620185047_BrusherProfileSchedulerId.Designer.cs deleted file mode 100644 index eb1a3ea6..00000000 --- a/src/Yavsc.Server/Migrations/20250620185047_BrusherProfileSchedulerId.Designer.cs +++ /dev/null @@ -1,3494 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; -using Yavsc.Models; - -#nullable disable - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20250620185047_BrusherProfileSchedulerId")] - partial class BrusherProfileSchedulerId - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "9.0.6") - .HasAnnotation("Relational:MaxIdentifierLength", 63); - - NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasColumnType("text"); - - b.Property("Name") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("NormalizedName") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .IsUnique() - .HasDatabaseName("RoleNameIndex"); - - b.ToTable("AspNetRoles", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ClaimType") - .HasColumnType("text"); - - b.Property("ClaimValue") - .HasColumnType("text"); - - b.Property("RoleId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("RoleId"); - - b.ToTable("AspNetRoleClaims", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ClaimType") - .HasColumnType("text"); - - b.Property("ClaimValue") - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.ToTable("AspNetUserClaims", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => - { - b.Property("LoginProvider") - .HasColumnType("text"); - - b.Property("ProviderKey") - .HasColumnType("text"); - - b.Property("ProviderDisplayName") - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasIndex("UserId"); - - b.ToTable("AspNetUserLogins", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("RoleId") - .HasColumnType("text"); - - b.HasKey("UserId", "RoleId"); - - b.HasIndex("RoleId"); - - b.ToTable("AspNetUserRoles", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("LoginProvider") - .HasColumnType("text"); - - b.Property("Name") - .HasColumnType("text"); - - b.Property("Value") - .HasColumnType("text"); - - b.HasKey("UserId", "LoginProvider", "Name"); - - b.ToTable("AspNetUserTokens", (string)null); - }); - - modelBuilder.Entity("Yavsc.Abstract.Identity.ClientProviderInfo", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("Avatar") - .IsRequired() - .HasColumnType("text"); - - b.Property("BillingAddressId") - .HasColumnType("bigint"); - - b.Property("EMail") - .IsRequired() - .HasColumnType("text"); - - b.Property("Phone") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserName") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("ClientProviderInfo"); - }); - - modelBuilder.Entity("Yavsc.Abstract.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Target") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("body") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("click_action") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("color") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("icon") - .ValueGeneratedOnAdd() - .HasMaxLength(512) - .HasColumnType("character varying(512)") - .HasDefaultValue("exclam"); - - b.Property("sound") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("tag") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("title") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("character varying(1024)"); - - b.HasKey("Id"); - - b.ToTable("Notification"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Reason") - .IsRequired() - .HasColumnType("text"); - - b.Property("TargetId") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("TargetId"); - - b.ToTable("Ban"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.HasIndex("UserId"); - - b.ToTable("BlackListed"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId") - .HasColumnType("bigint"); - - b.Property("BlogPostId") - .HasColumnType("bigint"); - - b.HasKey("CircleId", "BlogPostId"); - - b.HasIndex("BlogPostId"); - - b.ToTable("CircleAuthorizationToBlogPost"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("ContactCredits") - .HasColumnType("bigint"); - - b.Property("Credits") - .HasColumnType("numeric"); - - b.HasKey("UserId"); - - b.ToTable("BankStatus"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("AccessFailedCount") - .HasColumnType("integer"); - - b.Property("AllowMonthlyEmail") - .HasColumnType("boolean"); - - b.Property("Avatar") - .IsRequired() - .ValueGeneratedOnAdd() - .HasMaxLength(512) - .HasColumnType("character varying(512)") - .HasDefaultValue("/images/Users/icon_user.png"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasColumnType("text"); - - b.Property("DedicatedGoogleCalendar") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("DiskQuota") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasDefaultValue(524288000L); - - b.Property("DiskUsage") - .HasColumnType("bigint"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("EmailConfirmed") - .HasColumnType("boolean"); - - b.Property("FullName") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("LockoutEnabled") - .HasColumnType("boolean"); - - b.Property("LockoutEnd") - .HasColumnType("timestamp with time zone"); - - b.Property("MaxFileSize") - .HasColumnType("bigint"); - - b.Property("NormalizedEmail") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("NormalizedUserName") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("PasswordHash") - .HasColumnType("text"); - - b.Property("PhoneNumber") - .HasColumnType("text"); - - b.Property("PhoneNumberConfirmed") - .HasColumnType("boolean"); - - b.Property("PostalAddressId") - .HasColumnType("bigint"); - - b.Property("SecurityStamp") - .HasColumnType("text"); - - b.Property("TwoFactorEnabled") - .HasColumnType("boolean"); - - b.Property("UserName") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.HasKey("Id"); - - b.HasAlternateKey("Email"); - - b.HasIndex("NormalizedEmail") - .HasDatabaseName("EmailIndex"); - - b.HasIndex("NormalizedUserName") - .IsUnique() - .HasDatabaseName("UserNameIndex"); - - b.HasIndex("PostalAddressId"); - - b.ToTable("AspNetUsers", (string)null); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("text"); - - b.Property("AccessTokenLifetime") - .HasColumnType("integer"); - - b.Property("Active") - .HasColumnType("boolean"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("character varying(128)"); - - b.Property("LogoutRedirectUri") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("RedirectUri") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("RefreshTokenLifeTime") - .HasColumnType("integer"); - - b.Property("Secret") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("Type") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("Applications"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.OAuth2Tokens", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("AccessToken") - .IsRequired() - .HasColumnType("text"); - - b.Property("Expiration") - .HasColumnType("timestamp with time zone"); - - b.Property("ExpiresIn") - .IsRequired() - .HasColumnType("text"); - - b.Property("RefreshToken") - .IsRequired() - .HasColumnType("text"); - - b.Property("TokenType") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("OAuth2Tokens"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("character varying(50)"); - - b.Property("ExpiresUtc") - .HasColumnType("timestamp with time zone"); - - b.Property("IssuedUtc") - .HasColumnType("timestamp with time zone"); - - b.Property("ProtectedTicket") - .IsRequired() - .HasColumnType("text"); - - b.Property("Subject") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("character varying(50)"); - - b.HasKey("Id"); - - b.ToTable("RefreshTokens"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Scope", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("character varying(1024)"); - - b.HasKey("Id"); - - b.ToTable("Scopes"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("BalanceId") - .IsRequired() - .HasColumnType("text"); - - b.Property("ExecDate") - .HasColumnType("timestamp with time zone"); - - b.Property("Impact") - .HasColumnType("numeric"); - - b.Property("Reason") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("BalanceId"); - - b.ToTable("BankBook"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AccountNumber") - .IsRequired() - .HasColumnType("text"); - - b.Property("BIC") - .IsRequired() - .HasColumnType("text"); - - b.Property("BankCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("BankedKey") - .HasColumnType("integer"); - - b.Property("IBAN") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.Property("WicketCode") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.ToTable("BankIdentity"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Count") - .HasColumnType("integer"); - - b.Property("Currency") - .IsRequired() - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("EstimateId") - .HasColumnType("bigint"); - - b.Property("EstimateTemplateId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("UnitaryCost") - .HasColumnType("numeric"); - - b.HasKey("Id"); - - b.HasIndex("EstimateId"); - - b.HasIndex("EstimateTemplateId"); - - b.ToTable("CommandLine"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AttachedFilesString") - .IsRequired() - .HasColumnType("text"); - - b.Property("AttachedGraphicsString") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientValidationDate") - .HasColumnType("timestamp with time zone"); - - b.Property("CommandId") - .HasColumnType("bigint"); - - b.Property("CommandType") - .IsRequired() - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("ProviderValidationDate") - .HasColumnType("timestamp with time zone"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ClientId"); - - b.HasIndex("CommandId"); - - b.HasIndex("OwnerId"); - - b.ToTable("Estimates"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("EstimateTemplates"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN") - .HasColumnType("text"); - - b.HasKey("SIREN"); - - b.ToTable("ExceptionsSIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AuthorId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Content") - .HasMaxLength(56224) - .HasColumnType("character varying(56224)"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Photo") - .HasMaxLength(1024) - .HasColumnType("character varying(1024)"); - - b.Property("Title") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("character varying(1024)"); - - b.Property("UserCreated") - .HasColumnType("text"); - - b.Property("UserModified") - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("AuthorId"); - - b.ToTable("BlogSpot"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.Property("PostId") - .HasColumnType("bigint"); - - b.Property("TagId") - .HasColumnType("bigint"); - - b.HasKey("PostId", "TagId"); - - b.HasIndex("TagId"); - - b.ToTable("BlogTag"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AuthorId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Content") - .IsRequired() - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("ParentId") - .HasColumnType("bigint"); - - b.Property("ReceiverId") - .HasColumnType("bigint"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("Visible") - .HasColumnType("boolean"); - - b.HasKey("Id"); - - b.HasIndex("AuthorId"); - - b.HasIndex("ParentId"); - - b.HasIndex("ReceiverId"); - - b.ToTable("Comment"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Property("OwnerId") - .HasColumnType("text"); - - b.HasKey("OwnerId"); - - b.ToTable("Schedule"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("PeriodEnd") - .HasColumnType("timestamp with time zone"); - - b.Property("PeriodStart") - .HasColumnType("timestamp with time zone"); - - b.Property("Reccurence") - .HasColumnType("integer"); - - b.Property("ScheduleOwnerId") - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ScheduleOwnerId"); - - b.HasIndex("PeriodStart", "PeriodEnd"); - - b.ToTable("ScheduledEvent"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.Property("ConnectionId") - .HasColumnType("text"); - - b.Property("ApplicationUserId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Connected") - .HasColumnType("boolean"); - - b.Property("UserAgent") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("ConnectionId"); - - b.HasIndex("ApplicationUserId"); - - b.ToTable("ChatConnection"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.Property("Name") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("LatestJoinPart") - .HasColumnType("timestamp with time zone"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Topic") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Name"); - - b.HasIndex("OwnerId"); - - b.ToTable("ChatRoom"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomAccess", b => - { - b.Property("ChannelName") - .HasColumnType("text"); - - b.Property("UserId") - .HasColumnType("text"); - - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Level") - .HasColumnType("integer"); - - b.HasKey("ChannelName", "UserId"); - - b.HasIndex("UserId"); - - b.ToTable("ChatRoomAccess"); - }); - - modelBuilder.Entity("Yavsc.Models.Cratie.Option", b => - { - b.Property("Code") - .HasColumnType("text"); - - b.Property("CodeScrutin") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Code", "CodeScrutin"); - - b.ToTable("Option"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Blue") - .HasColumnType("smallint"); - - b.Property("Green") - .HasColumnType("smallint"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Red") - .HasColumnType("smallint"); - - b.HasKey("Id"); - - b.ToTable("Color"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("Summary") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("Form"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("ActionDistance") - .HasColumnType("integer"); - - b.Property("CarePrice") - .HasColumnType("numeric"); - - b.Property("FlatFeeDiscount") - .HasColumnType("numeric"); - - b.Property("HalfBalayagePrice") - .HasColumnType("numeric"); - - b.Property("HalfBrushingPrice") - .HasColumnType("numeric"); - - b.Property("HalfColorPrice") - .HasColumnType("numeric"); - - b.Property("HalfDefrisPrice") - .HasColumnType("numeric"); - - b.Property("HalfFoldingPrice") - .HasColumnType("numeric"); - - b.Property("HalfMechPrice") - .HasColumnType("numeric"); - - b.Property("HalfMultiColorPrice") - .HasColumnType("numeric"); - - b.Property("HalfPermanentPrice") - .HasColumnType("numeric"); - - b.Property("KidCutPrice") - .HasColumnType("numeric"); - - b.Property("LongBalayagePrice") - .HasColumnType("numeric"); - - b.Property("LongBrushingPrice") - .HasColumnType("numeric"); - - b.Property("LongColorPrice") - .HasColumnType("numeric"); - - b.Property("LongDefrisPrice") - .HasColumnType("numeric"); - - b.Property("LongFoldingPrice") - .HasColumnType("numeric"); - - b.Property("LongMechPrice") - .HasColumnType("numeric"); - - b.Property("LongMultiColorPrice") - .HasColumnType("numeric"); - - b.Property("LongPermanentPrice") - .HasColumnType("numeric"); - - b.Property("ManBrushPrice") - .HasColumnType("numeric"); - - b.Property("ManCutPrice") - .HasColumnType("numeric"); - - b.Property("ScheduleOwnerId") - .HasColumnType("text"); - - b.Property("ShampooPrice") - .HasColumnType("numeric"); - - b.Property("ShortBalayagePrice") - .HasColumnType("numeric"); - - b.Property("ShortBrushingPrice") - .HasColumnType("numeric"); - - b.Property("ShortColorPrice") - .HasColumnType("numeric"); - - b.Property("ShortDefrisPrice") - .HasColumnType("numeric"); - - b.Property("ShortFoldingPrice") - .HasColumnType("numeric"); - - b.Property("ShortMechPrice") - .HasColumnType("numeric"); - - b.Property("ShortMultiColorPrice") - .HasColumnType("numeric"); - - b.Property("ShortPermanentPrice") - .HasColumnType("numeric"); - - b.Property("WomenHalfCutPrice") - .HasColumnType("numeric"); - - b.Property("WomenLongCutPrice") - .HasColumnType("numeric"); - - b.Property("WomenShortCutPrice") - .HasColumnType("numeric"); - - b.HasKey("UserId"); - - b.HasIndex("ScheduleOwnerId"); - - b.ToTable("BrusherProfile"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Accepted") - .HasColumnType("boolean"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("AdditionalInfo") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Decided") - .HasColumnType("boolean"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("EventDate") - .HasColumnType("timestamp with time zone"); - - b.Property("LocationId") - .HasColumnType("bigint"); - - b.Property("PaymentId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PrestationId") - .HasColumnType("bigint"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("SelectedProfileUserId") - .HasColumnType("text"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("LocationId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.HasIndex("PrestationId"); - - b.HasIndex("SelectedProfileUserId"); - - b.ToTable("HairCutQueries"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Accepted") - .HasColumnType("boolean"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Decided") - .HasColumnType("boolean"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("EventDate") - .HasColumnType("timestamp with time zone"); - - b.Property("LocationId") - .HasColumnType("bigint"); - - b.Property("PaymentId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("LocationId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.ToTable("HairMultiCutQueries"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Cares") - .HasColumnType("boolean"); - - b.Property("Cut") - .HasColumnType("boolean"); - - b.Property("Dressing") - .HasColumnType("integer"); - - b.Property("Gender") - .HasColumnType("integer"); - - b.Property("Length") - .HasColumnType("integer"); - - b.Property("Shampoo") - .HasColumnType("boolean"); - - b.Property("Tech") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("HairPrestation"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("PrestationId") - .HasColumnType("bigint"); - - b.Property("QueryId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("PrestationId"); - - b.HasIndex("QueryId"); - - b.ToTable("HairPrestationCollectionItem"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Brand") - .IsRequired() - .HasColumnType("text"); - - b.Property("ColorId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("ColorId"); - - b.ToTable("HairTaint"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.Property("TaintId") - .HasColumnType("bigint"); - - b.Property("PrestationId") - .HasColumnType("bigint"); - - b.HasKey("TaintId", "PrestationId"); - - b.HasIndex("PrestationId"); - - b.ToTable("HairTaintInstance"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Evolution.Feature", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("ShortName") - .IsRequired() - .HasColumnType("text"); - - b.Property("Status") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("Feature"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("FeatureId") - .HasColumnType("bigint"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("FeatureId"); - - b.ToTable("Bug"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.DeviceDeclaration", b => - { - b.Property("DeviceId") - .HasColumnType("text"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasColumnType("timestamp with time zone") - .HasDefaultValueSql("LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("LatestActivityUpdate") - .HasColumnType("timestamp with time zone"); - - b.Property("Model") - .IsRequired() - .HasColumnType("text"); - - b.Property("Platform") - .IsRequired() - .HasColumnType("text"); - - b.Property("Version") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("DeviceId"); - - b.HasIndex("DeviceOwnerId"); - - b.ToTable("DeviceDeclaration"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Depth") - .HasColumnType("numeric"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("Height") - .HasColumnType("numeric"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Price") - .HasColumnType("numeric"); - - b.Property("Public") - .HasColumnType("boolean"); - - b.Property("Weight") - .HasColumnType("numeric"); - - b.Property("Width") - .HasColumnType("numeric"); - - b.HasKey("Id"); - - b.ToTable("Products"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ContextId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Public") - .HasColumnType("boolean"); - - b.HasKey("Id"); - - b.HasIndex("ContextId"); - - b.ToTable("Services"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("For") - .HasColumnType("smallint"); - - b.Property("Message") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Sender") - .IsRequired() - .HasColumnType("text"); - - b.Property("Topic") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.ToTable("Announce"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DismissClicked", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("NotificationId") - .HasColumnType("bigint"); - - b.HasKey("UserId", "NotificationId"); - - b.HasIndex("NotificationId"); - - b.ToTable("DismissClicked"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("character varying(255)"); - - b.HasKey("Id"); - - b.ToTable("Instrument"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.InstrumentRating", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("InstrumentId") - .HasColumnType("bigint"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.HasAlternateKey("InstrumentId", "OwnerId"); - - b.HasIndex("OwnerId"); - - b.ToTable("InstrumentRating"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId") - .HasColumnType("text"); - - b.Property("DjSettingsUserId") - .HasColumnType("text"); - - b.Property("GeneralSettingsUserId") - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.Property("TendencyId") - .HasColumnType("bigint"); - - b.HasKey("OwnerProfileId"); - - b.HasIndex("DjSettingsUserId"); - - b.HasIndex("GeneralSettingsUserId"); - - b.ToTable("MusicalPreference"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("character varying(255)"); - - b.HasKey("Id"); - - b.ToTable("MusicalTendency"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("SoundCloudId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("DjSettings"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("GeneralSettings"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId") - .HasColumnType("bigint"); - - b.Property("UserId") - .HasColumnType("text"); - - b.HasKey("InstrumentId", "UserId"); - - b.HasIndex("UserId"); - - b.ToTable("Instrumentation"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Property("CreationToken") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("ExecutorId") - .IsRequired() - .HasColumnType("text"); - - b.Property("OrderReference") - .IsRequired() - .HasColumnType("text"); - - b.Property("PaypalPayerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("State") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("CreationToken"); - - b.HasIndex("ExecutorId"); - - b.ToTable("PayPalPayment"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ApplicationUserId") - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Public") - .HasColumnType("boolean"); - - b.HasKey("Id"); - - b.HasIndex("ApplicationUserId"); - - b.ToTable("Circle"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId") - .HasColumnType("text"); - - b.Property("CircleId") - .HasColumnType("bigint"); - - b.HasKey("MemberId", "CircleId"); - - b.HasIndex("CircleId"); - - b.ToTable("CircleMembers"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId") - .HasColumnType("text"); - - b.Property("UserId") - .HasColumnType("text"); - - b.Property("AddressId") - .HasColumnType("bigint"); - - b.Property("ApplicationUserId") - .HasColumnType("text"); - - b.Property("EMail") - .IsRequired() - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("OwnerId", "UserId"); - - b.HasIndex("AddressId"); - - b.HasIndex("ApplicationUserId"); - - b.ToTable("Contact"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.Property("HRef") - .HasColumnType("text"); - - b.Property("Method") - .HasColumnType("text"); - - b.Property("BrusherProfileUserId") - .HasColumnType("text"); - - b.Property("ContentType") - .IsRequired() - .HasColumnType("text"); - - b.Property("PayPalPaymentCreationToken") - .HasColumnType("text"); - - b.Property("Rel") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("HRef", "Method"); - - b.HasIndex("BrusherProfileUserId"); - - b.HasIndex("PayPalPaymentCreationToken"); - - b.ToTable("HyperLink"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Address") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("Latitude") - .HasColumnType("double precision"); - - b.Property("Longitude") - .HasColumnType("double precision"); - - b.HasKey("Id"); - - b.ToTable("Locations"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostalAddress", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("City") - .IsRequired() - .HasColumnType("text"); - - b.Property("Country") - .IsRequired() - .HasColumnType("text"); - - b.Property("PostalCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("Province") - .IsRequired() - .HasColumnType("text"); - - b.Property("State") - .IsRequired() - .HasColumnType("text"); - - b.Property("Street1") - .IsRequired() - .HasColumnType("text"); - - b.Property("Street2") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("PostalAddress"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("Tags"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("SiteSkills"); - }); - - modelBuilder.Entity("Yavsc.Models.Streaming.LiveFlow", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("DifferedFileName") - .IsRequired() - .HasColumnType("text"); - - b.Property("MediaType") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Pitch") - .IsRequired() - .HasColumnType("text"); - - b.Property("SequenceNumber") - .HasColumnType("integer"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.ToTable("LiveFlow"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("Hidden") - .HasColumnType("boolean"); - - b.Property("ModeratorGroupName") - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("ParentCode") - .HasColumnType("text"); - - b.Property("Photo") - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.Property("SettingsClassName") - .HasColumnType("text"); - - b.Property("UserCreated") - .HasColumnType("text"); - - b.Property("UserModified") - .HasColumnType("text"); - - b.HasKey("Code"); - - b.HasIndex("ParentCode"); - - b.ToTable("Activities"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("FormationSettingsUserId") - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("WorkingForId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("FormationSettingsUserId"); - - b.HasIndex("PerformerId"); - - b.HasIndex("WorkingForId"); - - b.ToTable("CoWorking"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ActionName") - .IsRequired() - .HasColumnType("text"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.ToTable("CommandForm"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId") - .HasColumnType("text"); - - b.Property("AcceptNotifications") - .HasColumnType("boolean"); - - b.Property("AcceptPublicContact") - .HasColumnType("boolean"); - - b.Property("Active") - .HasColumnType("boolean"); - - b.Property("MaxDailyCost") - .HasColumnType("integer"); - - b.Property("MinDailyCost") - .HasColumnType("integer"); - - b.Property("OrganizationAddressId") - .HasColumnType("bigint"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.Property("SIREN") - .IsRequired() - .HasColumnType("text"); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients") - .HasColumnType("boolean"); - - b.Property("WebSite") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("PerformerId"); - - b.HasIndex("OrganizationAddressId"); - - b.ToTable("Performers"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("DisplayName") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("FormationSettings"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Accepted") - .HasColumnType("boolean"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Decided") - .HasColumnType("boolean"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("EventDate") - .HasColumnType("timestamp with time zone"); - - b.Property("LocationId") - .HasColumnType("bigint"); - - b.Property("LocationType") - .HasColumnType("integer"); - - b.Property("PaymentId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("Reason") - .IsRequired() - .HasColumnType("text"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("LocationId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.ToTable("RdvQueries"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode") - .HasColumnType("text"); - - b.Property("UserId") - .HasColumnType("text"); - - b.Property("Weight") - .HasColumnType("integer"); - - b.HasKey("DoesCode", "UserId"); - - b.HasIndex("UserId"); - - b.ToTable("UserActivities"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Calendar.Period", b => - { - b.Property("Start") - .HasColumnType("timestamp with time zone"); - - b.Property("End") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Start", "End"); - - b.ToTable("Period"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.EMailing.MailingTemplate", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("Body") - .IsRequired() - .HasMaxLength(65536) - .HasColumnType("character varying(65536)"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("ReplyToAddress") - .IsRequired() - .HasColumnType("text"); - - b.Property("ToSend") - .HasColumnType("integer"); - - b.Property("Topic") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("MailingTemplate"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Accepted") - .HasColumnType("boolean"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Decided") - .HasColumnType("boolean"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("GitId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PaymentId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.Property("Version") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("GitId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.ToTable("Project"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("ProjectId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("ProjectId"); - - b.ToTable("ProjectBuildConfiguration"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Branch") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Path") - .IsRequired() - .HasColumnType("text"); - - b.Property("Url") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.ToTable("GitRepositoryReference"); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null) - .WithMany() - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null) - .WithMany() - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "TargetUser") - .WithMany() - .HasForeignKey("TargetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TargetUser"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany("BlackList") - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost", "Target") - .WithMany("ACL") - .HasForeignKey("BlogPostId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Circle", "Allowed") - .WithMany() - .HasForeignKey("CircleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Allowed"); - - b.Navigation("Target"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithOne("AccountBalance") - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Relationship.Location", "PostalAddress") - .WithMany() - .HasForeignKey("PostalAddressId"); - - b.Navigation("PostalAddress"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance", "Balance") - .WithMany() - .HasForeignKey("BalanceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Balance"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany("BankInfo") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate", null) - .WithMany("Bill") - .HasForeignKey("EstimateId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate", null) - .WithMany("Bill") - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery", "Query") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Owner"); - - b.Navigation("Query"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Author") - .WithMany("Posts") - .HasForeignKey("AuthorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Author"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost", "Post") - .WithMany("Tags") - .HasForeignKey("PostId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Tag", "Tag") - .WithMany() - .HasForeignKey("TagId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Post"); - - b.Navigation("Tag"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Author") - .WithMany() - .HasForeignKey("AuthorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Blog.Comment", "Parent") - .WithMany("Children") - .HasForeignKey("ParentId"); - - b.HasOne("Yavsc.Models.Blog.BlogPost", "Post") - .WithMany("Comments") - .HasForeignKey("ReceiverId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Author"); - - b.Navigation("Parent"); - - b.Navigation("Post"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule", null) - .WithMany("Events") - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Server.Models.Calendar.Period", "Period") - .WithMany() - .HasForeignKey("PeriodStart", "PeriodEnd") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Period"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany("Connections") - .HasForeignKey("ApplicationUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany("Rooms") - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomAccess", b => - { - b.HasOne("Yavsc.Models.Chat.ChatRoom", "Room") - .WithMany("Moderation") - .HasForeignKey("ChannelName") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany("RoomAccess") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Room"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule", "Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "BaseProfile") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("BaseProfile"); - - b.Navigation("Schedule"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Location", "Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation", "Prestation") - .WithMany() - .HasForeignKey("PrestationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.BrusherProfile", "SelectedProfile") - .WithMany() - .HasForeignKey("SelectedProfileUserId"); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("Location"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Prestation"); - - b.Navigation("Regularisation"); - - b.Navigation("SelectedProfile"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Location", "Location") - .WithMany() - .HasForeignKey("LocationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("Location"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Regularisation"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation", "Prestation") - .WithMany() - .HasForeignKey("PrestationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery", "Query") - .WithMany("Prestations") - .HasForeignKey("QueryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Prestation"); - - b.Navigation("Query"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color", "Color") - .WithMany() - .HasForeignKey("ColorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Color"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation", "Prestation") - .WithMany("Taints") - .HasForeignKey("PrestationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.HairTaint", "Taint") - .WithMany() - .HasForeignKey("TaintId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Prestation"); - - b.Navigation("Taint"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.HasOne("Yavsc.Models.IT.Evolution.Feature", "False") - .WithMany() - .HasForeignKey("FeatureId"); - - b.Navigation("False"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.DeviceDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "DeviceOwner") - .WithMany("DeviceDeclaration") - .HasForeignKey("DeviceOwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("DeviceOwner"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany("Services") - .HasForeignKey("ContextId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Context"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DismissClicked", b => - { - b.HasOne("Yavsc.Abstract.Models.Messaging.Notification", "Notified") - .WithMany() - .HasForeignKey("NotificationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Notified"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.InstrumentRating", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument", "Instrument") - .WithMany() - .HasForeignKey("InstrumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "Profile") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Instrument"); - - b.Navigation("Profile"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings", null) - .WithMany("SoundColor") - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings", null) - .WithMany("SoundColor") - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument", "Tool") - .WithMany() - .HasForeignKey("InstrumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tool"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Executor") - .WithMany() - .HasForeignKey("ExecutorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Executor"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany("Circles") - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle", "Circle") - .WithMany("Members") - .HasForeignKey("CircleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Member") - .WithMany("Membership") - .HasForeignKey("MemberId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Circle"); - - b.Navigation("Member"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.Relationship.PostalAddress", "PostalAddress") - .WithMany() - .HasForeignKey("AddressId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany("Book") - .HasForeignKey("ApplicationUserId"); - - b.Navigation("PostalAddress"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.HasOne("Yavsc.Models.Haircut.BrusherProfile", null) - .WithMany("Links") - .HasForeignKey("BrusherProfileUserId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", null) - .WithMany("Links") - .HasForeignKey("PayPalPaymentCreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Streaming.LiveFlow", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Parent") - .WithMany("Children") - .HasForeignKey("ParentCode"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings", null) - .WithMany("CoWorking") - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "Performer") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "WorkingFor") - .WithMany() - .HasForeignKey("WorkingForId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Performer"); - - b.Navigation("WorkingFor"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany("Forms") - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Context"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location", "OrganizationAddress") - .WithMany() - .HasForeignKey("OrganizationAddressId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Performer") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("OrganizationAddress"); - - b.Navigation("Performer"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Location", "Location") - .WithMany() - .HasForeignKey("LocationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("Location"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Regularisation"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Does") - .WithMany() - .HasForeignKey("DoesCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "User") - .WithMany("Activity") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Does"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", "Repository") - .WithMany() - .HasForeignKey("GitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Regularisation"); - - b.Navigation("Repository"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.HasOne("Yavsc.Server.Models.IT.Project", "TargetProject") - .WithMany("Configurations") - .HasForeignKey("ProjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TargetProject"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Navigation("AccountBalance") - .IsRequired(); - - b.Navigation("BankInfo"); - - b.Navigation("BlackList"); - - b.Navigation("Book"); - - b.Navigation("Circles"); - - b.Navigation("Connections"); - - b.Navigation("DeviceDeclaration"); - - b.Navigation("Membership"); - - b.Navigation("Posts"); - - b.Navigation("RoomAccess"); - - b.Navigation("Rooms"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Navigation("Bill"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Navigation("Bill"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.Navigation("ACL"); - - b.Navigation("Comments"); - - b.Navigation("Tags"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.Navigation("Children"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Navigation("Events"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.Navigation("Moderation"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Navigation("Links"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Navigation("Prestations"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Navigation("Taints"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Navigation("SoundColor"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Navigation("SoundColor"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Navigation("Links"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Navigation("Members"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Navigation("Children"); - - b.Navigation("Forms"); - - b.Navigation("Services"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Navigation("Activity"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Navigation("CoWorking"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.Navigation("Configurations"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/Yavsc.Server/Migrations/20250620185047_BrusherProfileSchedulerId.cs b/src/Yavsc.Server/Migrations/20250620185047_BrusherProfileSchedulerId.cs deleted file mode 100644 index 8905a0a0..00000000 --- a/src/Yavsc.Server/Migrations/20250620185047_BrusherProfileSchedulerId.cs +++ /dev/null @@ -1,59 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace Yavsc.Migrations -{ - /// - public partial class BrusherProfileSchedulerId : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey( - name: "FK_BrusherProfile_Schedule_ScheduleOwnerId", - table: "BrusherProfile"); - - migrationBuilder.AlterColumn( - name: "ScheduleOwnerId", - table: "BrusherProfile", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_Schedule_ScheduleOwnerId", - table: "BrusherProfile", - column: "ScheduleOwnerId", - principalTable: "Schedule", - principalColumn: "OwnerId"); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey( - name: "FK_BrusherProfile_Schedule_ScheduleOwnerId", - table: "BrusherProfile"); - - migrationBuilder.AlterColumn( - name: "ScheduleOwnerId", - table: "BrusherProfile", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AddForeignKey( - name: "FK_BrusherProfile_Schedule_ScheduleOwnerId", - table: "BrusherProfile", - column: "ScheduleOwnerId", - principalTable: "Schedule", - principalColumn: "OwnerId", - onDelete: ReferentialAction.Cascade); - } - } -} diff --git a/src/Yavsc.Server/Migrations/20250628150549_blogPostPub.Designer.cs b/src/Yavsc.Server/Migrations/20250628150549_blogPostPub.Designer.cs deleted file mode 100644 index 22868480..00000000 --- a/src/Yavsc.Server/Migrations/20250628150549_blogPostPub.Designer.cs +++ /dev/null @@ -1,3515 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; -using Yavsc.Models; - -#nullable disable - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20250628150549_blogPostPub")] - partial class blogPostPub - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "9.0.6") - .HasAnnotation("Relational:MaxIdentifierLength", 63); - - NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasColumnType("text"); - - b.Property("Name") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("NormalizedName") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .IsUnique() - .HasDatabaseName("RoleNameIndex"); - - b.ToTable("AspNetRoles", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ClaimType") - .HasColumnType("text"); - - b.Property("ClaimValue") - .HasColumnType("text"); - - b.Property("RoleId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("RoleId"); - - b.ToTable("AspNetRoleClaims", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ClaimType") - .HasColumnType("text"); - - b.Property("ClaimValue") - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.ToTable("AspNetUserClaims", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => - { - b.Property("LoginProvider") - .HasColumnType("text"); - - b.Property("ProviderKey") - .HasColumnType("text"); - - b.Property("ProviderDisplayName") - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasIndex("UserId"); - - b.ToTable("AspNetUserLogins", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("RoleId") - .HasColumnType("text"); - - b.HasKey("UserId", "RoleId"); - - b.HasIndex("RoleId"); - - b.ToTable("AspNetUserRoles", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("LoginProvider") - .HasColumnType("text"); - - b.Property("Name") - .HasColumnType("text"); - - b.Property("Value") - .HasColumnType("text"); - - b.HasKey("UserId", "LoginProvider", "Name"); - - b.ToTable("AspNetUserTokens", (string)null); - }); - - modelBuilder.Entity("Yavsc.Abstract.Identity.ClientProviderInfo", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("Avatar") - .IsRequired() - .HasColumnType("text"); - - b.Property("BillingAddressId") - .HasColumnType("bigint"); - - b.Property("EMail") - .IsRequired() - .HasColumnType("text"); - - b.Property("Phone") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserName") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("ClientProviderInfo"); - }); - - modelBuilder.Entity("Yavsc.Abstract.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Target") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("body") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("click_action") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("color") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("icon") - .ValueGeneratedOnAdd() - .HasMaxLength(512) - .HasColumnType("character varying(512)") - .HasDefaultValue("exclam"); - - b.Property("sound") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("tag") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("title") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("character varying(1024)"); - - b.HasKey("Id"); - - b.ToTable("Notification"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Reason") - .IsRequired() - .HasColumnType("text"); - - b.Property("TargetId") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("TargetId"); - - b.ToTable("Ban"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.HasIndex("UserId"); - - b.ToTable("BlackListed"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId") - .HasColumnType("bigint"); - - b.Property("BlogPostId") - .HasColumnType("bigint"); - - b.HasKey("CircleId", "BlogPostId"); - - b.HasIndex("BlogPostId"); - - b.ToTable("CircleAuthorizationToBlogPost"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("ContactCredits") - .HasColumnType("bigint"); - - b.Property("Credits") - .HasColumnType("numeric"); - - b.HasKey("UserId"); - - b.ToTable("BankStatus"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("AccessFailedCount") - .HasColumnType("integer"); - - b.Property("AllowMonthlyEmail") - .HasColumnType("boolean"); - - b.Property("Avatar") - .IsRequired() - .ValueGeneratedOnAdd() - .HasMaxLength(512) - .HasColumnType("character varying(512)") - .HasDefaultValue("/images/Users/icon_user.png"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasColumnType("text"); - - b.Property("DedicatedGoogleCalendar") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("DiskQuota") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasDefaultValue(524288000L); - - b.Property("DiskUsage") - .HasColumnType("bigint"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("EmailConfirmed") - .HasColumnType("boolean"); - - b.Property("FullName") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("LockoutEnabled") - .HasColumnType("boolean"); - - b.Property("LockoutEnd") - .HasColumnType("timestamp with time zone"); - - b.Property("MaxFileSize") - .HasColumnType("bigint"); - - b.Property("NormalizedEmail") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("NormalizedUserName") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("PasswordHash") - .HasColumnType("text"); - - b.Property("PhoneNumber") - .HasColumnType("text"); - - b.Property("PhoneNumberConfirmed") - .HasColumnType("boolean"); - - b.Property("PostalAddressId") - .HasColumnType("bigint"); - - b.Property("SecurityStamp") - .HasColumnType("text"); - - b.Property("TwoFactorEnabled") - .HasColumnType("boolean"); - - b.Property("UserName") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.HasKey("Id"); - - b.HasAlternateKey("Email"); - - b.HasIndex("NormalizedEmail") - .HasDatabaseName("EmailIndex"); - - b.HasIndex("NormalizedUserName") - .IsUnique() - .HasDatabaseName("UserNameIndex"); - - b.HasIndex("PostalAddressId"); - - b.ToTable("AspNetUsers", (string)null); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("text"); - - b.Property("AccessTokenLifetime") - .HasColumnType("integer"); - - b.Property("Active") - .HasColumnType("boolean"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("character varying(128)"); - - b.Property("LogoutRedirectUri") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("RedirectUri") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("RefreshTokenLifeTime") - .HasColumnType("integer"); - - b.Property("Secret") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("Type") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("Applications"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.OAuth2Tokens", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("AccessToken") - .IsRequired() - .HasColumnType("text"); - - b.Property("Expiration") - .HasColumnType("timestamp with time zone"); - - b.Property("ExpiresIn") - .IsRequired() - .HasColumnType("text"); - - b.Property("RefreshToken") - .IsRequired() - .HasColumnType("text"); - - b.Property("TokenType") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("OAuth2Tokens"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("character varying(50)"); - - b.Property("ExpiresUtc") - .HasColumnType("timestamp with time zone"); - - b.Property("IssuedUtc") - .HasColumnType("timestamp with time zone"); - - b.Property("ProtectedTicket") - .IsRequired() - .HasColumnType("text"); - - b.Property("Subject") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("character varying(50)"); - - b.HasKey("Id"); - - b.ToTable("RefreshTokens"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Scope", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("character varying(1024)"); - - b.HasKey("Id"); - - b.ToTable("Scopes"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("BalanceId") - .IsRequired() - .HasColumnType("text"); - - b.Property("ExecDate") - .HasColumnType("timestamp with time zone"); - - b.Property("Impact") - .HasColumnType("numeric"); - - b.Property("Reason") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("BalanceId"); - - b.ToTable("BankBook"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AccountNumber") - .IsRequired() - .HasColumnType("text"); - - b.Property("BIC") - .IsRequired() - .HasColumnType("text"); - - b.Property("BankCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("BankedKey") - .HasColumnType("integer"); - - b.Property("IBAN") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.Property("WicketCode") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.ToTable("BankIdentity"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Count") - .HasColumnType("integer"); - - b.Property("Currency") - .IsRequired() - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("EstimateId") - .HasColumnType("bigint"); - - b.Property("EstimateTemplateId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("UnitaryCost") - .HasColumnType("numeric"); - - b.HasKey("Id"); - - b.HasIndex("EstimateId"); - - b.HasIndex("EstimateTemplateId"); - - b.ToTable("CommandLine"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AttachedFilesString") - .IsRequired() - .HasColumnType("text"); - - b.Property("AttachedGraphicsString") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientValidationDate") - .HasColumnType("timestamp with time zone"); - - b.Property("CommandId") - .HasColumnType("bigint"); - - b.Property("CommandType") - .IsRequired() - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("ProviderValidationDate") - .HasColumnType("timestamp with time zone"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ClientId"); - - b.HasIndex("CommandId"); - - b.HasIndex("OwnerId"); - - b.ToTable("Estimates"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("EstimateTemplates"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN") - .HasColumnType("text"); - - b.HasKey("SIREN"); - - b.ToTable("ExceptionsSIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AuthorId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Content") - .HasMaxLength(56224) - .HasColumnType("character varying(56224)"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Photo") - .HasMaxLength(1024) - .HasColumnType("character varying(1024)"); - - b.Property("Title") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("character varying(1024)"); - - b.Property("UserCreated") - .HasColumnType("text"); - - b.Property("UserModified") - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("AuthorId"); - - b.ToTable("BlogSpot"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.Property("PostId") - .HasColumnType("bigint"); - - b.Property("TagId") - .HasColumnType("bigint"); - - b.HasKey("PostId", "TagId"); - - b.HasIndex("TagId"); - - b.ToTable("BlogTag"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AuthorId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Content") - .IsRequired() - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("ParentId") - .HasColumnType("bigint"); - - b.Property("ReceiverId") - .HasColumnType("bigint"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("Visible") - .HasColumnType("boolean"); - - b.HasKey("Id"); - - b.HasIndex("AuthorId"); - - b.HasIndex("ParentId"); - - b.HasIndex("ReceiverId"); - - b.ToTable("Comment"); - }); - - modelBuilder.Entity("Yavsc.Models.BlogspotPublication", b => - { - b.Property("BlogpostId") - .HasColumnType("bigint"); - - b.HasKey("BlogpostId"); - - b.ToTable("blogspotPublications"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Property("OwnerId") - .HasColumnType("text"); - - b.HasKey("OwnerId"); - - b.ToTable("Schedule"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("PeriodEnd") - .HasColumnType("timestamp with time zone"); - - b.Property("PeriodStart") - .HasColumnType("timestamp with time zone"); - - b.Property("Reccurence") - .HasColumnType("integer"); - - b.Property("ScheduleOwnerId") - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ScheduleOwnerId"); - - b.HasIndex("PeriodStart", "PeriodEnd"); - - b.ToTable("ScheduledEvent"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.Property("ConnectionId") - .HasColumnType("text"); - - b.Property("ApplicationUserId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Connected") - .HasColumnType("boolean"); - - b.Property("UserAgent") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("ConnectionId"); - - b.HasIndex("ApplicationUserId"); - - b.ToTable("ChatConnection"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.Property("Name") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("LatestJoinPart") - .HasColumnType("timestamp with time zone"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Topic") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Name"); - - b.HasIndex("OwnerId"); - - b.ToTable("ChatRoom"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomAccess", b => - { - b.Property("ChannelName") - .HasColumnType("text"); - - b.Property("UserId") - .HasColumnType("text"); - - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Level") - .HasColumnType("integer"); - - b.HasKey("ChannelName", "UserId"); - - b.HasIndex("UserId"); - - b.ToTable("ChatRoomAccess"); - }); - - modelBuilder.Entity("Yavsc.Models.Cratie.Option", b => - { - b.Property("Code") - .HasColumnType("text"); - - b.Property("CodeScrutin") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Code", "CodeScrutin"); - - b.ToTable("Option"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Blue") - .HasColumnType("smallint"); - - b.Property("Green") - .HasColumnType("smallint"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Red") - .HasColumnType("smallint"); - - b.HasKey("Id"); - - b.ToTable("Color"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("Summary") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("Form"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("ActionDistance") - .HasColumnType("integer"); - - b.Property("CarePrice") - .HasColumnType("numeric"); - - b.Property("FlatFeeDiscount") - .HasColumnType("numeric"); - - b.Property("HalfBalayagePrice") - .HasColumnType("numeric"); - - b.Property("HalfBrushingPrice") - .HasColumnType("numeric"); - - b.Property("HalfColorPrice") - .HasColumnType("numeric"); - - b.Property("HalfDefrisPrice") - .HasColumnType("numeric"); - - b.Property("HalfFoldingPrice") - .HasColumnType("numeric"); - - b.Property("HalfMechPrice") - .HasColumnType("numeric"); - - b.Property("HalfMultiColorPrice") - .HasColumnType("numeric"); - - b.Property("HalfPermanentPrice") - .HasColumnType("numeric"); - - b.Property("KidCutPrice") - .HasColumnType("numeric"); - - b.Property("LongBalayagePrice") - .HasColumnType("numeric"); - - b.Property("LongBrushingPrice") - .HasColumnType("numeric"); - - b.Property("LongColorPrice") - .HasColumnType("numeric"); - - b.Property("LongDefrisPrice") - .HasColumnType("numeric"); - - b.Property("LongFoldingPrice") - .HasColumnType("numeric"); - - b.Property("LongMechPrice") - .HasColumnType("numeric"); - - b.Property("LongMultiColorPrice") - .HasColumnType("numeric"); - - b.Property("LongPermanentPrice") - .HasColumnType("numeric"); - - b.Property("ManBrushPrice") - .HasColumnType("numeric"); - - b.Property("ManCutPrice") - .HasColumnType("numeric"); - - b.Property("ScheduleOwnerId") - .HasColumnType("text"); - - b.Property("ShampooPrice") - .HasColumnType("numeric"); - - b.Property("ShortBalayagePrice") - .HasColumnType("numeric"); - - b.Property("ShortBrushingPrice") - .HasColumnType("numeric"); - - b.Property("ShortColorPrice") - .HasColumnType("numeric"); - - b.Property("ShortDefrisPrice") - .HasColumnType("numeric"); - - b.Property("ShortFoldingPrice") - .HasColumnType("numeric"); - - b.Property("ShortMechPrice") - .HasColumnType("numeric"); - - b.Property("ShortMultiColorPrice") - .HasColumnType("numeric"); - - b.Property("ShortPermanentPrice") - .HasColumnType("numeric"); - - b.Property("WomenHalfCutPrice") - .HasColumnType("numeric"); - - b.Property("WomenLongCutPrice") - .HasColumnType("numeric"); - - b.Property("WomenShortCutPrice") - .HasColumnType("numeric"); - - b.HasKey("UserId"); - - b.HasIndex("ScheduleOwnerId"); - - b.ToTable("BrusherProfile"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Accepted") - .HasColumnType("boolean"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("AdditionalInfo") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Decided") - .HasColumnType("boolean"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("EventDate") - .HasColumnType("timestamp with time zone"); - - b.Property("LocationId") - .HasColumnType("bigint"); - - b.Property("PaymentId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PrestationId") - .HasColumnType("bigint"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("SelectedProfileUserId") - .HasColumnType("text"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("LocationId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.HasIndex("PrestationId"); - - b.HasIndex("SelectedProfileUserId"); - - b.ToTable("HairCutQueries"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Accepted") - .HasColumnType("boolean"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Decided") - .HasColumnType("boolean"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("EventDate") - .HasColumnType("timestamp with time zone"); - - b.Property("LocationId") - .HasColumnType("bigint"); - - b.Property("PaymentId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("LocationId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.ToTable("HairMultiCutQueries"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Cares") - .HasColumnType("boolean"); - - b.Property("Cut") - .HasColumnType("boolean"); - - b.Property("Dressing") - .HasColumnType("integer"); - - b.Property("Gender") - .HasColumnType("integer"); - - b.Property("Length") - .HasColumnType("integer"); - - b.Property("Shampoo") - .HasColumnType("boolean"); - - b.Property("Tech") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("HairPrestation"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("PrestationId") - .HasColumnType("bigint"); - - b.Property("QueryId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("PrestationId"); - - b.HasIndex("QueryId"); - - b.ToTable("HairPrestationCollectionItem"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Brand") - .IsRequired() - .HasColumnType("text"); - - b.Property("ColorId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("ColorId"); - - b.ToTable("HairTaint"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.Property("TaintId") - .HasColumnType("bigint"); - - b.Property("PrestationId") - .HasColumnType("bigint"); - - b.HasKey("TaintId", "PrestationId"); - - b.HasIndex("PrestationId"); - - b.ToTable("HairTaintInstance"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Evolution.Feature", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("ShortName") - .IsRequired() - .HasColumnType("text"); - - b.Property("Status") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("Feature"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("FeatureId") - .HasColumnType("bigint"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("FeatureId"); - - b.ToTable("Bug"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.DeviceDeclaration", b => - { - b.Property("DeviceId") - .HasColumnType("text"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasColumnType("timestamp with time zone") - .HasDefaultValueSql("LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("LatestActivityUpdate") - .HasColumnType("timestamp with time zone"); - - b.Property("Model") - .IsRequired() - .HasColumnType("text"); - - b.Property("Platform") - .IsRequired() - .HasColumnType("text"); - - b.Property("Version") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("DeviceId"); - - b.HasIndex("DeviceOwnerId"); - - b.ToTable("DeviceDeclaration"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Depth") - .HasColumnType("numeric"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("Height") - .HasColumnType("numeric"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Price") - .HasColumnType("numeric"); - - b.Property("Public") - .HasColumnType("boolean"); - - b.Property("Weight") - .HasColumnType("numeric"); - - b.Property("Width") - .HasColumnType("numeric"); - - b.HasKey("Id"); - - b.ToTable("Products"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ContextId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Public") - .HasColumnType("boolean"); - - b.HasKey("Id"); - - b.HasIndex("ContextId"); - - b.ToTable("Services"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("For") - .HasColumnType("smallint"); - - b.Property("Message") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Sender") - .IsRequired() - .HasColumnType("text"); - - b.Property("Topic") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.ToTable("Announce"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DismissClicked", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("NotificationId") - .HasColumnType("bigint"); - - b.HasKey("UserId", "NotificationId"); - - b.HasIndex("NotificationId"); - - b.ToTable("DismissClicked"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("character varying(255)"); - - b.HasKey("Id"); - - b.ToTable("Instrument"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.InstrumentRating", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("InstrumentId") - .HasColumnType("bigint"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.HasAlternateKey("InstrumentId", "OwnerId"); - - b.HasIndex("OwnerId"); - - b.ToTable("InstrumentRating"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId") - .HasColumnType("text"); - - b.Property("DjSettingsUserId") - .HasColumnType("text"); - - b.Property("GeneralSettingsUserId") - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.Property("TendencyId") - .HasColumnType("bigint"); - - b.HasKey("OwnerProfileId"); - - b.HasIndex("DjSettingsUserId"); - - b.HasIndex("GeneralSettingsUserId"); - - b.ToTable("MusicalPreference"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("character varying(255)"); - - b.HasKey("Id"); - - b.ToTable("MusicalTendency"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("SoundCloudId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("DjSettings"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("GeneralSettings"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId") - .HasColumnType("bigint"); - - b.Property("UserId") - .HasColumnType("text"); - - b.HasKey("InstrumentId", "UserId"); - - b.HasIndex("UserId"); - - b.ToTable("Instrumentation"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Property("CreationToken") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("ExecutorId") - .IsRequired() - .HasColumnType("text"); - - b.Property("OrderReference") - .IsRequired() - .HasColumnType("text"); - - b.Property("PaypalPayerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("State") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("CreationToken"); - - b.HasIndex("ExecutorId"); - - b.ToTable("PayPalPayment"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ApplicationUserId") - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Public") - .HasColumnType("boolean"); - - b.HasKey("Id"); - - b.HasIndex("ApplicationUserId"); - - b.ToTable("Circle"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId") - .HasColumnType("text"); - - b.Property("CircleId") - .HasColumnType("bigint"); - - b.HasKey("MemberId", "CircleId"); - - b.HasIndex("CircleId"); - - b.ToTable("CircleMembers"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId") - .HasColumnType("text"); - - b.Property("UserId") - .HasColumnType("text"); - - b.Property("AddressId") - .HasColumnType("bigint"); - - b.Property("ApplicationUserId") - .HasColumnType("text"); - - b.Property("EMail") - .IsRequired() - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("OwnerId", "UserId"); - - b.HasIndex("AddressId"); - - b.HasIndex("ApplicationUserId"); - - b.ToTable("Contact"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.Property("HRef") - .HasColumnType("text"); - - b.Property("Method") - .HasColumnType("text"); - - b.Property("BrusherProfileUserId") - .HasColumnType("text"); - - b.Property("ContentType") - .IsRequired() - .HasColumnType("text"); - - b.Property("PayPalPaymentCreationToken") - .HasColumnType("text"); - - b.Property("Rel") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("HRef", "Method"); - - b.HasIndex("BrusherProfileUserId"); - - b.HasIndex("PayPalPaymentCreationToken"); - - b.ToTable("HyperLink"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Address") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("Latitude") - .HasColumnType("double precision"); - - b.Property("Longitude") - .HasColumnType("double precision"); - - b.HasKey("Id"); - - b.ToTable("Locations"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostalAddress", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("City") - .IsRequired() - .HasColumnType("text"); - - b.Property("Country") - .IsRequired() - .HasColumnType("text"); - - b.Property("PostalCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("Province") - .IsRequired() - .HasColumnType("text"); - - b.Property("State") - .IsRequired() - .HasColumnType("text"); - - b.Property("Street1") - .IsRequired() - .HasColumnType("text"); - - b.Property("Street2") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("PostalAddress"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("Tags"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("SiteSkills"); - }); - - modelBuilder.Entity("Yavsc.Models.Streaming.LiveFlow", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("DifferedFileName") - .IsRequired() - .HasColumnType("text"); - - b.Property("MediaType") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Pitch") - .IsRequired() - .HasColumnType("text"); - - b.Property("SequenceNumber") - .HasColumnType("integer"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.ToTable("LiveFlow"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("Hidden") - .HasColumnType("boolean"); - - b.Property("ModeratorGroupName") - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("ParentCode") - .HasColumnType("text"); - - b.Property("Photo") - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.Property("SettingsClassName") - .HasColumnType("text"); - - b.Property("UserCreated") - .HasColumnType("text"); - - b.Property("UserModified") - .HasColumnType("text"); - - b.HasKey("Code"); - - b.HasIndex("ParentCode"); - - b.ToTable("Activities"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("FormationSettingsUserId") - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("WorkingForId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("FormationSettingsUserId"); - - b.HasIndex("PerformerId"); - - b.HasIndex("WorkingForId"); - - b.ToTable("CoWorking"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ActionName") - .IsRequired() - .HasColumnType("text"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.ToTable("CommandForm"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId") - .HasColumnType("text"); - - b.Property("AcceptNotifications") - .HasColumnType("boolean"); - - b.Property("AcceptPublicContact") - .HasColumnType("boolean"); - - b.Property("Active") - .HasColumnType("boolean"); - - b.Property("MaxDailyCost") - .HasColumnType("integer"); - - b.Property("MinDailyCost") - .HasColumnType("integer"); - - b.Property("OrganizationAddressId") - .HasColumnType("bigint"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.Property("SIREN") - .IsRequired() - .HasColumnType("text"); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients") - .HasColumnType("boolean"); - - b.Property("WebSite") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("PerformerId"); - - b.HasIndex("OrganizationAddressId"); - - b.ToTable("Performers"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("DisplayName") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("FormationSettings"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Accepted") - .HasColumnType("boolean"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Decided") - .HasColumnType("boolean"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("EventDate") - .HasColumnType("timestamp with time zone"); - - b.Property("LocationId") - .HasColumnType("bigint"); - - b.Property("LocationType") - .HasColumnType("integer"); - - b.Property("PaymentId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("Reason") - .IsRequired() - .HasColumnType("text"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("LocationId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.ToTable("RdvQueries"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode") - .HasColumnType("text"); - - b.Property("UserId") - .HasColumnType("text"); - - b.Property("Weight") - .HasColumnType("integer"); - - b.HasKey("DoesCode", "UserId"); - - b.HasIndex("UserId"); - - b.ToTable("UserActivities"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Calendar.Period", b => - { - b.Property("Start") - .HasColumnType("timestamp with time zone"); - - b.Property("End") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Start", "End"); - - b.ToTable("Period"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.EMailing.MailingTemplate", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("Body") - .IsRequired() - .HasMaxLength(65536) - .HasColumnType("character varying(65536)"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("ReplyToAddress") - .IsRequired() - .HasColumnType("text"); - - b.Property("ToSend") - .HasColumnType("integer"); - - b.Property("Topic") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("MailingTemplate"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Accepted") - .HasColumnType("boolean"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Decided") - .HasColumnType("boolean"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("GitId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PaymentId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.Property("Version") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("GitId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.ToTable("Project"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("ProjectId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("ProjectId"); - - b.ToTable("ProjectBuildConfiguration"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Branch") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Path") - .IsRequired() - .HasColumnType("text"); - - b.Property("Url") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.ToTable("GitRepositoryReference"); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null) - .WithMany() - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null) - .WithMany() - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "TargetUser") - .WithMany() - .HasForeignKey("TargetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TargetUser"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany("BlackList") - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost", "Target") - .WithMany("ACL") - .HasForeignKey("BlogPostId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Circle", "Allowed") - .WithMany() - .HasForeignKey("CircleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Allowed"); - - b.Navigation("Target"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithOne("AccountBalance") - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Relationship.Location", "PostalAddress") - .WithMany() - .HasForeignKey("PostalAddressId"); - - b.Navigation("PostalAddress"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance", "Balance") - .WithMany() - .HasForeignKey("BalanceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Balance"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany("BankInfo") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate", null) - .WithMany("Bill") - .HasForeignKey("EstimateId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate", null) - .WithMany("Bill") - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery", "Query") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Owner"); - - b.Navigation("Query"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Author") - .WithMany("Posts") - .HasForeignKey("AuthorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Author"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost", "Post") - .WithMany("Tags") - .HasForeignKey("PostId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Tag", "Tag") - .WithMany() - .HasForeignKey("TagId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Post"); - - b.Navigation("Tag"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Author") - .WithMany() - .HasForeignKey("AuthorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Blog.Comment", "Parent") - .WithMany("Children") - .HasForeignKey("ParentId"); - - b.HasOne("Yavsc.Models.Blog.BlogPost", "Post") - .WithMany("Comments") - .HasForeignKey("ReceiverId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Author"); - - b.Navigation("Parent"); - - b.Navigation("Post"); - }); - - modelBuilder.Entity("Yavsc.Models.BlogspotPublication", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost", "BlogPost") - .WithMany() - .HasForeignKey("BlogpostId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("BlogPost"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule", null) - .WithMany("Events") - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Server.Models.Calendar.Period", "Period") - .WithMany() - .HasForeignKey("PeriodStart", "PeriodEnd") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Period"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany("Connections") - .HasForeignKey("ApplicationUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany("Rooms") - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomAccess", b => - { - b.HasOne("Yavsc.Models.Chat.ChatRoom", "Room") - .WithMany("Moderation") - .HasForeignKey("ChannelName") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany("RoomAccess") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Room"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule", "Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "BaseProfile") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("BaseProfile"); - - b.Navigation("Schedule"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Location", "Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation", "Prestation") - .WithMany() - .HasForeignKey("PrestationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.BrusherProfile", "SelectedProfile") - .WithMany() - .HasForeignKey("SelectedProfileUserId"); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("Location"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Prestation"); - - b.Navigation("Regularisation"); - - b.Navigation("SelectedProfile"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Location", "Location") - .WithMany() - .HasForeignKey("LocationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("Location"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Regularisation"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation", "Prestation") - .WithMany() - .HasForeignKey("PrestationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery", "Query") - .WithMany("Prestations") - .HasForeignKey("QueryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Prestation"); - - b.Navigation("Query"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color", "Color") - .WithMany() - .HasForeignKey("ColorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Color"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation", "Prestation") - .WithMany("Taints") - .HasForeignKey("PrestationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.HairTaint", "Taint") - .WithMany() - .HasForeignKey("TaintId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Prestation"); - - b.Navigation("Taint"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.HasOne("Yavsc.Models.IT.Evolution.Feature", "False") - .WithMany() - .HasForeignKey("FeatureId"); - - b.Navigation("False"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.DeviceDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "DeviceOwner") - .WithMany("DeviceDeclaration") - .HasForeignKey("DeviceOwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("DeviceOwner"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany("Services") - .HasForeignKey("ContextId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Context"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DismissClicked", b => - { - b.HasOne("Yavsc.Abstract.Models.Messaging.Notification", "Notified") - .WithMany() - .HasForeignKey("NotificationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Notified"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.InstrumentRating", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument", "Instrument") - .WithMany() - .HasForeignKey("InstrumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "Profile") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Instrument"); - - b.Navigation("Profile"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings", null) - .WithMany("SoundColor") - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings", null) - .WithMany("SoundColor") - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument", "Tool") - .WithMany() - .HasForeignKey("InstrumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tool"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Executor") - .WithMany() - .HasForeignKey("ExecutorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Executor"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany("Circles") - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle", "Circle") - .WithMany("Members") - .HasForeignKey("CircleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Member") - .WithMany("Membership") - .HasForeignKey("MemberId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Circle"); - - b.Navigation("Member"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.Relationship.PostalAddress", "PostalAddress") - .WithMany() - .HasForeignKey("AddressId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany("Book") - .HasForeignKey("ApplicationUserId"); - - b.Navigation("PostalAddress"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.HasOne("Yavsc.Models.Haircut.BrusherProfile", null) - .WithMany("Links") - .HasForeignKey("BrusherProfileUserId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", null) - .WithMany("Links") - .HasForeignKey("PayPalPaymentCreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Streaming.LiveFlow", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Parent") - .WithMany("Children") - .HasForeignKey("ParentCode"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings", null) - .WithMany("CoWorking") - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "Performer") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "WorkingFor") - .WithMany() - .HasForeignKey("WorkingForId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Performer"); - - b.Navigation("WorkingFor"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany("Forms") - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Context"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location", "OrganizationAddress") - .WithMany() - .HasForeignKey("OrganizationAddressId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Performer") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("OrganizationAddress"); - - b.Navigation("Performer"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Location", "Location") - .WithMany() - .HasForeignKey("LocationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("Location"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Regularisation"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Does") - .WithMany() - .HasForeignKey("DoesCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "User") - .WithMany("Activity") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Does"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", "Repository") - .WithMany() - .HasForeignKey("GitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Regularisation"); - - b.Navigation("Repository"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.HasOne("Yavsc.Server.Models.IT.Project", "TargetProject") - .WithMany("Configurations") - .HasForeignKey("ProjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TargetProject"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Navigation("AccountBalance") - .IsRequired(); - - b.Navigation("BankInfo"); - - b.Navigation("BlackList"); - - b.Navigation("Book"); - - b.Navigation("Circles"); - - b.Navigation("Connections"); - - b.Navigation("DeviceDeclaration"); - - b.Navigation("Membership"); - - b.Navigation("Posts"); - - b.Navigation("RoomAccess"); - - b.Navigation("Rooms"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Navigation("Bill"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Navigation("Bill"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.Navigation("ACL"); - - b.Navigation("Comments"); - - b.Navigation("Tags"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.Navigation("Children"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Navigation("Events"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.Navigation("Moderation"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Navigation("Links"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Navigation("Prestations"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Navigation("Taints"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Navigation("SoundColor"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Navigation("SoundColor"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Navigation("Links"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Navigation("Members"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Navigation("Children"); - - b.Navigation("Forms"); - - b.Navigation("Services"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Navigation("Activity"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Navigation("CoWorking"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.Navigation("Configurations"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/Yavsc.Server/Migrations/20250628150549_blogPostPub.cs b/src/Yavsc.Server/Migrations/20250628150549_blogPostPub.cs deleted file mode 100644 index 5f0c9020..00000000 --- a/src/Yavsc.Server/Migrations/20250628150549_blogPostPub.cs +++ /dev/null @@ -1,38 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace Yavsc.Migrations -{ - /// - public partial class blogPostPub : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.CreateTable( - name: "blogspotPublications", - columns: table => new - { - BlogpostId = table.Column(type: "bigint", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_blogspotPublications", x => x.BlogpostId); - table.ForeignKey( - name: "FK_blogspotPublications_BlogSpot_BlogpostId", - column: x => x.BlogpostId, - principalTable: "BlogSpot", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "blogspotPublications"); - } - } -} diff --git a/src/Yavsc.Server/Migrations/20250629174955_blogPusb2.Designer.cs b/src/Yavsc.Server/Migrations/20250629174955_blogPusb2.Designer.cs deleted file mode 100644 index df2bb670..00000000 --- a/src/Yavsc.Server/Migrations/20250629174955_blogPusb2.Designer.cs +++ /dev/null @@ -1,3518 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; -using Yavsc.Models; - -#nullable disable - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20250629174955_blogPusb2")] - partial class blogPusb2 - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "9.0.6") - .HasAnnotation("Relational:MaxIdentifierLength", 63); - - NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasColumnType("text"); - - b.Property("Name") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("NormalizedName") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .IsUnique() - .HasDatabaseName("RoleNameIndex"); - - b.ToTable("AspNetRoles", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ClaimType") - .HasColumnType("text"); - - b.Property("ClaimValue") - .HasColumnType("text"); - - b.Property("RoleId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("RoleId"); - - b.ToTable("AspNetRoleClaims", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ClaimType") - .HasColumnType("text"); - - b.Property("ClaimValue") - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.ToTable("AspNetUserClaims", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => - { - b.Property("LoginProvider") - .HasColumnType("text"); - - b.Property("ProviderKey") - .HasColumnType("text"); - - b.Property("ProviderDisplayName") - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasIndex("UserId"); - - b.ToTable("AspNetUserLogins", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("RoleId") - .HasColumnType("text"); - - b.HasKey("UserId", "RoleId"); - - b.HasIndex("RoleId"); - - b.ToTable("AspNetUserRoles", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("LoginProvider") - .HasColumnType("text"); - - b.Property("Name") - .HasColumnType("text"); - - b.Property("Value") - .HasColumnType("text"); - - b.HasKey("UserId", "LoginProvider", "Name"); - - b.ToTable("AspNetUserTokens", (string)null); - }); - - modelBuilder.Entity("Yavsc.Abstract.Identity.ClientProviderInfo", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("Avatar") - .IsRequired() - .HasColumnType("text"); - - b.Property("BillingAddressId") - .HasColumnType("bigint"); - - b.Property("EMail") - .IsRequired() - .HasColumnType("text"); - - b.Property("Phone") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserName") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("ClientProviderInfo"); - }); - - modelBuilder.Entity("Yavsc.Abstract.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Target") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("body") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("click_action") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("color") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("icon") - .ValueGeneratedOnAdd() - .HasMaxLength(512) - .HasColumnType("character varying(512)") - .HasDefaultValue("exclam"); - - b.Property("sound") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("tag") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("title") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("character varying(1024)"); - - b.HasKey("Id"); - - b.ToTable("Notification"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Reason") - .IsRequired() - .HasColumnType("text"); - - b.Property("TargetId") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("TargetId"); - - b.ToTable("Ban"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.HasIndex("UserId"); - - b.ToTable("BlackListed"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId") - .HasColumnType("bigint"); - - b.Property("BlogPostId") - .HasColumnType("bigint"); - - b.HasKey("CircleId", "BlogPostId"); - - b.HasIndex("BlogPostId"); - - b.ToTable("CircleAuthorizationToBlogPost"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("ContactCredits") - .HasColumnType("bigint"); - - b.Property("Credits") - .HasColumnType("numeric"); - - b.HasKey("UserId"); - - b.ToTable("BankStatus"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("AccessFailedCount") - .HasColumnType("integer"); - - b.Property("AllowMonthlyEmail") - .HasColumnType("boolean"); - - b.Property("Avatar") - .IsRequired() - .ValueGeneratedOnAdd() - .HasMaxLength(512) - .HasColumnType("character varying(512)") - .HasDefaultValue("/images/Users/icon_user.png"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasColumnType("text"); - - b.Property("DedicatedGoogleCalendar") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("DiskQuota") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasDefaultValue(524288000L); - - b.Property("DiskUsage") - .HasColumnType("bigint"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("EmailConfirmed") - .HasColumnType("boolean"); - - b.Property("FullName") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("LockoutEnabled") - .HasColumnType("boolean"); - - b.Property("LockoutEnd") - .HasColumnType("timestamp with time zone"); - - b.Property("MaxFileSize") - .HasColumnType("bigint"); - - b.Property("NormalizedEmail") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("NormalizedUserName") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("PasswordHash") - .HasColumnType("text"); - - b.Property("PhoneNumber") - .HasColumnType("text"); - - b.Property("PhoneNumberConfirmed") - .HasColumnType("boolean"); - - b.Property("PostalAddressId") - .HasColumnType("bigint"); - - b.Property("SecurityStamp") - .HasColumnType("text"); - - b.Property("TwoFactorEnabled") - .HasColumnType("boolean"); - - b.Property("UserName") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.HasKey("Id"); - - b.HasAlternateKey("Email"); - - b.HasIndex("NormalizedEmail") - .HasDatabaseName("EmailIndex"); - - b.HasIndex("NormalizedUserName") - .IsUnique() - .HasDatabaseName("UserNameIndex"); - - b.HasIndex("PostalAddressId"); - - b.ToTable("AspNetUsers", (string)null); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("text"); - - b.Property("AccessTokenLifetime") - .HasColumnType("integer"); - - b.Property("Active") - .HasColumnType("boolean"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("character varying(128)"); - - b.Property("LogoutRedirectUri") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("RedirectUri") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("RefreshTokenLifeTime") - .HasColumnType("integer"); - - b.Property("Secret") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("Type") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("Applications"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.OAuth2Tokens", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("AccessToken") - .IsRequired() - .HasColumnType("text"); - - b.Property("Expiration") - .HasColumnType("timestamp with time zone"); - - b.Property("ExpiresIn") - .IsRequired() - .HasColumnType("text"); - - b.Property("RefreshToken") - .IsRequired() - .HasColumnType("text"); - - b.Property("TokenType") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("OAuth2Tokens"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("character varying(50)"); - - b.Property("ExpiresUtc") - .HasColumnType("timestamp with time zone"); - - b.Property("IssuedUtc") - .HasColumnType("timestamp with time zone"); - - b.Property("ProtectedTicket") - .IsRequired() - .HasColumnType("text"); - - b.Property("Subject") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("character varying(50)"); - - b.HasKey("Id"); - - b.ToTable("RefreshTokens"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Scope", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("character varying(1024)"); - - b.HasKey("Id"); - - b.ToTable("Scopes"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("BalanceId") - .IsRequired() - .HasColumnType("text"); - - b.Property("ExecDate") - .HasColumnType("timestamp with time zone"); - - b.Property("Impact") - .HasColumnType("numeric"); - - b.Property("Reason") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("BalanceId"); - - b.ToTable("BankBook"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AccountNumber") - .IsRequired() - .HasColumnType("text"); - - b.Property("BIC") - .IsRequired() - .HasColumnType("text"); - - b.Property("BankCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("BankedKey") - .HasColumnType("integer"); - - b.Property("IBAN") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.Property("WicketCode") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.ToTable("BankIdentity"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Count") - .HasColumnType("integer"); - - b.Property("Currency") - .IsRequired() - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("EstimateId") - .HasColumnType("bigint"); - - b.Property("EstimateTemplateId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("UnitaryCost") - .HasColumnType("numeric"); - - b.HasKey("Id"); - - b.HasIndex("EstimateId"); - - b.HasIndex("EstimateTemplateId"); - - b.ToTable("CommandLine"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AttachedFilesString") - .IsRequired() - .HasColumnType("text"); - - b.Property("AttachedGraphicsString") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientValidationDate") - .HasColumnType("timestamp with time zone"); - - b.Property("CommandId") - .HasColumnType("bigint"); - - b.Property("CommandType") - .IsRequired() - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("ProviderValidationDate") - .HasColumnType("timestamp with time zone"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ClientId"); - - b.HasIndex("CommandId"); - - b.HasIndex("OwnerId"); - - b.ToTable("Estimates"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("EstimateTemplates"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN") - .HasColumnType("text"); - - b.HasKey("SIREN"); - - b.ToTable("ExceptionsSIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AuthorId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Content") - .HasMaxLength(56224) - .HasColumnType("character varying(56224)"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Photo") - .HasMaxLength(1024) - .HasColumnType("character varying(1024)"); - - b.Property("Publish") - .HasColumnType("boolean"); - - b.Property("Title") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("character varying(1024)"); - - b.Property("UserCreated") - .HasColumnType("text"); - - b.Property("UserModified") - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("AuthorId"); - - b.ToTable("BlogSpot"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.Property("PostId") - .HasColumnType("bigint"); - - b.Property("TagId") - .HasColumnType("bigint"); - - b.HasKey("PostId", "TagId"); - - b.HasIndex("TagId"); - - b.ToTable("BlogTag"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AuthorId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Content") - .IsRequired() - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("ParentId") - .HasColumnType("bigint"); - - b.Property("ReceiverId") - .HasColumnType("bigint"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("Visible") - .HasColumnType("boolean"); - - b.HasKey("Id"); - - b.HasIndex("AuthorId"); - - b.HasIndex("ParentId"); - - b.HasIndex("ReceiverId"); - - b.ToTable("Comment"); - }); - - modelBuilder.Entity("Yavsc.Models.BlogSpotPublication", b => - { - b.Property("BlogpostId") - .HasColumnType("bigint"); - - b.HasKey("BlogpostId"); - - b.ToTable("blogSpotPublications"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Property("OwnerId") - .HasColumnType("text"); - - b.HasKey("OwnerId"); - - b.ToTable("Schedule"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("PeriodEnd") - .HasColumnType("timestamp with time zone"); - - b.Property("PeriodStart") - .HasColumnType("timestamp with time zone"); - - b.Property("Reccurence") - .HasColumnType("integer"); - - b.Property("ScheduleOwnerId") - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ScheduleOwnerId"); - - b.HasIndex("PeriodStart", "PeriodEnd"); - - b.ToTable("ScheduledEvent"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.Property("ConnectionId") - .HasColumnType("text"); - - b.Property("ApplicationUserId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Connected") - .HasColumnType("boolean"); - - b.Property("UserAgent") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("ConnectionId"); - - b.HasIndex("ApplicationUserId"); - - b.ToTable("ChatConnection"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.Property("Name") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("LatestJoinPart") - .HasColumnType("timestamp with time zone"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Topic") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Name"); - - b.HasIndex("OwnerId"); - - b.ToTable("ChatRoom"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomAccess", b => - { - b.Property("ChannelName") - .HasColumnType("text"); - - b.Property("UserId") - .HasColumnType("text"); - - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Level") - .HasColumnType("integer"); - - b.HasKey("ChannelName", "UserId"); - - b.HasIndex("UserId"); - - b.ToTable("ChatRoomAccess"); - }); - - modelBuilder.Entity("Yavsc.Models.Cratie.Option", b => - { - b.Property("Code") - .HasColumnType("text"); - - b.Property("CodeScrutin") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Code", "CodeScrutin"); - - b.ToTable("Option"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Blue") - .HasColumnType("smallint"); - - b.Property("Green") - .HasColumnType("smallint"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Red") - .HasColumnType("smallint"); - - b.HasKey("Id"); - - b.ToTable("Color"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("Summary") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("Form"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("ActionDistance") - .HasColumnType("integer"); - - b.Property("CarePrice") - .HasColumnType("numeric"); - - b.Property("FlatFeeDiscount") - .HasColumnType("numeric"); - - b.Property("HalfBalayagePrice") - .HasColumnType("numeric"); - - b.Property("HalfBrushingPrice") - .HasColumnType("numeric"); - - b.Property("HalfColorPrice") - .HasColumnType("numeric"); - - b.Property("HalfDefrisPrice") - .HasColumnType("numeric"); - - b.Property("HalfFoldingPrice") - .HasColumnType("numeric"); - - b.Property("HalfMechPrice") - .HasColumnType("numeric"); - - b.Property("HalfMultiColorPrice") - .HasColumnType("numeric"); - - b.Property("HalfPermanentPrice") - .HasColumnType("numeric"); - - b.Property("KidCutPrice") - .HasColumnType("numeric"); - - b.Property("LongBalayagePrice") - .HasColumnType("numeric"); - - b.Property("LongBrushingPrice") - .HasColumnType("numeric"); - - b.Property("LongColorPrice") - .HasColumnType("numeric"); - - b.Property("LongDefrisPrice") - .HasColumnType("numeric"); - - b.Property("LongFoldingPrice") - .HasColumnType("numeric"); - - b.Property("LongMechPrice") - .HasColumnType("numeric"); - - b.Property("LongMultiColorPrice") - .HasColumnType("numeric"); - - b.Property("LongPermanentPrice") - .HasColumnType("numeric"); - - b.Property("ManBrushPrice") - .HasColumnType("numeric"); - - b.Property("ManCutPrice") - .HasColumnType("numeric"); - - b.Property("ScheduleOwnerId") - .HasColumnType("text"); - - b.Property("ShampooPrice") - .HasColumnType("numeric"); - - b.Property("ShortBalayagePrice") - .HasColumnType("numeric"); - - b.Property("ShortBrushingPrice") - .HasColumnType("numeric"); - - b.Property("ShortColorPrice") - .HasColumnType("numeric"); - - b.Property("ShortDefrisPrice") - .HasColumnType("numeric"); - - b.Property("ShortFoldingPrice") - .HasColumnType("numeric"); - - b.Property("ShortMechPrice") - .HasColumnType("numeric"); - - b.Property("ShortMultiColorPrice") - .HasColumnType("numeric"); - - b.Property("ShortPermanentPrice") - .HasColumnType("numeric"); - - b.Property("WomenHalfCutPrice") - .HasColumnType("numeric"); - - b.Property("WomenLongCutPrice") - .HasColumnType("numeric"); - - b.Property("WomenShortCutPrice") - .HasColumnType("numeric"); - - b.HasKey("UserId"); - - b.HasIndex("ScheduleOwnerId"); - - b.ToTable("BrusherProfile"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Accepted") - .HasColumnType("boolean"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("AdditionalInfo") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Decided") - .HasColumnType("boolean"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("EventDate") - .HasColumnType("timestamp with time zone"); - - b.Property("LocationId") - .HasColumnType("bigint"); - - b.Property("PaymentId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PrestationId") - .HasColumnType("bigint"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("SelectedProfileUserId") - .HasColumnType("text"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("LocationId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.HasIndex("PrestationId"); - - b.HasIndex("SelectedProfileUserId"); - - b.ToTable("HairCutQueries"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Accepted") - .HasColumnType("boolean"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Decided") - .HasColumnType("boolean"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("EventDate") - .HasColumnType("timestamp with time zone"); - - b.Property("LocationId") - .HasColumnType("bigint"); - - b.Property("PaymentId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("LocationId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.ToTable("HairMultiCutQueries"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Cares") - .HasColumnType("boolean"); - - b.Property("Cut") - .HasColumnType("boolean"); - - b.Property("Dressing") - .HasColumnType("integer"); - - b.Property("Gender") - .HasColumnType("integer"); - - b.Property("Length") - .HasColumnType("integer"); - - b.Property("Shampoo") - .HasColumnType("boolean"); - - b.Property("Tech") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("HairPrestation"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("PrestationId") - .HasColumnType("bigint"); - - b.Property("QueryId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("PrestationId"); - - b.HasIndex("QueryId"); - - b.ToTable("HairPrestationCollectionItem"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Brand") - .IsRequired() - .HasColumnType("text"); - - b.Property("ColorId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("ColorId"); - - b.ToTable("HairTaint"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.Property("TaintId") - .HasColumnType("bigint"); - - b.Property("PrestationId") - .HasColumnType("bigint"); - - b.HasKey("TaintId", "PrestationId"); - - b.HasIndex("PrestationId"); - - b.ToTable("HairTaintInstance"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Evolution.Feature", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("ShortName") - .IsRequired() - .HasColumnType("text"); - - b.Property("Status") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("Feature"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("FeatureId") - .HasColumnType("bigint"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("FeatureId"); - - b.ToTable("Bug"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.DeviceDeclaration", b => - { - b.Property("DeviceId") - .HasColumnType("text"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasColumnType("timestamp with time zone") - .HasDefaultValueSql("LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("LatestActivityUpdate") - .HasColumnType("timestamp with time zone"); - - b.Property("Model") - .IsRequired() - .HasColumnType("text"); - - b.Property("Platform") - .IsRequired() - .HasColumnType("text"); - - b.Property("Version") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("DeviceId"); - - b.HasIndex("DeviceOwnerId"); - - b.ToTable("DeviceDeclaration"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Depth") - .HasColumnType("numeric"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("Height") - .HasColumnType("numeric"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Price") - .HasColumnType("numeric"); - - b.Property("Public") - .HasColumnType("boolean"); - - b.Property("Weight") - .HasColumnType("numeric"); - - b.Property("Width") - .HasColumnType("numeric"); - - b.HasKey("Id"); - - b.ToTable("Products"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ContextId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Public") - .HasColumnType("boolean"); - - b.HasKey("Id"); - - b.HasIndex("ContextId"); - - b.ToTable("Services"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("For") - .HasColumnType("smallint"); - - b.Property("Message") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Sender") - .IsRequired() - .HasColumnType("text"); - - b.Property("Topic") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.ToTable("Announce"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DismissClicked", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("NotificationId") - .HasColumnType("bigint"); - - b.HasKey("UserId", "NotificationId"); - - b.HasIndex("NotificationId"); - - b.ToTable("DismissClicked"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("character varying(255)"); - - b.HasKey("Id"); - - b.ToTable("Instrument"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.InstrumentRating", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("InstrumentId") - .HasColumnType("bigint"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.HasAlternateKey("InstrumentId", "OwnerId"); - - b.HasIndex("OwnerId"); - - b.ToTable("InstrumentRating"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId") - .HasColumnType("text"); - - b.Property("DjSettingsUserId") - .HasColumnType("text"); - - b.Property("GeneralSettingsUserId") - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.Property("TendencyId") - .HasColumnType("bigint"); - - b.HasKey("OwnerProfileId"); - - b.HasIndex("DjSettingsUserId"); - - b.HasIndex("GeneralSettingsUserId"); - - b.ToTable("MusicalPreference"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("character varying(255)"); - - b.HasKey("Id"); - - b.ToTable("MusicalTendency"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("SoundCloudId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("DjSettings"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("GeneralSettings"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId") - .HasColumnType("bigint"); - - b.Property("UserId") - .HasColumnType("text"); - - b.HasKey("InstrumentId", "UserId"); - - b.HasIndex("UserId"); - - b.ToTable("Instrumentation"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Property("CreationToken") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("ExecutorId") - .IsRequired() - .HasColumnType("text"); - - b.Property("OrderReference") - .IsRequired() - .HasColumnType("text"); - - b.Property("PaypalPayerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("State") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("CreationToken"); - - b.HasIndex("ExecutorId"); - - b.ToTable("PayPalPayment"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ApplicationUserId") - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Public") - .HasColumnType("boolean"); - - b.HasKey("Id"); - - b.HasIndex("ApplicationUserId"); - - b.ToTable("Circle"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId") - .HasColumnType("text"); - - b.Property("CircleId") - .HasColumnType("bigint"); - - b.HasKey("MemberId", "CircleId"); - - b.HasIndex("CircleId"); - - b.ToTable("CircleMembers"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId") - .HasColumnType("text"); - - b.Property("UserId") - .HasColumnType("text"); - - b.Property("AddressId") - .HasColumnType("bigint"); - - b.Property("ApplicationUserId") - .HasColumnType("text"); - - b.Property("EMail") - .IsRequired() - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("OwnerId", "UserId"); - - b.HasIndex("AddressId"); - - b.HasIndex("ApplicationUserId"); - - b.ToTable("Contact"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.Property("HRef") - .HasColumnType("text"); - - b.Property("Method") - .HasColumnType("text"); - - b.Property("BrusherProfileUserId") - .HasColumnType("text"); - - b.Property("ContentType") - .IsRequired() - .HasColumnType("text"); - - b.Property("PayPalPaymentCreationToken") - .HasColumnType("text"); - - b.Property("Rel") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("HRef", "Method"); - - b.HasIndex("BrusherProfileUserId"); - - b.HasIndex("PayPalPaymentCreationToken"); - - b.ToTable("HyperLink"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Address") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("Latitude") - .HasColumnType("double precision"); - - b.Property("Longitude") - .HasColumnType("double precision"); - - b.HasKey("Id"); - - b.ToTable("Locations"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostalAddress", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("City") - .IsRequired() - .HasColumnType("text"); - - b.Property("Country") - .IsRequired() - .HasColumnType("text"); - - b.Property("PostalCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("Province") - .IsRequired() - .HasColumnType("text"); - - b.Property("State") - .IsRequired() - .HasColumnType("text"); - - b.Property("Street1") - .IsRequired() - .HasColumnType("text"); - - b.Property("Street2") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("PostalAddress"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("Tags"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("SiteSkills"); - }); - - modelBuilder.Entity("Yavsc.Models.Streaming.LiveFlow", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("DifferedFileName") - .IsRequired() - .HasColumnType("text"); - - b.Property("MediaType") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Pitch") - .IsRequired() - .HasColumnType("text"); - - b.Property("SequenceNumber") - .HasColumnType("integer"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.ToTable("LiveFlow"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("Hidden") - .HasColumnType("boolean"); - - b.Property("ModeratorGroupName") - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("ParentCode") - .HasColumnType("text"); - - b.Property("Photo") - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.Property("SettingsClassName") - .HasColumnType("text"); - - b.Property("UserCreated") - .HasColumnType("text"); - - b.Property("UserModified") - .HasColumnType("text"); - - b.HasKey("Code"); - - b.HasIndex("ParentCode"); - - b.ToTable("Activities"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("FormationSettingsUserId") - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("WorkingForId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("FormationSettingsUserId"); - - b.HasIndex("PerformerId"); - - b.HasIndex("WorkingForId"); - - b.ToTable("CoWorking"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ActionName") - .IsRequired() - .HasColumnType("text"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.ToTable("CommandForm"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId") - .HasColumnType("text"); - - b.Property("AcceptNotifications") - .HasColumnType("boolean"); - - b.Property("AcceptPublicContact") - .HasColumnType("boolean"); - - b.Property("Active") - .HasColumnType("boolean"); - - b.Property("MaxDailyCost") - .HasColumnType("integer"); - - b.Property("MinDailyCost") - .HasColumnType("integer"); - - b.Property("OrganizationAddressId") - .HasColumnType("bigint"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.Property("SIREN") - .IsRequired() - .HasColumnType("text"); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients") - .HasColumnType("boolean"); - - b.Property("WebSite") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("PerformerId"); - - b.HasIndex("OrganizationAddressId"); - - b.ToTable("Performers"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("DisplayName") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("FormationSettings"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Accepted") - .HasColumnType("boolean"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Decided") - .HasColumnType("boolean"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("EventDate") - .HasColumnType("timestamp with time zone"); - - b.Property("LocationId") - .HasColumnType("bigint"); - - b.Property("LocationType") - .HasColumnType("integer"); - - b.Property("PaymentId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("Reason") - .IsRequired() - .HasColumnType("text"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("LocationId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.ToTable("RdvQueries"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode") - .HasColumnType("text"); - - b.Property("UserId") - .HasColumnType("text"); - - b.Property("Weight") - .HasColumnType("integer"); - - b.HasKey("DoesCode", "UserId"); - - b.HasIndex("UserId"); - - b.ToTable("UserActivities"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Calendar.Period", b => - { - b.Property("Start") - .HasColumnType("timestamp with time zone"); - - b.Property("End") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Start", "End"); - - b.ToTable("Period"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.EMailing.MailingTemplate", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("Body") - .IsRequired() - .HasMaxLength(65536) - .HasColumnType("character varying(65536)"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("ReplyToAddress") - .IsRequired() - .HasColumnType("text"); - - b.Property("ToSend") - .HasColumnType("integer"); - - b.Property("Topic") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("MailingTemplate"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Accepted") - .HasColumnType("boolean"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Decided") - .HasColumnType("boolean"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("GitId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PaymentId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.Property("Version") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("GitId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.ToTable("Project"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("ProjectId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("ProjectId"); - - b.ToTable("ProjectBuildConfiguration"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Branch") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Path") - .IsRequired() - .HasColumnType("text"); - - b.Property("Url") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.ToTable("GitRepositoryReference"); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null) - .WithMany() - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null) - .WithMany() - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "TargetUser") - .WithMany() - .HasForeignKey("TargetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TargetUser"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany("BlackList") - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost", "Target") - .WithMany("ACL") - .HasForeignKey("BlogPostId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Circle", "Allowed") - .WithMany() - .HasForeignKey("CircleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Allowed"); - - b.Navigation("Target"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithOne("AccountBalance") - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Relationship.Location", "PostalAddress") - .WithMany() - .HasForeignKey("PostalAddressId"); - - b.Navigation("PostalAddress"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance", "Balance") - .WithMany() - .HasForeignKey("BalanceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Balance"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany("BankInfo") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate", null) - .WithMany("Bill") - .HasForeignKey("EstimateId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate", null) - .WithMany("Bill") - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery", "Query") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Owner"); - - b.Navigation("Query"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Author") - .WithMany("Posts") - .HasForeignKey("AuthorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Author"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost", "Post") - .WithMany("Tags") - .HasForeignKey("PostId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Tag", "Tag") - .WithMany() - .HasForeignKey("TagId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Post"); - - b.Navigation("Tag"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Author") - .WithMany() - .HasForeignKey("AuthorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Blog.Comment", "Parent") - .WithMany("Children") - .HasForeignKey("ParentId"); - - b.HasOne("Yavsc.Models.Blog.BlogPost", "Post") - .WithMany("Comments") - .HasForeignKey("ReceiverId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Author"); - - b.Navigation("Parent"); - - b.Navigation("Post"); - }); - - modelBuilder.Entity("Yavsc.Models.BlogSpotPublication", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost", "BlogPost") - .WithMany() - .HasForeignKey("BlogpostId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("BlogPost"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule", null) - .WithMany("Events") - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Server.Models.Calendar.Period", "Period") - .WithMany() - .HasForeignKey("PeriodStart", "PeriodEnd") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Period"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany("Connections") - .HasForeignKey("ApplicationUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany("Rooms") - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomAccess", b => - { - b.HasOne("Yavsc.Models.Chat.ChatRoom", "Room") - .WithMany("Moderation") - .HasForeignKey("ChannelName") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany("RoomAccess") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Room"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule", "Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "BaseProfile") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("BaseProfile"); - - b.Navigation("Schedule"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Location", "Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation", "Prestation") - .WithMany() - .HasForeignKey("PrestationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.BrusherProfile", "SelectedProfile") - .WithMany() - .HasForeignKey("SelectedProfileUserId"); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("Location"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Prestation"); - - b.Navigation("Regularisation"); - - b.Navigation("SelectedProfile"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Location", "Location") - .WithMany() - .HasForeignKey("LocationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("Location"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Regularisation"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation", "Prestation") - .WithMany() - .HasForeignKey("PrestationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery", "Query") - .WithMany("Prestations") - .HasForeignKey("QueryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Prestation"); - - b.Navigation("Query"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color", "Color") - .WithMany() - .HasForeignKey("ColorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Color"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation", "Prestation") - .WithMany("Taints") - .HasForeignKey("PrestationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.HairTaint", "Taint") - .WithMany() - .HasForeignKey("TaintId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Prestation"); - - b.Navigation("Taint"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.HasOne("Yavsc.Models.IT.Evolution.Feature", "False") - .WithMany() - .HasForeignKey("FeatureId"); - - b.Navigation("False"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.DeviceDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "DeviceOwner") - .WithMany("DeviceDeclaration") - .HasForeignKey("DeviceOwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("DeviceOwner"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany("Services") - .HasForeignKey("ContextId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Context"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DismissClicked", b => - { - b.HasOne("Yavsc.Abstract.Models.Messaging.Notification", "Notified") - .WithMany() - .HasForeignKey("NotificationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Notified"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.InstrumentRating", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument", "Instrument") - .WithMany() - .HasForeignKey("InstrumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "Profile") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Instrument"); - - b.Navigation("Profile"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings", null) - .WithMany("SoundColor") - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings", null) - .WithMany("SoundColor") - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument", "Tool") - .WithMany() - .HasForeignKey("InstrumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tool"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Executor") - .WithMany() - .HasForeignKey("ExecutorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Executor"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany("Circles") - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle", "Circle") - .WithMany("Members") - .HasForeignKey("CircleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Member") - .WithMany("Membership") - .HasForeignKey("MemberId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Circle"); - - b.Navigation("Member"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.Relationship.PostalAddress", "PostalAddress") - .WithMany() - .HasForeignKey("AddressId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany("Book") - .HasForeignKey("ApplicationUserId"); - - b.Navigation("PostalAddress"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.HasOne("Yavsc.Models.Haircut.BrusherProfile", null) - .WithMany("Links") - .HasForeignKey("BrusherProfileUserId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", null) - .WithMany("Links") - .HasForeignKey("PayPalPaymentCreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Streaming.LiveFlow", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Parent") - .WithMany("Children") - .HasForeignKey("ParentCode"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings", null) - .WithMany("CoWorking") - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "Performer") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "WorkingFor") - .WithMany() - .HasForeignKey("WorkingForId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Performer"); - - b.Navigation("WorkingFor"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany("Forms") - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Context"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location", "OrganizationAddress") - .WithMany() - .HasForeignKey("OrganizationAddressId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Performer") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("OrganizationAddress"); - - b.Navigation("Performer"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Location", "Location") - .WithMany() - .HasForeignKey("LocationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("Location"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Regularisation"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Does") - .WithMany() - .HasForeignKey("DoesCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "User") - .WithMany("Activity") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Does"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", "Repository") - .WithMany() - .HasForeignKey("GitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Regularisation"); - - b.Navigation("Repository"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.HasOne("Yavsc.Server.Models.IT.Project", "TargetProject") - .WithMany("Configurations") - .HasForeignKey("ProjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TargetProject"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Navigation("AccountBalance") - .IsRequired(); - - b.Navigation("BankInfo"); - - b.Navigation("BlackList"); - - b.Navigation("Book"); - - b.Navigation("Circles"); - - b.Navigation("Connections"); - - b.Navigation("DeviceDeclaration"); - - b.Navigation("Membership"); - - b.Navigation("Posts"); - - b.Navigation("RoomAccess"); - - b.Navigation("Rooms"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Navigation("Bill"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Navigation("Bill"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.Navigation("ACL"); - - b.Navigation("Comments"); - - b.Navigation("Tags"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.Navigation("Children"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Navigation("Events"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.Navigation("Moderation"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Navigation("Links"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Navigation("Prestations"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Navigation("Taints"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Navigation("SoundColor"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Navigation("SoundColor"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Navigation("Links"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Navigation("Members"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Navigation("Children"); - - b.Navigation("Forms"); - - b.Navigation("Services"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Navigation("Activity"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Navigation("CoWorking"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.Navigation("Configurations"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/Yavsc.Server/Migrations/20250629174955_blogPusb2.cs b/src/Yavsc.Server/Migrations/20250629174955_blogPusb2.cs deleted file mode 100644 index 7722d57d..00000000 --- a/src/Yavsc.Server/Migrations/20250629174955_blogPusb2.cs +++ /dev/null @@ -1,79 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace Yavsc.Migrations -{ - /// - public partial class blogPusb2 : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey( - name: "FK_blogspotPublications_BlogSpot_BlogpostId", - table: "blogspotPublications"); - - migrationBuilder.DropPrimaryKey( - name: "PK_blogspotPublications", - table: "blogspotPublications"); - - migrationBuilder.RenameTable( - name: "blogspotPublications", - newName: "blogSpotPublications"); - - migrationBuilder.AddColumn( - name: "Publish", - table: "BlogSpot", - type: "boolean", - nullable: false, - defaultValue: false); - - migrationBuilder.AddPrimaryKey( - name: "PK_blogSpotPublications", - table: "blogSpotPublications", - column: "BlogpostId"); - - migrationBuilder.AddForeignKey( - name: "FK_blogSpotPublications_BlogSpot_BlogpostId", - table: "blogSpotPublications", - column: "BlogpostId", - principalTable: "BlogSpot", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey( - name: "FK_blogSpotPublications_BlogSpot_BlogpostId", - table: "blogSpotPublications"); - - migrationBuilder.DropPrimaryKey( - name: "PK_blogSpotPublications", - table: "blogSpotPublications"); - - migrationBuilder.DropColumn( - name: "Publish", - table: "BlogSpot"); - - migrationBuilder.RenameTable( - name: "blogSpotPublications", - newName: "blogspotPublications"); - - migrationBuilder.AddPrimaryKey( - name: "PK_blogspotPublications", - table: "blogspotPublications", - column: "BlogpostId"); - - migrationBuilder.AddForeignKey( - name: "FK_blogspotPublications_BlogSpot_BlogpostId", - table: "blogspotPublications", - column: "BlogpostId", - principalTable: "BlogSpot", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } - } -} diff --git a/src/Yavsc.Server/Migrations/20250629175034_blogPub2.Designer.cs b/src/Yavsc.Server/Migrations/20250629175034_blogPub2.Designer.cs deleted file mode 100644 index 2e58074f..00000000 --- a/src/Yavsc.Server/Migrations/20250629175034_blogPub2.Designer.cs +++ /dev/null @@ -1,3518 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; -using Yavsc.Models; - -#nullable disable - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20250629175034_blogPub2")] - partial class blogPub2 - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "9.0.6") - .HasAnnotation("Relational:MaxIdentifierLength", 63); - - NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasColumnType("text"); - - b.Property("Name") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("NormalizedName") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .IsUnique() - .HasDatabaseName("RoleNameIndex"); - - b.ToTable("AspNetRoles", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ClaimType") - .HasColumnType("text"); - - b.Property("ClaimValue") - .HasColumnType("text"); - - b.Property("RoleId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("RoleId"); - - b.ToTable("AspNetRoleClaims", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ClaimType") - .HasColumnType("text"); - - b.Property("ClaimValue") - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.ToTable("AspNetUserClaims", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => - { - b.Property("LoginProvider") - .HasColumnType("text"); - - b.Property("ProviderKey") - .HasColumnType("text"); - - b.Property("ProviderDisplayName") - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasIndex("UserId"); - - b.ToTable("AspNetUserLogins", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("RoleId") - .HasColumnType("text"); - - b.HasKey("UserId", "RoleId"); - - b.HasIndex("RoleId"); - - b.ToTable("AspNetUserRoles", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("LoginProvider") - .HasColumnType("text"); - - b.Property("Name") - .HasColumnType("text"); - - b.Property("Value") - .HasColumnType("text"); - - b.HasKey("UserId", "LoginProvider", "Name"); - - b.ToTable("AspNetUserTokens", (string)null); - }); - - modelBuilder.Entity("Yavsc.Abstract.Identity.ClientProviderInfo", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("Avatar") - .IsRequired() - .HasColumnType("text"); - - b.Property("BillingAddressId") - .HasColumnType("bigint"); - - b.Property("EMail") - .IsRequired() - .HasColumnType("text"); - - b.Property("Phone") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserName") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("ClientProviderInfo"); - }); - - modelBuilder.Entity("Yavsc.Abstract.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Target") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("body") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("click_action") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("color") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("icon") - .ValueGeneratedOnAdd() - .HasMaxLength(512) - .HasColumnType("character varying(512)") - .HasDefaultValue("exclam"); - - b.Property("sound") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("tag") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("title") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("character varying(1024)"); - - b.HasKey("Id"); - - b.ToTable("Notification"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Reason") - .IsRequired() - .HasColumnType("text"); - - b.Property("TargetId") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("TargetId"); - - b.ToTable("Ban"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.HasIndex("UserId"); - - b.ToTable("BlackListed"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId") - .HasColumnType("bigint"); - - b.Property("BlogPostId") - .HasColumnType("bigint"); - - b.HasKey("CircleId", "BlogPostId"); - - b.HasIndex("BlogPostId"); - - b.ToTable("CircleAuthorizationToBlogPost"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("ContactCredits") - .HasColumnType("bigint"); - - b.Property("Credits") - .HasColumnType("numeric"); - - b.HasKey("UserId"); - - b.ToTable("BankStatus"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("AccessFailedCount") - .HasColumnType("integer"); - - b.Property("AllowMonthlyEmail") - .HasColumnType("boolean"); - - b.Property("Avatar") - .IsRequired() - .ValueGeneratedOnAdd() - .HasMaxLength(512) - .HasColumnType("character varying(512)") - .HasDefaultValue("/images/Users/icon_user.png"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasColumnType("text"); - - b.Property("DedicatedGoogleCalendar") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("DiskQuota") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasDefaultValue(524288000L); - - b.Property("DiskUsage") - .HasColumnType("bigint"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("EmailConfirmed") - .HasColumnType("boolean"); - - b.Property("FullName") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("LockoutEnabled") - .HasColumnType("boolean"); - - b.Property("LockoutEnd") - .HasColumnType("timestamp with time zone"); - - b.Property("MaxFileSize") - .HasColumnType("bigint"); - - b.Property("NormalizedEmail") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("NormalizedUserName") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("PasswordHash") - .HasColumnType("text"); - - b.Property("PhoneNumber") - .HasColumnType("text"); - - b.Property("PhoneNumberConfirmed") - .HasColumnType("boolean"); - - b.Property("PostalAddressId") - .HasColumnType("bigint"); - - b.Property("SecurityStamp") - .HasColumnType("text"); - - b.Property("TwoFactorEnabled") - .HasColumnType("boolean"); - - b.Property("UserName") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.HasKey("Id"); - - b.HasAlternateKey("Email"); - - b.HasIndex("NormalizedEmail") - .HasDatabaseName("EmailIndex"); - - b.HasIndex("NormalizedUserName") - .IsUnique() - .HasDatabaseName("UserNameIndex"); - - b.HasIndex("PostalAddressId"); - - b.ToTable("AspNetUsers", (string)null); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("text"); - - b.Property("AccessTokenLifetime") - .HasColumnType("integer"); - - b.Property("Active") - .HasColumnType("boolean"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("character varying(128)"); - - b.Property("LogoutRedirectUri") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("RedirectUri") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("RefreshTokenLifeTime") - .HasColumnType("integer"); - - b.Property("Secret") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("Type") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("Applications"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.OAuth2Tokens", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("AccessToken") - .IsRequired() - .HasColumnType("text"); - - b.Property("Expiration") - .HasColumnType("timestamp with time zone"); - - b.Property("ExpiresIn") - .IsRequired() - .HasColumnType("text"); - - b.Property("RefreshToken") - .IsRequired() - .HasColumnType("text"); - - b.Property("TokenType") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("OAuth2Tokens"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("character varying(50)"); - - b.Property("ExpiresUtc") - .HasColumnType("timestamp with time zone"); - - b.Property("IssuedUtc") - .HasColumnType("timestamp with time zone"); - - b.Property("ProtectedTicket") - .IsRequired() - .HasColumnType("text"); - - b.Property("Subject") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("character varying(50)"); - - b.HasKey("Id"); - - b.ToTable("RefreshTokens"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Scope", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("character varying(1024)"); - - b.HasKey("Id"); - - b.ToTable("Scopes"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("BalanceId") - .IsRequired() - .HasColumnType("text"); - - b.Property("ExecDate") - .HasColumnType("timestamp with time zone"); - - b.Property("Impact") - .HasColumnType("numeric"); - - b.Property("Reason") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("BalanceId"); - - b.ToTable("BankBook"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AccountNumber") - .IsRequired() - .HasColumnType("text"); - - b.Property("BIC") - .IsRequired() - .HasColumnType("text"); - - b.Property("BankCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("BankedKey") - .HasColumnType("integer"); - - b.Property("IBAN") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.Property("WicketCode") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.ToTable("BankIdentity"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Count") - .HasColumnType("integer"); - - b.Property("Currency") - .IsRequired() - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("EstimateId") - .HasColumnType("bigint"); - - b.Property("EstimateTemplateId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("UnitaryCost") - .HasColumnType("numeric"); - - b.HasKey("Id"); - - b.HasIndex("EstimateId"); - - b.HasIndex("EstimateTemplateId"); - - b.ToTable("CommandLine"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AttachedFilesString") - .IsRequired() - .HasColumnType("text"); - - b.Property("AttachedGraphicsString") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientValidationDate") - .HasColumnType("timestamp with time zone"); - - b.Property("CommandId") - .HasColumnType("bigint"); - - b.Property("CommandType") - .IsRequired() - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("ProviderValidationDate") - .HasColumnType("timestamp with time zone"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ClientId"); - - b.HasIndex("CommandId"); - - b.HasIndex("OwnerId"); - - b.ToTable("Estimates"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("EstimateTemplates"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN") - .HasColumnType("text"); - - b.HasKey("SIREN"); - - b.ToTable("ExceptionsSIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AuthorId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Content") - .HasMaxLength(56224) - .HasColumnType("character varying(56224)"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Photo") - .HasMaxLength(1024) - .HasColumnType("character varying(1024)"); - - b.Property("Publish") - .HasColumnType("boolean"); - - b.Property("Title") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("character varying(1024)"); - - b.Property("UserCreated") - .HasColumnType("text"); - - b.Property("UserModified") - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("AuthorId"); - - b.ToTable("BlogSpot"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.Property("PostId") - .HasColumnType("bigint"); - - b.Property("TagId") - .HasColumnType("bigint"); - - b.HasKey("PostId", "TagId"); - - b.HasIndex("TagId"); - - b.ToTable("BlogTag"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AuthorId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Content") - .IsRequired() - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("ParentId") - .HasColumnType("bigint"); - - b.Property("ReceiverId") - .HasColumnType("bigint"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("Visible") - .HasColumnType("boolean"); - - b.HasKey("Id"); - - b.HasIndex("AuthorId"); - - b.HasIndex("ParentId"); - - b.HasIndex("ReceiverId"); - - b.ToTable("Comment"); - }); - - modelBuilder.Entity("Yavsc.Models.BlogSpotPublication", b => - { - b.Property("BlogpostId") - .HasColumnType("bigint"); - - b.HasKey("BlogpostId"); - - b.ToTable("blogSpotPublications"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Property("OwnerId") - .HasColumnType("text"); - - b.HasKey("OwnerId"); - - b.ToTable("Schedule"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("PeriodEnd") - .HasColumnType("timestamp with time zone"); - - b.Property("PeriodStart") - .HasColumnType("timestamp with time zone"); - - b.Property("Reccurence") - .HasColumnType("integer"); - - b.Property("ScheduleOwnerId") - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ScheduleOwnerId"); - - b.HasIndex("PeriodStart", "PeriodEnd"); - - b.ToTable("ScheduledEvent"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.Property("ConnectionId") - .HasColumnType("text"); - - b.Property("ApplicationUserId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Connected") - .HasColumnType("boolean"); - - b.Property("UserAgent") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("ConnectionId"); - - b.HasIndex("ApplicationUserId"); - - b.ToTable("ChatConnection"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.Property("Name") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("LatestJoinPart") - .HasColumnType("timestamp with time zone"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Topic") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Name"); - - b.HasIndex("OwnerId"); - - b.ToTable("ChatRoom"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomAccess", b => - { - b.Property("ChannelName") - .HasColumnType("text"); - - b.Property("UserId") - .HasColumnType("text"); - - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Level") - .HasColumnType("integer"); - - b.HasKey("ChannelName", "UserId"); - - b.HasIndex("UserId"); - - b.ToTable("ChatRoomAccess"); - }); - - modelBuilder.Entity("Yavsc.Models.Cratie.Option", b => - { - b.Property("Code") - .HasColumnType("text"); - - b.Property("CodeScrutin") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Code", "CodeScrutin"); - - b.ToTable("Option"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Blue") - .HasColumnType("smallint"); - - b.Property("Green") - .HasColumnType("smallint"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Red") - .HasColumnType("smallint"); - - b.HasKey("Id"); - - b.ToTable("Color"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("Summary") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("Form"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("ActionDistance") - .HasColumnType("integer"); - - b.Property("CarePrice") - .HasColumnType("numeric"); - - b.Property("FlatFeeDiscount") - .HasColumnType("numeric"); - - b.Property("HalfBalayagePrice") - .HasColumnType("numeric"); - - b.Property("HalfBrushingPrice") - .HasColumnType("numeric"); - - b.Property("HalfColorPrice") - .HasColumnType("numeric"); - - b.Property("HalfDefrisPrice") - .HasColumnType("numeric"); - - b.Property("HalfFoldingPrice") - .HasColumnType("numeric"); - - b.Property("HalfMechPrice") - .HasColumnType("numeric"); - - b.Property("HalfMultiColorPrice") - .HasColumnType("numeric"); - - b.Property("HalfPermanentPrice") - .HasColumnType("numeric"); - - b.Property("KidCutPrice") - .HasColumnType("numeric"); - - b.Property("LongBalayagePrice") - .HasColumnType("numeric"); - - b.Property("LongBrushingPrice") - .HasColumnType("numeric"); - - b.Property("LongColorPrice") - .HasColumnType("numeric"); - - b.Property("LongDefrisPrice") - .HasColumnType("numeric"); - - b.Property("LongFoldingPrice") - .HasColumnType("numeric"); - - b.Property("LongMechPrice") - .HasColumnType("numeric"); - - b.Property("LongMultiColorPrice") - .HasColumnType("numeric"); - - b.Property("LongPermanentPrice") - .HasColumnType("numeric"); - - b.Property("ManBrushPrice") - .HasColumnType("numeric"); - - b.Property("ManCutPrice") - .HasColumnType("numeric"); - - b.Property("ScheduleOwnerId") - .HasColumnType("text"); - - b.Property("ShampooPrice") - .HasColumnType("numeric"); - - b.Property("ShortBalayagePrice") - .HasColumnType("numeric"); - - b.Property("ShortBrushingPrice") - .HasColumnType("numeric"); - - b.Property("ShortColorPrice") - .HasColumnType("numeric"); - - b.Property("ShortDefrisPrice") - .HasColumnType("numeric"); - - b.Property("ShortFoldingPrice") - .HasColumnType("numeric"); - - b.Property("ShortMechPrice") - .HasColumnType("numeric"); - - b.Property("ShortMultiColorPrice") - .HasColumnType("numeric"); - - b.Property("ShortPermanentPrice") - .HasColumnType("numeric"); - - b.Property("WomenHalfCutPrice") - .HasColumnType("numeric"); - - b.Property("WomenLongCutPrice") - .HasColumnType("numeric"); - - b.Property("WomenShortCutPrice") - .HasColumnType("numeric"); - - b.HasKey("UserId"); - - b.HasIndex("ScheduleOwnerId"); - - b.ToTable("BrusherProfile"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Accepted") - .HasColumnType("boolean"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("AdditionalInfo") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Decided") - .HasColumnType("boolean"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("EventDate") - .HasColumnType("timestamp with time zone"); - - b.Property("LocationId") - .HasColumnType("bigint"); - - b.Property("PaymentId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PrestationId") - .HasColumnType("bigint"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("SelectedProfileUserId") - .HasColumnType("text"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("LocationId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.HasIndex("PrestationId"); - - b.HasIndex("SelectedProfileUserId"); - - b.ToTable("HairCutQueries"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Accepted") - .HasColumnType("boolean"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Decided") - .HasColumnType("boolean"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("EventDate") - .HasColumnType("timestamp with time zone"); - - b.Property("LocationId") - .HasColumnType("bigint"); - - b.Property("PaymentId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("LocationId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.ToTable("HairMultiCutQueries"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Cares") - .HasColumnType("boolean"); - - b.Property("Cut") - .HasColumnType("boolean"); - - b.Property("Dressing") - .HasColumnType("integer"); - - b.Property("Gender") - .HasColumnType("integer"); - - b.Property("Length") - .HasColumnType("integer"); - - b.Property("Shampoo") - .HasColumnType("boolean"); - - b.Property("Tech") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("HairPrestation"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("PrestationId") - .HasColumnType("bigint"); - - b.Property("QueryId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("PrestationId"); - - b.HasIndex("QueryId"); - - b.ToTable("HairPrestationCollectionItem"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Brand") - .IsRequired() - .HasColumnType("text"); - - b.Property("ColorId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("ColorId"); - - b.ToTable("HairTaint"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.Property("TaintId") - .HasColumnType("bigint"); - - b.Property("PrestationId") - .HasColumnType("bigint"); - - b.HasKey("TaintId", "PrestationId"); - - b.HasIndex("PrestationId"); - - b.ToTable("HairTaintInstance"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Evolution.Feature", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("ShortName") - .IsRequired() - .HasColumnType("text"); - - b.Property("Status") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("Feature"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("FeatureId") - .HasColumnType("bigint"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("FeatureId"); - - b.ToTable("Bug"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.DeviceDeclaration", b => - { - b.Property("DeviceId") - .HasColumnType("text"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasColumnType("timestamp with time zone") - .HasDefaultValueSql("LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("LatestActivityUpdate") - .HasColumnType("timestamp with time zone"); - - b.Property("Model") - .IsRequired() - .HasColumnType("text"); - - b.Property("Platform") - .IsRequired() - .HasColumnType("text"); - - b.Property("Version") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("DeviceId"); - - b.HasIndex("DeviceOwnerId"); - - b.ToTable("DeviceDeclaration"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Depth") - .HasColumnType("numeric"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("Height") - .HasColumnType("numeric"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Price") - .HasColumnType("numeric"); - - b.Property("Public") - .HasColumnType("boolean"); - - b.Property("Weight") - .HasColumnType("numeric"); - - b.Property("Width") - .HasColumnType("numeric"); - - b.HasKey("Id"); - - b.ToTable("Products"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ContextId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Public") - .HasColumnType("boolean"); - - b.HasKey("Id"); - - b.HasIndex("ContextId"); - - b.ToTable("Services"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("For") - .HasColumnType("smallint"); - - b.Property("Message") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Sender") - .IsRequired() - .HasColumnType("text"); - - b.Property("Topic") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.ToTable("Announce"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DismissClicked", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("NotificationId") - .HasColumnType("bigint"); - - b.HasKey("UserId", "NotificationId"); - - b.HasIndex("NotificationId"); - - b.ToTable("DismissClicked"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("character varying(255)"); - - b.HasKey("Id"); - - b.ToTable("Instrument"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.InstrumentRating", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("InstrumentId") - .HasColumnType("bigint"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.HasAlternateKey("InstrumentId", "OwnerId"); - - b.HasIndex("OwnerId"); - - b.ToTable("InstrumentRating"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId") - .HasColumnType("text"); - - b.Property("DjSettingsUserId") - .HasColumnType("text"); - - b.Property("GeneralSettingsUserId") - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.Property("TendencyId") - .HasColumnType("bigint"); - - b.HasKey("OwnerProfileId"); - - b.HasIndex("DjSettingsUserId"); - - b.HasIndex("GeneralSettingsUserId"); - - b.ToTable("MusicalPreference"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("character varying(255)"); - - b.HasKey("Id"); - - b.ToTable("MusicalTendency"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("SoundCloudId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("DjSettings"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("GeneralSettings"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId") - .HasColumnType("bigint"); - - b.Property("UserId") - .HasColumnType("text"); - - b.HasKey("InstrumentId", "UserId"); - - b.HasIndex("UserId"); - - b.ToTable("Instrumentation"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Property("CreationToken") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("ExecutorId") - .IsRequired() - .HasColumnType("text"); - - b.Property("OrderReference") - .IsRequired() - .HasColumnType("text"); - - b.Property("PaypalPayerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("State") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("CreationToken"); - - b.HasIndex("ExecutorId"); - - b.ToTable("PayPalPayment"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ApplicationUserId") - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Public") - .HasColumnType("boolean"); - - b.HasKey("Id"); - - b.HasIndex("ApplicationUserId"); - - b.ToTable("Circle"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId") - .HasColumnType("text"); - - b.Property("CircleId") - .HasColumnType("bigint"); - - b.HasKey("MemberId", "CircleId"); - - b.HasIndex("CircleId"); - - b.ToTable("CircleMembers"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId") - .HasColumnType("text"); - - b.Property("UserId") - .HasColumnType("text"); - - b.Property("AddressId") - .HasColumnType("bigint"); - - b.Property("ApplicationUserId") - .HasColumnType("text"); - - b.Property("EMail") - .IsRequired() - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("OwnerId", "UserId"); - - b.HasIndex("AddressId"); - - b.HasIndex("ApplicationUserId"); - - b.ToTable("Contact"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.Property("HRef") - .HasColumnType("text"); - - b.Property("Method") - .HasColumnType("text"); - - b.Property("BrusherProfileUserId") - .HasColumnType("text"); - - b.Property("ContentType") - .IsRequired() - .HasColumnType("text"); - - b.Property("PayPalPaymentCreationToken") - .HasColumnType("text"); - - b.Property("Rel") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("HRef", "Method"); - - b.HasIndex("BrusherProfileUserId"); - - b.HasIndex("PayPalPaymentCreationToken"); - - b.ToTable("HyperLink"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Address") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("Latitude") - .HasColumnType("double precision"); - - b.Property("Longitude") - .HasColumnType("double precision"); - - b.HasKey("Id"); - - b.ToTable("Locations"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostalAddress", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("City") - .IsRequired() - .HasColumnType("text"); - - b.Property("Country") - .IsRequired() - .HasColumnType("text"); - - b.Property("PostalCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("Province") - .IsRequired() - .HasColumnType("text"); - - b.Property("State") - .IsRequired() - .HasColumnType("text"); - - b.Property("Street1") - .IsRequired() - .HasColumnType("text"); - - b.Property("Street2") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("PostalAddress"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("Tags"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("SiteSkills"); - }); - - modelBuilder.Entity("Yavsc.Models.Streaming.LiveFlow", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("DifferedFileName") - .IsRequired() - .HasColumnType("text"); - - b.Property("MediaType") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Pitch") - .IsRequired() - .HasColumnType("text"); - - b.Property("SequenceNumber") - .HasColumnType("integer"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.ToTable("LiveFlow"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("Hidden") - .HasColumnType("boolean"); - - b.Property("ModeratorGroupName") - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("ParentCode") - .HasColumnType("text"); - - b.Property("Photo") - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.Property("SettingsClassName") - .HasColumnType("text"); - - b.Property("UserCreated") - .HasColumnType("text"); - - b.Property("UserModified") - .HasColumnType("text"); - - b.HasKey("Code"); - - b.HasIndex("ParentCode"); - - b.ToTable("Activities"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("FormationSettingsUserId") - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("WorkingForId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("FormationSettingsUserId"); - - b.HasIndex("PerformerId"); - - b.HasIndex("WorkingForId"); - - b.ToTable("CoWorking"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ActionName") - .IsRequired() - .HasColumnType("text"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.ToTable("CommandForm"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId") - .HasColumnType("text"); - - b.Property("AcceptNotifications") - .HasColumnType("boolean"); - - b.Property("AcceptPublicContact") - .HasColumnType("boolean"); - - b.Property("Active") - .HasColumnType("boolean"); - - b.Property("MaxDailyCost") - .HasColumnType("integer"); - - b.Property("MinDailyCost") - .HasColumnType("integer"); - - b.Property("OrganizationAddressId") - .HasColumnType("bigint"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.Property("SIREN") - .IsRequired() - .HasColumnType("text"); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients") - .HasColumnType("boolean"); - - b.Property("WebSite") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("PerformerId"); - - b.HasIndex("OrganizationAddressId"); - - b.ToTable("Performers"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("DisplayName") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("FormationSettings"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Accepted") - .HasColumnType("boolean"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Decided") - .HasColumnType("boolean"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("EventDate") - .HasColumnType("timestamp with time zone"); - - b.Property("LocationId") - .HasColumnType("bigint"); - - b.Property("LocationType") - .HasColumnType("integer"); - - b.Property("PaymentId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("Reason") - .IsRequired() - .HasColumnType("text"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("LocationId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.ToTable("RdvQueries"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode") - .HasColumnType("text"); - - b.Property("UserId") - .HasColumnType("text"); - - b.Property("Weight") - .HasColumnType("integer"); - - b.HasKey("DoesCode", "UserId"); - - b.HasIndex("UserId"); - - b.ToTable("UserActivities"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Calendar.Period", b => - { - b.Property("Start") - .HasColumnType("timestamp with time zone"); - - b.Property("End") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Start", "End"); - - b.ToTable("Period"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.EMailing.MailingTemplate", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("Body") - .IsRequired() - .HasMaxLength(65536) - .HasColumnType("character varying(65536)"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("ReplyToAddress") - .IsRequired() - .HasColumnType("text"); - - b.Property("ToSend") - .HasColumnType("integer"); - - b.Property("Topic") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("MailingTemplate"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Accepted") - .HasColumnType("boolean"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Decided") - .HasColumnType("boolean"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("GitId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PaymentId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.Property("Version") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("GitId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.ToTable("Project"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("ProjectId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("ProjectId"); - - b.ToTable("ProjectBuildConfiguration"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Branch") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Path") - .IsRequired() - .HasColumnType("text"); - - b.Property("Url") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.ToTable("GitRepositoryReference"); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null) - .WithMany() - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null) - .WithMany() - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "TargetUser") - .WithMany() - .HasForeignKey("TargetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TargetUser"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany("BlackList") - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost", "Target") - .WithMany("ACL") - .HasForeignKey("BlogPostId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Circle", "Allowed") - .WithMany() - .HasForeignKey("CircleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Allowed"); - - b.Navigation("Target"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithOne("AccountBalance") - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Relationship.Location", "PostalAddress") - .WithMany() - .HasForeignKey("PostalAddressId"); - - b.Navigation("PostalAddress"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance", "Balance") - .WithMany() - .HasForeignKey("BalanceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Balance"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany("BankInfo") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate", null) - .WithMany("Bill") - .HasForeignKey("EstimateId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate", null) - .WithMany("Bill") - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery", "Query") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Owner"); - - b.Navigation("Query"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Author") - .WithMany("Posts") - .HasForeignKey("AuthorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Author"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost", "Post") - .WithMany("Tags") - .HasForeignKey("PostId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Tag", "Tag") - .WithMany() - .HasForeignKey("TagId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Post"); - - b.Navigation("Tag"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Author") - .WithMany() - .HasForeignKey("AuthorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Blog.Comment", "Parent") - .WithMany("Children") - .HasForeignKey("ParentId"); - - b.HasOne("Yavsc.Models.Blog.BlogPost", "Post") - .WithMany("Comments") - .HasForeignKey("ReceiverId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Author"); - - b.Navigation("Parent"); - - b.Navigation("Post"); - }); - - modelBuilder.Entity("Yavsc.Models.BlogSpotPublication", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost", "BlogPost") - .WithMany() - .HasForeignKey("BlogpostId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("BlogPost"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule", null) - .WithMany("Events") - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Server.Models.Calendar.Period", "Period") - .WithMany() - .HasForeignKey("PeriodStart", "PeriodEnd") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Period"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany("Connections") - .HasForeignKey("ApplicationUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany("Rooms") - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomAccess", b => - { - b.HasOne("Yavsc.Models.Chat.ChatRoom", "Room") - .WithMany("Moderation") - .HasForeignKey("ChannelName") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany("RoomAccess") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Room"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule", "Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "BaseProfile") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("BaseProfile"); - - b.Navigation("Schedule"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Location", "Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation", "Prestation") - .WithMany() - .HasForeignKey("PrestationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.BrusherProfile", "SelectedProfile") - .WithMany() - .HasForeignKey("SelectedProfileUserId"); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("Location"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Prestation"); - - b.Navigation("Regularisation"); - - b.Navigation("SelectedProfile"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Location", "Location") - .WithMany() - .HasForeignKey("LocationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("Location"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Regularisation"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation", "Prestation") - .WithMany() - .HasForeignKey("PrestationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery", "Query") - .WithMany("Prestations") - .HasForeignKey("QueryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Prestation"); - - b.Navigation("Query"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color", "Color") - .WithMany() - .HasForeignKey("ColorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Color"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation", "Prestation") - .WithMany("Taints") - .HasForeignKey("PrestationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.HairTaint", "Taint") - .WithMany() - .HasForeignKey("TaintId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Prestation"); - - b.Navigation("Taint"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.HasOne("Yavsc.Models.IT.Evolution.Feature", "False") - .WithMany() - .HasForeignKey("FeatureId"); - - b.Navigation("False"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.DeviceDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "DeviceOwner") - .WithMany("DeviceDeclaration") - .HasForeignKey("DeviceOwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("DeviceOwner"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany("Services") - .HasForeignKey("ContextId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Context"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DismissClicked", b => - { - b.HasOne("Yavsc.Abstract.Models.Messaging.Notification", "Notified") - .WithMany() - .HasForeignKey("NotificationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Notified"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.InstrumentRating", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument", "Instrument") - .WithMany() - .HasForeignKey("InstrumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "Profile") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Instrument"); - - b.Navigation("Profile"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings", null) - .WithMany("SoundColor") - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings", null) - .WithMany("SoundColor") - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument", "Tool") - .WithMany() - .HasForeignKey("InstrumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tool"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Executor") - .WithMany() - .HasForeignKey("ExecutorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Executor"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany("Circles") - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle", "Circle") - .WithMany("Members") - .HasForeignKey("CircleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Member") - .WithMany("Membership") - .HasForeignKey("MemberId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Circle"); - - b.Navigation("Member"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.Relationship.PostalAddress", "PostalAddress") - .WithMany() - .HasForeignKey("AddressId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany("Book") - .HasForeignKey("ApplicationUserId"); - - b.Navigation("PostalAddress"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.HasOne("Yavsc.Models.Haircut.BrusherProfile", null) - .WithMany("Links") - .HasForeignKey("BrusherProfileUserId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", null) - .WithMany("Links") - .HasForeignKey("PayPalPaymentCreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Streaming.LiveFlow", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Parent") - .WithMany("Children") - .HasForeignKey("ParentCode"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings", null) - .WithMany("CoWorking") - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "Performer") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "WorkingFor") - .WithMany() - .HasForeignKey("WorkingForId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Performer"); - - b.Navigation("WorkingFor"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany("Forms") - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Context"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location", "OrganizationAddress") - .WithMany() - .HasForeignKey("OrganizationAddressId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Performer") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("OrganizationAddress"); - - b.Navigation("Performer"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Location", "Location") - .WithMany() - .HasForeignKey("LocationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("Location"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Regularisation"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Does") - .WithMany() - .HasForeignKey("DoesCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "User") - .WithMany("Activity") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Does"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", "Repository") - .WithMany() - .HasForeignKey("GitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Regularisation"); - - b.Navigation("Repository"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.HasOne("Yavsc.Server.Models.IT.Project", "TargetProject") - .WithMany("Configurations") - .HasForeignKey("ProjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TargetProject"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Navigation("AccountBalance") - .IsRequired(); - - b.Navigation("BankInfo"); - - b.Navigation("BlackList"); - - b.Navigation("Book"); - - b.Navigation("Circles"); - - b.Navigation("Connections"); - - b.Navigation("DeviceDeclaration"); - - b.Navigation("Membership"); - - b.Navigation("Posts"); - - b.Navigation("RoomAccess"); - - b.Navigation("Rooms"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Navigation("Bill"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Navigation("Bill"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.Navigation("ACL"); - - b.Navigation("Comments"); - - b.Navigation("Tags"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.Navigation("Children"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Navigation("Events"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.Navigation("Moderation"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Navigation("Links"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Navigation("Prestations"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Navigation("Taints"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Navigation("SoundColor"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Navigation("SoundColor"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Navigation("Links"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Navigation("Members"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Navigation("Children"); - - b.Navigation("Forms"); - - b.Navigation("Services"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Navigation("Activity"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Navigation("CoWorking"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.Navigation("Configurations"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/Yavsc.Server/Migrations/20250629175034_blogPub2.cs b/src/Yavsc.Server/Migrations/20250629175034_blogPub2.cs deleted file mode 100644 index 9090de6d..00000000 --- a/src/Yavsc.Server/Migrations/20250629175034_blogPub2.cs +++ /dev/null @@ -1,22 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace Yavsc.Migrations -{ - /// - public partial class blogPub2 : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - - } - } -} diff --git a/src/Yavsc.Server/Migrations/20250705112955_commentAllowed.Designer.cs b/src/Yavsc.Server/Migrations/20250705112955_commentAllowed.Designer.cs deleted file mode 100644 index c97a136d..00000000 --- a/src/Yavsc.Server/Migrations/20250705112955_commentAllowed.Designer.cs +++ /dev/null @@ -1,3519 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; -using Yavsc.Models; - -#nullable disable - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20250705112955_commentAllowed")] - partial class commentAllowed - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "9.0.6") - .HasAnnotation("Relational:MaxIdentifierLength", 63); - - NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasColumnType("text"); - - b.Property("Name") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("NormalizedName") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .IsUnique() - .HasDatabaseName("RoleNameIndex"); - - b.ToTable("AspNetRoles", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ClaimType") - .HasColumnType("text"); - - b.Property("ClaimValue") - .HasColumnType("text"); - - b.Property("RoleId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("RoleId"); - - b.ToTable("AspNetRoleClaims", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ClaimType") - .HasColumnType("text"); - - b.Property("ClaimValue") - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.ToTable("AspNetUserClaims", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => - { - b.Property("LoginProvider") - .HasColumnType("text"); - - b.Property("ProviderKey") - .HasColumnType("text"); - - b.Property("ProviderDisplayName") - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasIndex("UserId"); - - b.ToTable("AspNetUserLogins", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("RoleId") - .HasColumnType("text"); - - b.HasKey("UserId", "RoleId"); - - b.HasIndex("RoleId"); - - b.ToTable("AspNetUserRoles", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("LoginProvider") - .HasColumnType("text"); - - b.Property("Name") - .HasColumnType("text"); - - b.Property("Value") - .HasColumnType("text"); - - b.HasKey("UserId", "LoginProvider", "Name"); - - b.ToTable("AspNetUserTokens", (string)null); - }); - - modelBuilder.Entity("Yavsc.Abstract.Identity.ClientProviderInfo", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("Avatar") - .IsRequired() - .HasColumnType("text"); - - b.Property("BillingAddressId") - .HasColumnType("bigint"); - - b.Property("EMail") - .IsRequired() - .HasColumnType("text"); - - b.Property("Phone") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserName") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("ClientProviderInfo"); - }); - - modelBuilder.Entity("Yavsc.Abstract.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Target") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("body") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("click_action") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("color") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("icon") - .ValueGeneratedOnAdd() - .HasMaxLength(512) - .HasColumnType("character varying(512)") - .HasDefaultValue("exclam"); - - b.Property("sound") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("tag") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("title") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("character varying(1024)"); - - b.HasKey("Id"); - - b.ToTable("Notification"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Reason") - .IsRequired() - .HasColumnType("text"); - - b.Property("TargetId") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("TargetId"); - - b.ToTable("Ban"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.HasIndex("UserId"); - - b.ToTable("BlackListed"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId") - .HasColumnType("bigint"); - - b.Property("BlogPostId") - .HasColumnType("bigint"); - - b.Property("Comment") - .HasColumnType("boolean"); - - b.HasKey("CircleId", "BlogPostId"); - - b.HasIndex("BlogPostId"); - - b.ToTable("CircleAuthorizationToBlogPost"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("ContactCredits") - .HasColumnType("bigint"); - - b.Property("Credits") - .HasColumnType("numeric"); - - b.HasKey("UserId"); - - b.ToTable("BankStatus"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("AccessFailedCount") - .HasColumnType("integer"); - - b.Property("AllowMonthlyEmail") - .HasColumnType("boolean"); - - b.Property("Avatar") - .ValueGeneratedOnAdd() - .HasMaxLength(512) - .HasColumnType("character varying(512)") - .HasDefaultValue("/images/Users/icon_user.png"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasColumnType("text"); - - b.Property("DedicatedGoogleCalendar") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("DiskQuota") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasDefaultValue(524288000L); - - b.Property("DiskUsage") - .HasColumnType("bigint"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("EmailConfirmed") - .HasColumnType("boolean"); - - b.Property("FullName") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("LockoutEnabled") - .HasColumnType("boolean"); - - b.Property("LockoutEnd") - .HasColumnType("timestamp with time zone"); - - b.Property("MaxFileSize") - .HasColumnType("bigint"); - - b.Property("NormalizedEmail") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("NormalizedUserName") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("PasswordHash") - .HasColumnType("text"); - - b.Property("PhoneNumber") - .HasColumnType("text"); - - b.Property("PhoneNumberConfirmed") - .HasColumnType("boolean"); - - b.Property("PostalAddressId") - .HasColumnType("bigint"); - - b.Property("SecurityStamp") - .HasColumnType("text"); - - b.Property("TwoFactorEnabled") - .HasColumnType("boolean"); - - b.Property("UserName") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.HasKey("Id"); - - b.HasAlternateKey("Email"); - - b.HasIndex("NormalizedEmail") - .HasDatabaseName("EmailIndex"); - - b.HasIndex("NormalizedUserName") - .IsUnique() - .HasDatabaseName("UserNameIndex"); - - b.HasIndex("PostalAddressId"); - - b.ToTable("AspNetUsers", (string)null); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("text"); - - b.Property("AccessTokenLifetime") - .HasColumnType("integer"); - - b.Property("Active") - .HasColumnType("boolean"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("character varying(128)"); - - b.Property("LogoutRedirectUri") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("RedirectUri") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("RefreshTokenLifeTime") - .HasColumnType("integer"); - - b.Property("Secret") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("Type") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("Applications"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.OAuth2Tokens", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("AccessToken") - .IsRequired() - .HasColumnType("text"); - - b.Property("Expiration") - .HasColumnType("timestamp with time zone"); - - b.Property("ExpiresIn") - .IsRequired() - .HasColumnType("text"); - - b.Property("RefreshToken") - .IsRequired() - .HasColumnType("text"); - - b.Property("TokenType") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("OAuth2Tokens"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("character varying(50)"); - - b.Property("ExpiresUtc") - .HasColumnType("timestamp with time zone"); - - b.Property("IssuedUtc") - .HasColumnType("timestamp with time zone"); - - b.Property("ProtectedTicket") - .IsRequired() - .HasColumnType("text"); - - b.Property("Subject") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("character varying(50)"); - - b.HasKey("Id"); - - b.ToTable("RefreshTokens"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Scope", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("character varying(1024)"); - - b.HasKey("Id"); - - b.ToTable("Scopes"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("BalanceId") - .IsRequired() - .HasColumnType("text"); - - b.Property("ExecDate") - .HasColumnType("timestamp with time zone"); - - b.Property("Impact") - .HasColumnType("numeric"); - - b.Property("Reason") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("BalanceId"); - - b.ToTable("BankBook"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AccountNumber") - .IsRequired() - .HasColumnType("text"); - - b.Property("BIC") - .IsRequired() - .HasColumnType("text"); - - b.Property("BankCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("BankedKey") - .HasColumnType("integer"); - - b.Property("IBAN") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.Property("WicketCode") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.ToTable("BankIdentity"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Count") - .HasColumnType("integer"); - - b.Property("Currency") - .IsRequired() - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("EstimateId") - .HasColumnType("bigint"); - - b.Property("EstimateTemplateId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("UnitaryCost") - .HasColumnType("numeric"); - - b.HasKey("Id"); - - b.HasIndex("EstimateId"); - - b.HasIndex("EstimateTemplateId"); - - b.ToTable("CommandLine"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AttachedFilesString") - .IsRequired() - .HasColumnType("text"); - - b.Property("AttachedGraphicsString") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientValidationDate") - .HasColumnType("timestamp with time zone"); - - b.Property("CommandId") - .HasColumnType("bigint"); - - b.Property("CommandType") - .IsRequired() - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("ProviderValidationDate") - .HasColumnType("timestamp with time zone"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ClientId"); - - b.HasIndex("CommandId"); - - b.HasIndex("OwnerId"); - - b.ToTable("Estimates"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("EstimateTemplates"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN") - .HasColumnType("text"); - - b.HasKey("SIREN"); - - b.ToTable("ExceptionsSIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AuthorId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Content") - .HasMaxLength(56224) - .HasColumnType("character varying(56224)"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Photo") - .HasMaxLength(1024) - .HasColumnType("character varying(1024)"); - - b.Property("Publish") - .HasColumnType("boolean"); - - b.Property("Title") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("character varying(1024)"); - - b.Property("UserCreated") - .HasColumnType("text"); - - b.Property("UserModified") - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("AuthorId"); - - b.ToTable("BlogSpot"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.Property("PostId") - .HasColumnType("bigint"); - - b.Property("TagId") - .HasColumnType("bigint"); - - b.HasKey("PostId", "TagId"); - - b.HasIndex("TagId"); - - b.ToTable("BlogTag"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AuthorId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Content") - .IsRequired() - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("ParentId") - .HasColumnType("bigint"); - - b.Property("ReceiverId") - .HasColumnType("bigint"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("Visible") - .HasColumnType("boolean"); - - b.HasKey("Id"); - - b.HasIndex("AuthorId"); - - b.HasIndex("ParentId"); - - b.HasIndex("ReceiverId"); - - b.ToTable("Comment"); - }); - - modelBuilder.Entity("Yavsc.Models.BlogSpotPublication", b => - { - b.Property("BlogpostId") - .HasColumnType("bigint"); - - b.HasKey("BlogpostId"); - - b.ToTable("blogSpotPublications"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Property("OwnerId") - .HasColumnType("text"); - - b.HasKey("OwnerId"); - - b.ToTable("Schedule"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("PeriodEnd") - .HasColumnType("timestamp with time zone"); - - b.Property("PeriodStart") - .HasColumnType("timestamp with time zone"); - - b.Property("Reccurence") - .HasColumnType("integer"); - - b.Property("ScheduleOwnerId") - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ScheduleOwnerId"); - - b.HasIndex("PeriodStart", "PeriodEnd"); - - b.ToTable("ScheduledEvent"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.Property("ConnectionId") - .HasColumnType("text"); - - b.Property("ApplicationUserId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Connected") - .HasColumnType("boolean"); - - b.Property("UserAgent") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("ConnectionId"); - - b.HasIndex("ApplicationUserId"); - - b.ToTable("ChatConnection"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.Property("Name") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("LatestJoinPart") - .HasColumnType("timestamp with time zone"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Topic") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Name"); - - b.HasIndex("OwnerId"); - - b.ToTable("ChatRoom"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomAccess", b => - { - b.Property("ChannelName") - .HasColumnType("text"); - - b.Property("UserId") - .HasColumnType("text"); - - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Level") - .HasColumnType("integer"); - - b.HasKey("ChannelName", "UserId"); - - b.HasIndex("UserId"); - - b.ToTable("ChatRoomAccess"); - }); - - modelBuilder.Entity("Yavsc.Models.Cratie.Option", b => - { - b.Property("Code") - .HasColumnType("text"); - - b.Property("CodeScrutin") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Code", "CodeScrutin"); - - b.ToTable("Option"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Blue") - .HasColumnType("smallint"); - - b.Property("Green") - .HasColumnType("smallint"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Red") - .HasColumnType("smallint"); - - b.HasKey("Id"); - - b.ToTable("Color"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("Summary") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("Form"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("ActionDistance") - .HasColumnType("integer"); - - b.Property("CarePrice") - .HasColumnType("numeric"); - - b.Property("FlatFeeDiscount") - .HasColumnType("numeric"); - - b.Property("HalfBalayagePrice") - .HasColumnType("numeric"); - - b.Property("HalfBrushingPrice") - .HasColumnType("numeric"); - - b.Property("HalfColorPrice") - .HasColumnType("numeric"); - - b.Property("HalfDefrisPrice") - .HasColumnType("numeric"); - - b.Property("HalfFoldingPrice") - .HasColumnType("numeric"); - - b.Property("HalfMechPrice") - .HasColumnType("numeric"); - - b.Property("HalfMultiColorPrice") - .HasColumnType("numeric"); - - b.Property("HalfPermanentPrice") - .HasColumnType("numeric"); - - b.Property("KidCutPrice") - .HasColumnType("numeric"); - - b.Property("LongBalayagePrice") - .HasColumnType("numeric"); - - b.Property("LongBrushingPrice") - .HasColumnType("numeric"); - - b.Property("LongColorPrice") - .HasColumnType("numeric"); - - b.Property("LongDefrisPrice") - .HasColumnType("numeric"); - - b.Property("LongFoldingPrice") - .HasColumnType("numeric"); - - b.Property("LongMechPrice") - .HasColumnType("numeric"); - - b.Property("LongMultiColorPrice") - .HasColumnType("numeric"); - - b.Property("LongPermanentPrice") - .HasColumnType("numeric"); - - b.Property("ManBrushPrice") - .HasColumnType("numeric"); - - b.Property("ManCutPrice") - .HasColumnType("numeric"); - - b.Property("ScheduleOwnerId") - .HasColumnType("text"); - - b.Property("ShampooPrice") - .HasColumnType("numeric"); - - b.Property("ShortBalayagePrice") - .HasColumnType("numeric"); - - b.Property("ShortBrushingPrice") - .HasColumnType("numeric"); - - b.Property("ShortColorPrice") - .HasColumnType("numeric"); - - b.Property("ShortDefrisPrice") - .HasColumnType("numeric"); - - b.Property("ShortFoldingPrice") - .HasColumnType("numeric"); - - b.Property("ShortMechPrice") - .HasColumnType("numeric"); - - b.Property("ShortMultiColorPrice") - .HasColumnType("numeric"); - - b.Property("ShortPermanentPrice") - .HasColumnType("numeric"); - - b.Property("WomenHalfCutPrice") - .HasColumnType("numeric"); - - b.Property("WomenLongCutPrice") - .HasColumnType("numeric"); - - b.Property("WomenShortCutPrice") - .HasColumnType("numeric"); - - b.HasKey("UserId"); - - b.HasIndex("ScheduleOwnerId"); - - b.ToTable("BrusherProfile"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Accepted") - .HasColumnType("boolean"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("AdditionalInfo") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Decided") - .HasColumnType("boolean"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("EventDate") - .HasColumnType("timestamp with time zone"); - - b.Property("LocationId") - .HasColumnType("bigint"); - - b.Property("PaymentId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PrestationId") - .HasColumnType("bigint"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("SelectedProfileUserId") - .HasColumnType("text"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("LocationId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.HasIndex("PrestationId"); - - b.HasIndex("SelectedProfileUserId"); - - b.ToTable("HairCutQueries"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Accepted") - .HasColumnType("boolean"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Decided") - .HasColumnType("boolean"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("EventDate") - .HasColumnType("timestamp with time zone"); - - b.Property("LocationId") - .HasColumnType("bigint"); - - b.Property("PaymentId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("LocationId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.ToTable("HairMultiCutQueries"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Cares") - .HasColumnType("boolean"); - - b.Property("Cut") - .HasColumnType("boolean"); - - b.Property("Dressing") - .HasColumnType("integer"); - - b.Property("Gender") - .HasColumnType("integer"); - - b.Property("Length") - .HasColumnType("integer"); - - b.Property("Shampoo") - .HasColumnType("boolean"); - - b.Property("Tech") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("HairPrestation"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("PrestationId") - .HasColumnType("bigint"); - - b.Property("QueryId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("PrestationId"); - - b.HasIndex("QueryId"); - - b.ToTable("HairPrestationCollectionItem"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Brand") - .IsRequired() - .HasColumnType("text"); - - b.Property("ColorId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("ColorId"); - - b.ToTable("HairTaint"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.Property("TaintId") - .HasColumnType("bigint"); - - b.Property("PrestationId") - .HasColumnType("bigint"); - - b.HasKey("TaintId", "PrestationId"); - - b.HasIndex("PrestationId"); - - b.ToTable("HairTaintInstance"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Evolution.Feature", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("ShortName") - .IsRequired() - .HasColumnType("text"); - - b.Property("Status") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("Feature"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("FeatureId") - .HasColumnType("bigint"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("FeatureId"); - - b.ToTable("Bug"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.DeviceDeclaration", b => - { - b.Property("DeviceId") - .HasColumnType("text"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasColumnType("timestamp with time zone") - .HasDefaultValueSql("LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("LatestActivityUpdate") - .HasColumnType("timestamp with time zone"); - - b.Property("Model") - .IsRequired() - .HasColumnType("text"); - - b.Property("Platform") - .IsRequired() - .HasColumnType("text"); - - b.Property("Version") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("DeviceId"); - - b.HasIndex("DeviceOwnerId"); - - b.ToTable("DeviceDeclaration"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Depth") - .HasColumnType("numeric"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("Height") - .HasColumnType("numeric"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Price") - .HasColumnType("numeric"); - - b.Property("Public") - .HasColumnType("boolean"); - - b.Property("Weight") - .HasColumnType("numeric"); - - b.Property("Width") - .HasColumnType("numeric"); - - b.HasKey("Id"); - - b.ToTable("Products"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ContextId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Public") - .HasColumnType("boolean"); - - b.HasKey("Id"); - - b.HasIndex("ContextId"); - - b.ToTable("Services"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("For") - .HasColumnType("smallint"); - - b.Property("Message") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Sender") - .IsRequired() - .HasColumnType("text"); - - b.Property("Topic") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.ToTable("Announce"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DismissClicked", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("NotificationId") - .HasColumnType("bigint"); - - b.HasKey("UserId", "NotificationId"); - - b.HasIndex("NotificationId"); - - b.ToTable("DismissClicked"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("character varying(255)"); - - b.HasKey("Id"); - - b.ToTable("Instrument"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.InstrumentRating", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("InstrumentId") - .HasColumnType("bigint"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.HasAlternateKey("InstrumentId", "OwnerId"); - - b.HasIndex("OwnerId"); - - b.ToTable("InstrumentRating"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId") - .HasColumnType("text"); - - b.Property("DjSettingsUserId") - .HasColumnType("text"); - - b.Property("GeneralSettingsUserId") - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.Property("TendencyId") - .HasColumnType("bigint"); - - b.HasKey("OwnerProfileId"); - - b.HasIndex("DjSettingsUserId"); - - b.HasIndex("GeneralSettingsUserId"); - - b.ToTable("MusicalPreference"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("character varying(255)"); - - b.HasKey("Id"); - - b.ToTable("MusicalTendency"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("SoundCloudId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("DjSettings"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("GeneralSettings"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId") - .HasColumnType("bigint"); - - b.Property("UserId") - .HasColumnType("text"); - - b.HasKey("InstrumentId", "UserId"); - - b.HasIndex("UserId"); - - b.ToTable("Instrumentation"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Property("CreationToken") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("ExecutorId") - .IsRequired() - .HasColumnType("text"); - - b.Property("OrderReference") - .IsRequired() - .HasColumnType("text"); - - b.Property("PaypalPayerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("State") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("CreationToken"); - - b.HasIndex("ExecutorId"); - - b.ToTable("PayPalPayment"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ApplicationUserId") - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Public") - .HasColumnType("boolean"); - - b.HasKey("Id"); - - b.HasIndex("ApplicationUserId"); - - b.ToTable("Circle"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId") - .HasColumnType("text"); - - b.Property("CircleId") - .HasColumnType("bigint"); - - b.HasKey("MemberId", "CircleId"); - - b.HasIndex("CircleId"); - - b.ToTable("CircleMembers"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId") - .HasColumnType("text"); - - b.Property("UserId") - .HasColumnType("text"); - - b.Property("AddressId") - .HasColumnType("bigint"); - - b.Property("ApplicationUserId") - .HasColumnType("text"); - - b.Property("EMail") - .IsRequired() - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("OwnerId", "UserId"); - - b.HasIndex("AddressId"); - - b.HasIndex("ApplicationUserId"); - - b.ToTable("Contact"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.Property("HRef") - .HasColumnType("text"); - - b.Property("Method") - .HasColumnType("text"); - - b.Property("BrusherProfileUserId") - .HasColumnType("text"); - - b.Property("ContentType") - .IsRequired() - .HasColumnType("text"); - - b.Property("PayPalPaymentCreationToken") - .HasColumnType("text"); - - b.Property("Rel") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("HRef", "Method"); - - b.HasIndex("BrusherProfileUserId"); - - b.HasIndex("PayPalPaymentCreationToken"); - - b.ToTable("HyperLink"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Address") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("Latitude") - .HasColumnType("double precision"); - - b.Property("Longitude") - .HasColumnType("double precision"); - - b.HasKey("Id"); - - b.ToTable("Locations"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostalAddress", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("City") - .IsRequired() - .HasColumnType("text"); - - b.Property("Country") - .IsRequired() - .HasColumnType("text"); - - b.Property("PostalCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("Province") - .IsRequired() - .HasColumnType("text"); - - b.Property("State") - .IsRequired() - .HasColumnType("text"); - - b.Property("Street1") - .IsRequired() - .HasColumnType("text"); - - b.Property("Street2") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("PostalAddress"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("Tags"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("SiteSkills"); - }); - - modelBuilder.Entity("Yavsc.Models.Streaming.LiveFlow", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("DifferedFileName") - .IsRequired() - .HasColumnType("text"); - - b.Property("MediaType") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Pitch") - .IsRequired() - .HasColumnType("text"); - - b.Property("SequenceNumber") - .HasColumnType("integer"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.ToTable("LiveFlow"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("Hidden") - .HasColumnType("boolean"); - - b.Property("ModeratorGroupName") - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("ParentCode") - .HasColumnType("text"); - - b.Property("Photo") - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.Property("SettingsClassName") - .HasColumnType("text"); - - b.Property("UserCreated") - .HasColumnType("text"); - - b.Property("UserModified") - .HasColumnType("text"); - - b.HasKey("Code"); - - b.HasIndex("ParentCode"); - - b.ToTable("Activities"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("FormationSettingsUserId") - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("WorkingForId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("FormationSettingsUserId"); - - b.HasIndex("PerformerId"); - - b.HasIndex("WorkingForId"); - - b.ToTable("CoWorking"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ActionName") - .IsRequired() - .HasColumnType("text"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.ToTable("CommandForm"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId") - .HasColumnType("text"); - - b.Property("AcceptNotifications") - .HasColumnType("boolean"); - - b.Property("AcceptPublicContact") - .HasColumnType("boolean"); - - b.Property("Active") - .HasColumnType("boolean"); - - b.Property("MaxDailyCost") - .HasColumnType("integer"); - - b.Property("MinDailyCost") - .HasColumnType("integer"); - - b.Property("OrganizationAddressId") - .HasColumnType("bigint"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.Property("SIREN") - .IsRequired() - .HasColumnType("text"); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients") - .HasColumnType("boolean"); - - b.Property("WebSite") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("PerformerId"); - - b.HasIndex("OrganizationAddressId"); - - b.ToTable("Performers"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("DisplayName") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("FormationSettings"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Accepted") - .HasColumnType("boolean"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Decided") - .HasColumnType("boolean"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("EventDate") - .HasColumnType("timestamp with time zone"); - - b.Property("LocationId") - .HasColumnType("bigint"); - - b.Property("LocationType") - .HasColumnType("integer"); - - b.Property("PaymentId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("Reason") - .IsRequired() - .HasColumnType("text"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("LocationId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.ToTable("RdvQueries"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode") - .HasColumnType("text"); - - b.Property("UserId") - .HasColumnType("text"); - - b.Property("Weight") - .HasColumnType("integer"); - - b.HasKey("DoesCode", "UserId"); - - b.HasIndex("UserId"); - - b.ToTable("UserActivities"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Calendar.Period", b => - { - b.Property("Start") - .HasColumnType("timestamp with time zone"); - - b.Property("End") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Start", "End"); - - b.ToTable("Period"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.EMailing.MailingTemplate", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("Body") - .IsRequired() - .HasMaxLength(65536) - .HasColumnType("character varying(65536)"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("ReplyToAddress") - .IsRequired() - .HasColumnType("text"); - - b.Property("ToSend") - .HasColumnType("integer"); - - b.Property("Topic") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("MailingTemplate"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Accepted") - .HasColumnType("boolean"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Decided") - .HasColumnType("boolean"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("GitId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PaymentId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.Property("Version") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("GitId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.ToTable("Project"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("ProjectId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("ProjectId"); - - b.ToTable("ProjectBuildConfiguration"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Branch") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Path") - .IsRequired() - .HasColumnType("text"); - - b.Property("Url") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.ToTable("GitRepositoryReference"); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null) - .WithMany() - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null) - .WithMany() - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "TargetUser") - .WithMany() - .HasForeignKey("TargetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TargetUser"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany("BlackList") - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost", "Target") - .WithMany("ACL") - .HasForeignKey("BlogPostId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Circle", "Allowed") - .WithMany() - .HasForeignKey("CircleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Allowed"); - - b.Navigation("Target"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithOne("AccountBalance") - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Relationship.Location", "PostalAddress") - .WithMany() - .HasForeignKey("PostalAddressId"); - - b.Navigation("PostalAddress"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance", "Balance") - .WithMany() - .HasForeignKey("BalanceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Balance"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany("BankInfo") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate", null) - .WithMany("Bill") - .HasForeignKey("EstimateId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate", null) - .WithMany("Bill") - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery", "Query") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Owner"); - - b.Navigation("Query"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Author") - .WithMany("Posts") - .HasForeignKey("AuthorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Author"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost", "Post") - .WithMany("Tags") - .HasForeignKey("PostId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Tag", "Tag") - .WithMany() - .HasForeignKey("TagId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Post"); - - b.Navigation("Tag"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Author") - .WithMany() - .HasForeignKey("AuthorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Blog.Comment", "Parent") - .WithMany("Children") - .HasForeignKey("ParentId"); - - b.HasOne("Yavsc.Models.Blog.BlogPost", "Post") - .WithMany("Comments") - .HasForeignKey("ReceiverId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Author"); - - b.Navigation("Parent"); - - b.Navigation("Post"); - }); - - modelBuilder.Entity("Yavsc.Models.BlogSpotPublication", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost", "BlogPost") - .WithMany() - .HasForeignKey("BlogpostId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("BlogPost"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule", null) - .WithMany("Events") - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Server.Models.Calendar.Period", "Period") - .WithMany() - .HasForeignKey("PeriodStart", "PeriodEnd") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Period"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany("Connections") - .HasForeignKey("ApplicationUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany("Rooms") - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomAccess", b => - { - b.HasOne("Yavsc.Models.Chat.ChatRoom", "Room") - .WithMany("Moderation") - .HasForeignKey("ChannelName") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany("RoomAccess") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Room"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule", "Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "BaseProfile") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("BaseProfile"); - - b.Navigation("Schedule"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Location", "Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation", "Prestation") - .WithMany() - .HasForeignKey("PrestationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.BrusherProfile", "SelectedProfile") - .WithMany() - .HasForeignKey("SelectedProfileUserId"); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("Location"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Prestation"); - - b.Navigation("Regularisation"); - - b.Navigation("SelectedProfile"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Location", "Location") - .WithMany() - .HasForeignKey("LocationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("Location"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Regularisation"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation", "Prestation") - .WithMany() - .HasForeignKey("PrestationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery", "Query") - .WithMany("Prestations") - .HasForeignKey("QueryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Prestation"); - - b.Navigation("Query"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color", "Color") - .WithMany() - .HasForeignKey("ColorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Color"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation", "Prestation") - .WithMany("Taints") - .HasForeignKey("PrestationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.HairTaint", "Taint") - .WithMany() - .HasForeignKey("TaintId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Prestation"); - - b.Navigation("Taint"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.HasOne("Yavsc.Models.IT.Evolution.Feature", "False") - .WithMany() - .HasForeignKey("FeatureId"); - - b.Navigation("False"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.DeviceDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "DeviceOwner") - .WithMany("DeviceDeclaration") - .HasForeignKey("DeviceOwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("DeviceOwner"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany("Services") - .HasForeignKey("ContextId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Context"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DismissClicked", b => - { - b.HasOne("Yavsc.Abstract.Models.Messaging.Notification", "Notified") - .WithMany() - .HasForeignKey("NotificationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Notified"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.InstrumentRating", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument", "Instrument") - .WithMany() - .HasForeignKey("InstrumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "Profile") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Instrument"); - - b.Navigation("Profile"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings", null) - .WithMany("SoundColor") - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings", null) - .WithMany("SoundColor") - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument", "Tool") - .WithMany() - .HasForeignKey("InstrumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tool"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Executor") - .WithMany() - .HasForeignKey("ExecutorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Executor"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany("Circles") - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle", "Circle") - .WithMany("Members") - .HasForeignKey("CircleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Member") - .WithMany("Membership") - .HasForeignKey("MemberId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Circle"); - - b.Navigation("Member"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.Relationship.PostalAddress", "PostalAddress") - .WithMany() - .HasForeignKey("AddressId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany("Book") - .HasForeignKey("ApplicationUserId"); - - b.Navigation("PostalAddress"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.HasOne("Yavsc.Models.Haircut.BrusherProfile", null) - .WithMany("Links") - .HasForeignKey("BrusherProfileUserId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", null) - .WithMany("Links") - .HasForeignKey("PayPalPaymentCreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Streaming.LiveFlow", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Parent") - .WithMany("Children") - .HasForeignKey("ParentCode"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings", null) - .WithMany("CoWorking") - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "Performer") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "WorkingFor") - .WithMany() - .HasForeignKey("WorkingForId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Performer"); - - b.Navigation("WorkingFor"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany("Forms") - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Context"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location", "OrganizationAddress") - .WithMany() - .HasForeignKey("OrganizationAddressId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Performer") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("OrganizationAddress"); - - b.Navigation("Performer"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Location", "Location") - .WithMany() - .HasForeignKey("LocationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("Location"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Regularisation"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Does") - .WithMany() - .HasForeignKey("DoesCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "User") - .WithMany("Activity") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Does"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", "Repository") - .WithMany() - .HasForeignKey("GitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Regularisation"); - - b.Navigation("Repository"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.HasOne("Yavsc.Server.Models.IT.Project", "TargetProject") - .WithMany("Configurations") - .HasForeignKey("ProjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TargetProject"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Navigation("AccountBalance"); - - b.Navigation("BankInfo"); - - b.Navigation("BlackList"); - - b.Navigation("Book"); - - b.Navigation("Circles"); - - b.Navigation("Connections"); - - b.Navigation("DeviceDeclaration"); - - b.Navigation("Membership"); - - b.Navigation("Posts"); - - b.Navigation("RoomAccess"); - - b.Navigation("Rooms"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Navigation("Bill"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Navigation("Bill"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.Navigation("ACL"); - - b.Navigation("Comments"); - - b.Navigation("Tags"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.Navigation("Children"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Navigation("Events"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.Navigation("Moderation"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Navigation("Links"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Navigation("Prestations"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Navigation("Taints"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Navigation("SoundColor"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Navigation("SoundColor"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Navigation("Links"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Navigation("Members"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Navigation("Children"); - - b.Navigation("Forms"); - - b.Navigation("Services"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Navigation("Activity"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Navigation("CoWorking"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.Navigation("Configurations"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/Yavsc.Server/Migrations/20250705112955_commentAllowed.cs b/src/Yavsc.Server/Migrations/20250705112955_commentAllowed.cs deleted file mode 100644 index 24a5aab9..00000000 --- a/src/Yavsc.Server/Migrations/20250705112955_commentAllowed.cs +++ /dev/null @@ -1,54 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace Yavsc.Migrations -{ - /// - public partial class commentAllowed : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "Comment", - table: "CircleAuthorizationToBlogPost", - type: "boolean", - nullable: false, - defaultValue: false); - - migrationBuilder.AlterColumn( - name: "Avatar", - table: "AspNetUsers", - type: "character varying(512)", - maxLength: 512, - nullable: true, - defaultValue: "/images/Users/icon_user.png", - oldClrType: typeof(string), - oldType: "character varying(512)", - oldMaxLength: 512, - oldDefaultValue: "/images/Users/icon_user.png"); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "Comment", - table: "CircleAuthorizationToBlogPost"); - - migrationBuilder.AlterColumn( - name: "Avatar", - table: "AspNetUsers", - type: "character varying(512)", - maxLength: 512, - nullable: false, - defaultValue: "/images/Users/icon_user.png", - oldClrType: typeof(string), - oldType: "character varying(512)", - oldMaxLength: 512, - oldNullable: true, - oldDefaultValue: "/images/Users/icon_user.png"); - } - } -} diff --git a/src/Yavsc.Server/Migrations/20250709123810_noPublishColumn.Designer.cs b/src/Yavsc.Server/Migrations/20250709123810_noPublishColumn.Designer.cs deleted file mode 100644 index cb6d1c2a..00000000 --- a/src/Yavsc.Server/Migrations/20250709123810_noPublishColumn.Designer.cs +++ /dev/null @@ -1,3516 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; -using Yavsc.Models; - -#nullable disable - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20250709123810_noPublishColumn")] - partial class noPublishColumn - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "9.0.6") - .HasAnnotation("Relational:MaxIdentifierLength", 63); - - NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasColumnType("text"); - - b.Property("Name") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("NormalizedName") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .IsUnique() - .HasDatabaseName("RoleNameIndex"); - - b.ToTable("AspNetRoles", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ClaimType") - .HasColumnType("text"); - - b.Property("ClaimValue") - .HasColumnType("text"); - - b.Property("RoleId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("RoleId"); - - b.ToTable("AspNetRoleClaims", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ClaimType") - .HasColumnType("text"); - - b.Property("ClaimValue") - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.ToTable("AspNetUserClaims", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => - { - b.Property("LoginProvider") - .HasColumnType("text"); - - b.Property("ProviderKey") - .HasColumnType("text"); - - b.Property("ProviderDisplayName") - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasIndex("UserId"); - - b.ToTable("AspNetUserLogins", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("RoleId") - .HasColumnType("text"); - - b.HasKey("UserId", "RoleId"); - - b.HasIndex("RoleId"); - - b.ToTable("AspNetUserRoles", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("LoginProvider") - .HasColumnType("text"); - - b.Property("Name") - .HasColumnType("text"); - - b.Property("Value") - .HasColumnType("text"); - - b.HasKey("UserId", "LoginProvider", "Name"); - - b.ToTable("AspNetUserTokens", (string)null); - }); - - modelBuilder.Entity("Yavsc.Abstract.Identity.ClientProviderInfo", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("Avatar") - .IsRequired() - .HasColumnType("text"); - - b.Property("BillingAddressId") - .HasColumnType("bigint"); - - b.Property("EMail") - .IsRequired() - .HasColumnType("text"); - - b.Property("Phone") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserName") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("ClientProviderInfo"); - }); - - modelBuilder.Entity("Yavsc.Abstract.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Target") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("body") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("click_action") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("color") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("icon") - .ValueGeneratedOnAdd() - .HasMaxLength(512) - .HasColumnType("character varying(512)") - .HasDefaultValue("exclam"); - - b.Property("sound") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("tag") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("title") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("character varying(1024)"); - - b.HasKey("Id"); - - b.ToTable("Notification"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Reason") - .IsRequired() - .HasColumnType("text"); - - b.Property("TargetId") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("TargetId"); - - b.ToTable("Ban"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.HasIndex("UserId"); - - b.ToTable("BlackListed"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId") - .HasColumnType("bigint"); - - b.Property("BlogPostId") - .HasColumnType("bigint"); - - b.Property("Comment") - .HasColumnType("boolean"); - - b.HasKey("CircleId", "BlogPostId"); - - b.HasIndex("BlogPostId"); - - b.ToTable("CircleAuthorizationToBlogPost"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("ContactCredits") - .HasColumnType("bigint"); - - b.Property("Credits") - .HasColumnType("numeric"); - - b.HasKey("UserId"); - - b.ToTable("BankStatus"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("AccessFailedCount") - .HasColumnType("integer"); - - b.Property("AllowMonthlyEmail") - .HasColumnType("boolean"); - - b.Property("Avatar") - .ValueGeneratedOnAdd() - .HasMaxLength(512) - .HasColumnType("character varying(512)") - .HasDefaultValue("/images/Users/icon_user.png"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasColumnType("text"); - - b.Property("DedicatedGoogleCalendar") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("DiskQuota") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasDefaultValue(524288000L); - - b.Property("DiskUsage") - .HasColumnType("bigint"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("EmailConfirmed") - .HasColumnType("boolean"); - - b.Property("FullName") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("LockoutEnabled") - .HasColumnType("boolean"); - - b.Property("LockoutEnd") - .HasColumnType("timestamp with time zone"); - - b.Property("MaxFileSize") - .HasColumnType("bigint"); - - b.Property("NormalizedEmail") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("NormalizedUserName") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("PasswordHash") - .HasColumnType("text"); - - b.Property("PhoneNumber") - .HasColumnType("text"); - - b.Property("PhoneNumberConfirmed") - .HasColumnType("boolean"); - - b.Property("PostalAddressId") - .HasColumnType("bigint"); - - b.Property("SecurityStamp") - .HasColumnType("text"); - - b.Property("TwoFactorEnabled") - .HasColumnType("boolean"); - - b.Property("UserName") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.HasKey("Id"); - - b.HasAlternateKey("Email"); - - b.HasIndex("NormalizedEmail") - .HasDatabaseName("EmailIndex"); - - b.HasIndex("NormalizedUserName") - .IsUnique() - .HasDatabaseName("UserNameIndex"); - - b.HasIndex("PostalAddressId"); - - b.ToTable("AspNetUsers", (string)null); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("text"); - - b.Property("AccessTokenLifetime") - .HasColumnType("integer"); - - b.Property("Active") - .HasColumnType("boolean"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("character varying(128)"); - - b.Property("LogoutRedirectUri") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("RedirectUri") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("RefreshTokenLifeTime") - .HasColumnType("integer"); - - b.Property("Secret") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("Type") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("Applications"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.OAuth2Tokens", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("AccessToken") - .IsRequired() - .HasColumnType("text"); - - b.Property("Expiration") - .HasColumnType("timestamp with time zone"); - - b.Property("ExpiresIn") - .IsRequired() - .HasColumnType("text"); - - b.Property("RefreshToken") - .IsRequired() - .HasColumnType("text"); - - b.Property("TokenType") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("OAuth2Tokens"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("character varying(50)"); - - b.Property("ExpiresUtc") - .HasColumnType("timestamp with time zone"); - - b.Property("IssuedUtc") - .HasColumnType("timestamp with time zone"); - - b.Property("ProtectedTicket") - .IsRequired() - .HasColumnType("text"); - - b.Property("Subject") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("character varying(50)"); - - b.HasKey("Id"); - - b.ToTable("RefreshTokens"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Scope", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("character varying(1024)"); - - b.HasKey("Id"); - - b.ToTable("Scopes"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("BalanceId") - .IsRequired() - .HasColumnType("text"); - - b.Property("ExecDate") - .HasColumnType("timestamp with time zone"); - - b.Property("Impact") - .HasColumnType("numeric"); - - b.Property("Reason") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("BalanceId"); - - b.ToTable("BankBook"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AccountNumber") - .IsRequired() - .HasColumnType("text"); - - b.Property("BIC") - .IsRequired() - .HasColumnType("text"); - - b.Property("BankCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("BankedKey") - .HasColumnType("integer"); - - b.Property("IBAN") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.Property("WicketCode") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.ToTable("BankIdentity"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Count") - .HasColumnType("integer"); - - b.Property("Currency") - .IsRequired() - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("EstimateId") - .HasColumnType("bigint"); - - b.Property("EstimateTemplateId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("UnitaryCost") - .HasColumnType("numeric"); - - b.HasKey("Id"); - - b.HasIndex("EstimateId"); - - b.HasIndex("EstimateTemplateId"); - - b.ToTable("CommandLine"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AttachedFilesString") - .IsRequired() - .HasColumnType("text"); - - b.Property("AttachedGraphicsString") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientValidationDate") - .HasColumnType("timestamp with time zone"); - - b.Property("CommandId") - .HasColumnType("bigint"); - - b.Property("CommandType") - .IsRequired() - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("ProviderValidationDate") - .HasColumnType("timestamp with time zone"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ClientId"); - - b.HasIndex("CommandId"); - - b.HasIndex("OwnerId"); - - b.ToTable("Estimates"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("EstimateTemplates"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN") - .HasColumnType("text"); - - b.HasKey("SIREN"); - - b.ToTable("ExceptionsSIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AuthorId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Content") - .HasMaxLength(56224) - .HasColumnType("character varying(56224)"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Photo") - .HasMaxLength(1024) - .HasColumnType("character varying(1024)"); - - b.Property("Title") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("character varying(1024)"); - - b.Property("UserCreated") - .HasColumnType("text"); - - b.Property("UserModified") - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("AuthorId"); - - b.ToTable("BlogSpot"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.Property("PostId") - .HasColumnType("bigint"); - - b.Property("TagId") - .HasColumnType("bigint"); - - b.HasKey("PostId", "TagId"); - - b.HasIndex("TagId"); - - b.ToTable("BlogTag"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AuthorId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Content") - .IsRequired() - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("ParentId") - .HasColumnType("bigint"); - - b.Property("ReceiverId") - .HasColumnType("bigint"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("Visible") - .HasColumnType("boolean"); - - b.HasKey("Id"); - - b.HasIndex("AuthorId"); - - b.HasIndex("ParentId"); - - b.HasIndex("ReceiverId"); - - b.ToTable("Comment"); - }); - - modelBuilder.Entity("Yavsc.Models.BlogSpotPublication", b => - { - b.Property("BlogpostId") - .HasColumnType("bigint"); - - b.HasKey("BlogpostId"); - - b.ToTable("blogSpotPublications"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Property("OwnerId") - .HasColumnType("text"); - - b.HasKey("OwnerId"); - - b.ToTable("Schedule"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("PeriodEnd") - .HasColumnType("timestamp with time zone"); - - b.Property("PeriodStart") - .HasColumnType("timestamp with time zone"); - - b.Property("Reccurence") - .HasColumnType("integer"); - - b.Property("ScheduleOwnerId") - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ScheduleOwnerId"); - - b.HasIndex("PeriodStart", "PeriodEnd"); - - b.ToTable("ScheduledEvent"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.Property("ConnectionId") - .HasColumnType("text"); - - b.Property("ApplicationUserId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Connected") - .HasColumnType("boolean"); - - b.Property("UserAgent") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("ConnectionId"); - - b.HasIndex("ApplicationUserId"); - - b.ToTable("ChatConnection"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.Property("Name") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("LatestJoinPart") - .HasColumnType("timestamp with time zone"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Topic") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Name"); - - b.HasIndex("OwnerId"); - - b.ToTable("ChatRoom"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomAccess", b => - { - b.Property("ChannelName") - .HasColumnType("text"); - - b.Property("UserId") - .HasColumnType("text"); - - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Level") - .HasColumnType("integer"); - - b.HasKey("ChannelName", "UserId"); - - b.HasIndex("UserId"); - - b.ToTable("ChatRoomAccess"); - }); - - modelBuilder.Entity("Yavsc.Models.Cratie.Option", b => - { - b.Property("Code") - .HasColumnType("text"); - - b.Property("CodeScrutin") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Code", "CodeScrutin"); - - b.ToTable("Option"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Blue") - .HasColumnType("smallint"); - - b.Property("Green") - .HasColumnType("smallint"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Red") - .HasColumnType("smallint"); - - b.HasKey("Id"); - - b.ToTable("Color"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("Summary") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("Form"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("ActionDistance") - .HasColumnType("integer"); - - b.Property("CarePrice") - .HasColumnType("numeric"); - - b.Property("FlatFeeDiscount") - .HasColumnType("numeric"); - - b.Property("HalfBalayagePrice") - .HasColumnType("numeric"); - - b.Property("HalfBrushingPrice") - .HasColumnType("numeric"); - - b.Property("HalfColorPrice") - .HasColumnType("numeric"); - - b.Property("HalfDefrisPrice") - .HasColumnType("numeric"); - - b.Property("HalfFoldingPrice") - .HasColumnType("numeric"); - - b.Property("HalfMechPrice") - .HasColumnType("numeric"); - - b.Property("HalfMultiColorPrice") - .HasColumnType("numeric"); - - b.Property("HalfPermanentPrice") - .HasColumnType("numeric"); - - b.Property("KidCutPrice") - .HasColumnType("numeric"); - - b.Property("LongBalayagePrice") - .HasColumnType("numeric"); - - b.Property("LongBrushingPrice") - .HasColumnType("numeric"); - - b.Property("LongColorPrice") - .HasColumnType("numeric"); - - b.Property("LongDefrisPrice") - .HasColumnType("numeric"); - - b.Property("LongFoldingPrice") - .HasColumnType("numeric"); - - b.Property("LongMechPrice") - .HasColumnType("numeric"); - - b.Property("LongMultiColorPrice") - .HasColumnType("numeric"); - - b.Property("LongPermanentPrice") - .HasColumnType("numeric"); - - b.Property("ManBrushPrice") - .HasColumnType("numeric"); - - b.Property("ManCutPrice") - .HasColumnType("numeric"); - - b.Property("ScheduleOwnerId") - .HasColumnType("text"); - - b.Property("ShampooPrice") - .HasColumnType("numeric"); - - b.Property("ShortBalayagePrice") - .HasColumnType("numeric"); - - b.Property("ShortBrushingPrice") - .HasColumnType("numeric"); - - b.Property("ShortColorPrice") - .HasColumnType("numeric"); - - b.Property("ShortDefrisPrice") - .HasColumnType("numeric"); - - b.Property("ShortFoldingPrice") - .HasColumnType("numeric"); - - b.Property("ShortMechPrice") - .HasColumnType("numeric"); - - b.Property("ShortMultiColorPrice") - .HasColumnType("numeric"); - - b.Property("ShortPermanentPrice") - .HasColumnType("numeric"); - - b.Property("WomenHalfCutPrice") - .HasColumnType("numeric"); - - b.Property("WomenLongCutPrice") - .HasColumnType("numeric"); - - b.Property("WomenShortCutPrice") - .HasColumnType("numeric"); - - b.HasKey("UserId"); - - b.HasIndex("ScheduleOwnerId"); - - b.ToTable("BrusherProfile"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Accepted") - .HasColumnType("boolean"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("AdditionalInfo") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Decided") - .HasColumnType("boolean"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("EventDate") - .HasColumnType("timestamp with time zone"); - - b.Property("LocationId") - .HasColumnType("bigint"); - - b.Property("PaymentId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PrestationId") - .HasColumnType("bigint"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("SelectedProfileUserId") - .HasColumnType("text"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("LocationId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.HasIndex("PrestationId"); - - b.HasIndex("SelectedProfileUserId"); - - b.ToTable("HairCutQueries"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Accepted") - .HasColumnType("boolean"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Decided") - .HasColumnType("boolean"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("EventDate") - .HasColumnType("timestamp with time zone"); - - b.Property("LocationId") - .HasColumnType("bigint"); - - b.Property("PaymentId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("LocationId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.ToTable("HairMultiCutQueries"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Cares") - .HasColumnType("boolean"); - - b.Property("Cut") - .HasColumnType("boolean"); - - b.Property("Dressing") - .HasColumnType("integer"); - - b.Property("Gender") - .HasColumnType("integer"); - - b.Property("Length") - .HasColumnType("integer"); - - b.Property("Shampoo") - .HasColumnType("boolean"); - - b.Property("Tech") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("HairPrestation"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("PrestationId") - .HasColumnType("bigint"); - - b.Property("QueryId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("PrestationId"); - - b.HasIndex("QueryId"); - - b.ToTable("HairPrestationCollectionItem"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Brand") - .IsRequired() - .HasColumnType("text"); - - b.Property("ColorId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("ColorId"); - - b.ToTable("HairTaint"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.Property("TaintId") - .HasColumnType("bigint"); - - b.Property("PrestationId") - .HasColumnType("bigint"); - - b.HasKey("TaintId", "PrestationId"); - - b.HasIndex("PrestationId"); - - b.ToTable("HairTaintInstance"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Evolution.Feature", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("ShortName") - .IsRequired() - .HasColumnType("text"); - - b.Property("Status") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("Feature"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("FeatureId") - .HasColumnType("bigint"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("FeatureId"); - - b.ToTable("Bug"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.DeviceDeclaration", b => - { - b.Property("DeviceId") - .HasColumnType("text"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasColumnType("timestamp with time zone") - .HasDefaultValueSql("LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("LatestActivityUpdate") - .HasColumnType("timestamp with time zone"); - - b.Property("Model") - .IsRequired() - .HasColumnType("text"); - - b.Property("Platform") - .IsRequired() - .HasColumnType("text"); - - b.Property("Version") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("DeviceId"); - - b.HasIndex("DeviceOwnerId"); - - b.ToTable("DeviceDeclaration"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Depth") - .HasColumnType("numeric"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("Height") - .HasColumnType("numeric"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Price") - .HasColumnType("numeric"); - - b.Property("Public") - .HasColumnType("boolean"); - - b.Property("Weight") - .HasColumnType("numeric"); - - b.Property("Width") - .HasColumnType("numeric"); - - b.HasKey("Id"); - - b.ToTable("Products"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ContextId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Public") - .HasColumnType("boolean"); - - b.HasKey("Id"); - - b.HasIndex("ContextId"); - - b.ToTable("Services"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("For") - .HasColumnType("smallint"); - - b.Property("Message") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Sender") - .IsRequired() - .HasColumnType("text"); - - b.Property("Topic") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.ToTable("Announce"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DismissClicked", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("NotificationId") - .HasColumnType("bigint"); - - b.HasKey("UserId", "NotificationId"); - - b.HasIndex("NotificationId"); - - b.ToTable("DismissClicked"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("character varying(255)"); - - b.HasKey("Id"); - - b.ToTable("Instrument"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.InstrumentRating", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("InstrumentId") - .HasColumnType("bigint"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.HasAlternateKey("InstrumentId", "OwnerId"); - - b.HasIndex("OwnerId"); - - b.ToTable("InstrumentRating"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId") - .HasColumnType("text"); - - b.Property("DjSettingsUserId") - .HasColumnType("text"); - - b.Property("GeneralSettingsUserId") - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.Property("TendencyId") - .HasColumnType("bigint"); - - b.HasKey("OwnerProfileId"); - - b.HasIndex("DjSettingsUserId"); - - b.HasIndex("GeneralSettingsUserId"); - - b.ToTable("MusicalPreference"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("character varying(255)"); - - b.HasKey("Id"); - - b.ToTable("MusicalTendency"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("SoundCloudId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("DjSettings"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("GeneralSettings"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId") - .HasColumnType("bigint"); - - b.Property("UserId") - .HasColumnType("text"); - - b.HasKey("InstrumentId", "UserId"); - - b.HasIndex("UserId"); - - b.ToTable("Instrumentation"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Property("CreationToken") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("ExecutorId") - .IsRequired() - .HasColumnType("text"); - - b.Property("OrderReference") - .IsRequired() - .HasColumnType("text"); - - b.Property("PaypalPayerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("State") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("CreationToken"); - - b.HasIndex("ExecutorId"); - - b.ToTable("PayPalPayment"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ApplicationUserId") - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Public") - .HasColumnType("boolean"); - - b.HasKey("Id"); - - b.HasIndex("ApplicationUserId"); - - b.ToTable("Circle"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId") - .HasColumnType("text"); - - b.Property("CircleId") - .HasColumnType("bigint"); - - b.HasKey("MemberId", "CircleId"); - - b.HasIndex("CircleId"); - - b.ToTable("CircleMembers"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId") - .HasColumnType("text"); - - b.Property("UserId") - .HasColumnType("text"); - - b.Property("AddressId") - .HasColumnType("bigint"); - - b.Property("ApplicationUserId") - .HasColumnType("text"); - - b.Property("EMail") - .IsRequired() - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("OwnerId", "UserId"); - - b.HasIndex("AddressId"); - - b.HasIndex("ApplicationUserId"); - - b.ToTable("Contact"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.Property("HRef") - .HasColumnType("text"); - - b.Property("Method") - .HasColumnType("text"); - - b.Property("BrusherProfileUserId") - .HasColumnType("text"); - - b.Property("ContentType") - .IsRequired() - .HasColumnType("text"); - - b.Property("PayPalPaymentCreationToken") - .HasColumnType("text"); - - b.Property("Rel") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("HRef", "Method"); - - b.HasIndex("BrusherProfileUserId"); - - b.HasIndex("PayPalPaymentCreationToken"); - - b.ToTable("HyperLink"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Address") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("Latitude") - .HasColumnType("double precision"); - - b.Property("Longitude") - .HasColumnType("double precision"); - - b.HasKey("Id"); - - b.ToTable("Locations"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostalAddress", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("City") - .IsRequired() - .HasColumnType("text"); - - b.Property("Country") - .IsRequired() - .HasColumnType("text"); - - b.Property("PostalCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("Province") - .IsRequired() - .HasColumnType("text"); - - b.Property("State") - .IsRequired() - .HasColumnType("text"); - - b.Property("Street1") - .IsRequired() - .HasColumnType("text"); - - b.Property("Street2") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("PostalAddress"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("Tags"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("SiteSkills"); - }); - - modelBuilder.Entity("Yavsc.Models.Streaming.LiveFlow", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("DifferedFileName") - .IsRequired() - .HasColumnType("text"); - - b.Property("MediaType") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Pitch") - .IsRequired() - .HasColumnType("text"); - - b.Property("SequenceNumber") - .HasColumnType("integer"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.ToTable("LiveFlow"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("Hidden") - .HasColumnType("boolean"); - - b.Property("ModeratorGroupName") - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("ParentCode") - .HasColumnType("text"); - - b.Property("Photo") - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.Property("SettingsClassName") - .HasColumnType("text"); - - b.Property("UserCreated") - .HasColumnType("text"); - - b.Property("UserModified") - .HasColumnType("text"); - - b.HasKey("Code"); - - b.HasIndex("ParentCode"); - - b.ToTable("Activities"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("FormationSettingsUserId") - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("WorkingForId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("FormationSettingsUserId"); - - b.HasIndex("PerformerId"); - - b.HasIndex("WorkingForId"); - - b.ToTable("CoWorking"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ActionName") - .IsRequired() - .HasColumnType("text"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.ToTable("CommandForm"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId") - .HasColumnType("text"); - - b.Property("AcceptNotifications") - .HasColumnType("boolean"); - - b.Property("AcceptPublicContact") - .HasColumnType("boolean"); - - b.Property("Active") - .HasColumnType("boolean"); - - b.Property("MaxDailyCost") - .HasColumnType("integer"); - - b.Property("MinDailyCost") - .HasColumnType("integer"); - - b.Property("OrganizationAddressId") - .HasColumnType("bigint"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.Property("SIREN") - .IsRequired() - .HasColumnType("text"); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients") - .HasColumnType("boolean"); - - b.Property("WebSite") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("PerformerId"); - - b.HasIndex("OrganizationAddressId"); - - b.ToTable("Performers"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("DisplayName") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("FormationSettings"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Accepted") - .HasColumnType("boolean"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Decided") - .HasColumnType("boolean"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("EventDate") - .HasColumnType("timestamp with time zone"); - - b.Property("LocationId") - .HasColumnType("bigint"); - - b.Property("LocationType") - .HasColumnType("integer"); - - b.Property("PaymentId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("Reason") - .IsRequired() - .HasColumnType("text"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("LocationId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.ToTable("RdvQueries"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode") - .HasColumnType("text"); - - b.Property("UserId") - .HasColumnType("text"); - - b.Property("Weight") - .HasColumnType("integer"); - - b.HasKey("DoesCode", "UserId"); - - b.HasIndex("UserId"); - - b.ToTable("UserActivities"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Calendar.Period", b => - { - b.Property("Start") - .HasColumnType("timestamp with time zone"); - - b.Property("End") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Start", "End"); - - b.ToTable("Period"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.EMailing.MailingTemplate", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("Body") - .IsRequired() - .HasMaxLength(65536) - .HasColumnType("character varying(65536)"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("ReplyToAddress") - .IsRequired() - .HasColumnType("text"); - - b.Property("ToSend") - .HasColumnType("integer"); - - b.Property("Topic") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("MailingTemplate"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Accepted") - .HasColumnType("boolean"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Decided") - .HasColumnType("boolean"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("GitId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PaymentId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.Property("Version") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("GitId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.ToTable("Project"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("ProjectId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("ProjectId"); - - b.ToTable("ProjectBuildConfiguration"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Branch") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Path") - .IsRequired() - .HasColumnType("text"); - - b.Property("Url") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.ToTable("GitRepositoryReference"); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null) - .WithMany() - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null) - .WithMany() - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "TargetUser") - .WithMany() - .HasForeignKey("TargetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TargetUser"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany("BlackList") - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost", "Target") - .WithMany("ACL") - .HasForeignKey("BlogPostId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Circle", "Allowed") - .WithMany() - .HasForeignKey("CircleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Allowed"); - - b.Navigation("Target"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithOne("AccountBalance") - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Relationship.Location", "PostalAddress") - .WithMany() - .HasForeignKey("PostalAddressId"); - - b.Navigation("PostalAddress"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance", "Balance") - .WithMany() - .HasForeignKey("BalanceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Balance"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany("BankInfo") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate", null) - .WithMany("Bill") - .HasForeignKey("EstimateId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate", null) - .WithMany("Bill") - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery", "Query") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Owner"); - - b.Navigation("Query"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Author") - .WithMany("Posts") - .HasForeignKey("AuthorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Author"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost", "Post") - .WithMany("Tags") - .HasForeignKey("PostId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Tag", "Tag") - .WithMany() - .HasForeignKey("TagId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Post"); - - b.Navigation("Tag"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Author") - .WithMany() - .HasForeignKey("AuthorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Blog.Comment", "Parent") - .WithMany("Children") - .HasForeignKey("ParentId"); - - b.HasOne("Yavsc.Models.Blog.BlogPost", "Post") - .WithMany("Comments") - .HasForeignKey("ReceiverId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Author"); - - b.Navigation("Parent"); - - b.Navigation("Post"); - }); - - modelBuilder.Entity("Yavsc.Models.BlogSpotPublication", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost", "BlogPost") - .WithMany() - .HasForeignKey("BlogpostId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("BlogPost"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule", null) - .WithMany("Events") - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Server.Models.Calendar.Period", "Period") - .WithMany() - .HasForeignKey("PeriodStart", "PeriodEnd") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Period"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany("Connections") - .HasForeignKey("ApplicationUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany("Rooms") - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomAccess", b => - { - b.HasOne("Yavsc.Models.Chat.ChatRoom", "Room") - .WithMany("Moderation") - .HasForeignKey("ChannelName") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany("RoomAccess") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Room"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule", "Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "BaseProfile") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("BaseProfile"); - - b.Navigation("Schedule"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Location", "Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation", "Prestation") - .WithMany() - .HasForeignKey("PrestationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.BrusherProfile", "SelectedProfile") - .WithMany() - .HasForeignKey("SelectedProfileUserId"); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("Location"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Prestation"); - - b.Navigation("Regularisation"); - - b.Navigation("SelectedProfile"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Location", "Location") - .WithMany() - .HasForeignKey("LocationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("Location"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Regularisation"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation", "Prestation") - .WithMany() - .HasForeignKey("PrestationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery", "Query") - .WithMany("Prestations") - .HasForeignKey("QueryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Prestation"); - - b.Navigation("Query"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color", "Color") - .WithMany() - .HasForeignKey("ColorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Color"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation", "Prestation") - .WithMany("Taints") - .HasForeignKey("PrestationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.HairTaint", "Taint") - .WithMany() - .HasForeignKey("TaintId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Prestation"); - - b.Navigation("Taint"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.HasOne("Yavsc.Models.IT.Evolution.Feature", "False") - .WithMany() - .HasForeignKey("FeatureId"); - - b.Navigation("False"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.DeviceDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "DeviceOwner") - .WithMany("DeviceDeclaration") - .HasForeignKey("DeviceOwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("DeviceOwner"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany("Services") - .HasForeignKey("ContextId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Context"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DismissClicked", b => - { - b.HasOne("Yavsc.Abstract.Models.Messaging.Notification", "Notified") - .WithMany() - .HasForeignKey("NotificationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Notified"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.InstrumentRating", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument", "Instrument") - .WithMany() - .HasForeignKey("InstrumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "Profile") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Instrument"); - - b.Navigation("Profile"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings", null) - .WithMany("SoundColor") - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings", null) - .WithMany("SoundColor") - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument", "Tool") - .WithMany() - .HasForeignKey("InstrumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tool"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Executor") - .WithMany() - .HasForeignKey("ExecutorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Executor"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany("Circles") - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle", "Circle") - .WithMany("Members") - .HasForeignKey("CircleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Member") - .WithMany("Membership") - .HasForeignKey("MemberId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Circle"); - - b.Navigation("Member"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.Relationship.PostalAddress", "PostalAddress") - .WithMany() - .HasForeignKey("AddressId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany("Book") - .HasForeignKey("ApplicationUserId"); - - b.Navigation("PostalAddress"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.HasOne("Yavsc.Models.Haircut.BrusherProfile", null) - .WithMany("Links") - .HasForeignKey("BrusherProfileUserId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", null) - .WithMany("Links") - .HasForeignKey("PayPalPaymentCreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Streaming.LiveFlow", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Parent") - .WithMany("Children") - .HasForeignKey("ParentCode"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings", null) - .WithMany("CoWorking") - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "Performer") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "WorkingFor") - .WithMany() - .HasForeignKey("WorkingForId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Performer"); - - b.Navigation("WorkingFor"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany("Forms") - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Context"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location", "OrganizationAddress") - .WithMany() - .HasForeignKey("OrganizationAddressId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Performer") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("OrganizationAddress"); - - b.Navigation("Performer"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Location", "Location") - .WithMany() - .HasForeignKey("LocationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("Location"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Regularisation"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Does") - .WithMany() - .HasForeignKey("DoesCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "User") - .WithMany("Activity") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Does"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", "Repository") - .WithMany() - .HasForeignKey("GitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Regularisation"); - - b.Navigation("Repository"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.HasOne("Yavsc.Server.Models.IT.Project", "TargetProject") - .WithMany("Configurations") - .HasForeignKey("ProjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TargetProject"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Navigation("AccountBalance"); - - b.Navigation("BankInfo"); - - b.Navigation("BlackList"); - - b.Navigation("Book"); - - b.Navigation("Circles"); - - b.Navigation("Connections"); - - b.Navigation("DeviceDeclaration"); - - b.Navigation("Membership"); - - b.Navigation("Posts"); - - b.Navigation("RoomAccess"); - - b.Navigation("Rooms"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Navigation("Bill"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Navigation("Bill"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.Navigation("ACL"); - - b.Navigation("Comments"); - - b.Navigation("Tags"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.Navigation("Children"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Navigation("Events"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.Navigation("Moderation"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Navigation("Links"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Navigation("Prestations"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Navigation("Taints"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Navigation("SoundColor"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Navigation("SoundColor"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Navigation("Links"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Navigation("Members"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Navigation("Children"); - - b.Navigation("Forms"); - - b.Navigation("Services"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Navigation("Activity"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Navigation("CoWorking"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.Navigation("Configurations"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/Yavsc.Server/Migrations/20250709123810_noPublishColumn.cs b/src/Yavsc.Server/Migrations/20250709123810_noPublishColumn.cs deleted file mode 100644 index 95b7fc47..00000000 --- a/src/Yavsc.Server/Migrations/20250709123810_noPublishColumn.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace Yavsc.Migrations -{ - /// - public partial class noPublishColumn : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "Publish", - table: "BlogSpot"); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "Publish", - table: "BlogSpot", - type: "boolean", - nullable: false, - defaultValue: false); - } - } -} diff --git a/src/Yavsc.Server/Migrations/20250715143821_nullPaimentIdOnQuery.Designer.cs b/src/Yavsc.Server/Migrations/20250715143821_nullPaimentIdOnQuery.Designer.cs deleted file mode 100644 index a00257b5..00000000 --- a/src/Yavsc.Server/Migrations/20250715143821_nullPaimentIdOnQuery.Designer.cs +++ /dev/null @@ -1,3504 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; -using Yavsc.Models; - -#nullable disable - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20250715143821_nullPaimentIdOnQuery")] - partial class nullPaimentIdOnQuery - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "9.0.7") - .HasAnnotation("Relational:MaxIdentifierLength", 63); - - NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasColumnType("text"); - - b.Property("Name") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("NormalizedName") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .IsUnique() - .HasDatabaseName("RoleNameIndex"); - - b.ToTable("AspNetRoles", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ClaimType") - .HasColumnType("text"); - - b.Property("ClaimValue") - .HasColumnType("text"); - - b.Property("RoleId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("RoleId"); - - b.ToTable("AspNetRoleClaims", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ClaimType") - .HasColumnType("text"); - - b.Property("ClaimValue") - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.ToTable("AspNetUserClaims", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => - { - b.Property("LoginProvider") - .HasColumnType("text"); - - b.Property("ProviderKey") - .HasColumnType("text"); - - b.Property("ProviderDisplayName") - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasIndex("UserId"); - - b.ToTable("AspNetUserLogins", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("RoleId") - .HasColumnType("text"); - - b.HasKey("UserId", "RoleId"); - - b.HasIndex("RoleId"); - - b.ToTable("AspNetUserRoles", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("LoginProvider") - .HasColumnType("text"); - - b.Property("Name") - .HasColumnType("text"); - - b.Property("Value") - .HasColumnType("text"); - - b.HasKey("UserId", "LoginProvider", "Name"); - - b.ToTable("AspNetUserTokens", (string)null); - }); - - modelBuilder.Entity("Yavsc.Abstract.Identity.ClientProviderInfo", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("Avatar") - .IsRequired() - .HasColumnType("text"); - - b.Property("BillingAddressId") - .HasColumnType("bigint"); - - b.Property("EMail") - .IsRequired() - .HasColumnType("text"); - - b.Property("Phone") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserName") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("ClientProviderInfo"); - }); - - modelBuilder.Entity("Yavsc.Abstract.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Target") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("body") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("click_action") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("color") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("icon") - .ValueGeneratedOnAdd() - .HasMaxLength(512) - .HasColumnType("character varying(512)") - .HasDefaultValue("exclam"); - - b.Property("sound") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("tag") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("title") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("character varying(1024)"); - - b.HasKey("Id"); - - b.ToTable("Notification"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Reason") - .IsRequired() - .HasColumnType("text"); - - b.Property("TargetId") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("TargetId"); - - b.ToTable("Ban"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.HasIndex("UserId"); - - b.ToTable("BlackListed"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId") - .HasColumnType("bigint"); - - b.Property("BlogPostId") - .HasColumnType("bigint"); - - b.Property("Comment") - .HasColumnType("boolean"); - - b.HasKey("CircleId", "BlogPostId"); - - b.HasIndex("BlogPostId"); - - b.ToTable("CircleAuthorizationToBlogPost"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("ContactCredits") - .HasColumnType("bigint"); - - b.Property("Credits") - .HasColumnType("numeric"); - - b.HasKey("UserId"); - - b.ToTable("BankStatus"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("AccessFailedCount") - .HasColumnType("integer"); - - b.Property("AllowMonthlyEmail") - .HasColumnType("boolean"); - - b.Property("Avatar") - .ValueGeneratedOnAdd() - .HasMaxLength(512) - .HasColumnType("character varying(512)") - .HasDefaultValue("/images/Users/icon_user.png"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasColumnType("text"); - - b.Property("DedicatedGoogleCalendar") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("DiskQuota") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasDefaultValue(524288000L); - - b.Property("DiskUsage") - .HasColumnType("bigint"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("EmailConfirmed") - .HasColumnType("boolean"); - - b.Property("FullName") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("LockoutEnabled") - .HasColumnType("boolean"); - - b.Property("LockoutEnd") - .HasColumnType("timestamp with time zone"); - - b.Property("MaxFileSize") - .HasColumnType("bigint"); - - b.Property("NormalizedEmail") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("NormalizedUserName") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("PasswordHash") - .HasColumnType("text"); - - b.Property("PhoneNumber") - .HasColumnType("text"); - - b.Property("PhoneNumberConfirmed") - .HasColumnType("boolean"); - - b.Property("PostalAddressId") - .HasColumnType("bigint"); - - b.Property("SecurityStamp") - .HasColumnType("text"); - - b.Property("TwoFactorEnabled") - .HasColumnType("boolean"); - - b.Property("UserName") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.HasKey("Id"); - - b.HasAlternateKey("Email"); - - b.HasIndex("NormalizedEmail") - .HasDatabaseName("EmailIndex"); - - b.HasIndex("NormalizedUserName") - .IsUnique() - .HasDatabaseName("UserNameIndex"); - - b.HasIndex("PostalAddressId"); - - b.ToTable("AspNetUsers", (string)null); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("text"); - - b.Property("AccessTokenLifetime") - .HasColumnType("integer"); - - b.Property("Active") - .HasColumnType("boolean"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("character varying(128)"); - - b.Property("LogoutRedirectUri") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("RedirectUri") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("RefreshTokenLifeTime") - .HasColumnType("integer"); - - b.Property("Secret") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("Type") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("Applications"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.OAuth2Tokens", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("AccessToken") - .IsRequired() - .HasColumnType("text"); - - b.Property("Expiration") - .HasColumnType("timestamp with time zone"); - - b.Property("ExpiresIn") - .IsRequired() - .HasColumnType("text"); - - b.Property("RefreshToken") - .IsRequired() - .HasColumnType("text"); - - b.Property("TokenType") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("OAuth2Tokens"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.RefreshToken", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("character varying(50)"); - - b.Property("ExpiresUtc") - .HasColumnType("timestamp with time zone"); - - b.Property("IssuedUtc") - .HasColumnType("timestamp with time zone"); - - b.Property("ProtectedTicket") - .IsRequired() - .HasColumnType("text"); - - b.Property("Subject") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("character varying(50)"); - - b.HasKey("Id"); - - b.ToTable("RefreshTokens"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Scope", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("character varying(1024)"); - - b.HasKey("Id"); - - b.ToTable("Scopes"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("BalanceId") - .IsRequired() - .HasColumnType("text"); - - b.Property("ExecDate") - .HasColumnType("timestamp with time zone"); - - b.Property("Impact") - .HasColumnType("numeric"); - - b.Property("Reason") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("BalanceId"); - - b.ToTable("BankBook"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AccountNumber") - .IsRequired() - .HasColumnType("text"); - - b.Property("BIC") - .IsRequired() - .HasColumnType("text"); - - b.Property("BankCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("BankedKey") - .HasColumnType("integer"); - - b.Property("IBAN") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.Property("WicketCode") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.ToTable("BankIdentity"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Count") - .HasColumnType("integer"); - - b.Property("Currency") - .IsRequired() - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("EstimateId") - .HasColumnType("bigint"); - - b.Property("EstimateTemplateId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("UnitaryCost") - .HasColumnType("numeric"); - - b.HasKey("Id"); - - b.HasIndex("EstimateId"); - - b.HasIndex("EstimateTemplateId"); - - b.ToTable("CommandLine"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AttachedFilesString") - .IsRequired() - .HasColumnType("text"); - - b.Property("AttachedGraphicsString") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientValidationDate") - .HasColumnType("timestamp with time zone"); - - b.Property("CommandId") - .HasColumnType("bigint"); - - b.Property("CommandType") - .IsRequired() - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("ProviderValidationDate") - .HasColumnType("timestamp with time zone"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ClientId"); - - b.HasIndex("CommandId"); - - b.HasIndex("OwnerId"); - - b.ToTable("Estimates"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("EstimateTemplates"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN") - .HasColumnType("text"); - - b.HasKey("SIREN"); - - b.ToTable("ExceptionsSIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AuthorId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Content") - .HasMaxLength(56224) - .HasColumnType("character varying(56224)"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Photo") - .HasMaxLength(1024) - .HasColumnType("character varying(1024)"); - - b.Property("Title") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("character varying(1024)"); - - b.Property("UserCreated") - .HasColumnType("text"); - - b.Property("UserModified") - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("AuthorId"); - - b.ToTable("BlogSpot"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.Property("PostId") - .HasColumnType("bigint"); - - b.Property("TagId") - .HasColumnType("bigint"); - - b.HasKey("PostId", "TagId"); - - b.HasIndex("TagId"); - - b.ToTable("BlogTag"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AuthorId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Content") - .IsRequired() - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("ParentId") - .HasColumnType("bigint"); - - b.Property("ReceiverId") - .HasColumnType("bigint"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("Visible") - .HasColumnType("boolean"); - - b.HasKey("Id"); - - b.HasIndex("AuthorId"); - - b.HasIndex("ParentId"); - - b.HasIndex("ReceiverId"); - - b.ToTable("Comment"); - }); - - modelBuilder.Entity("Yavsc.Models.BlogSpotPublication", b => - { - b.Property("BlogpostId") - .HasColumnType("bigint"); - - b.HasKey("BlogpostId"); - - b.ToTable("blogSpotPublications"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Property("OwnerId") - .HasColumnType("text"); - - b.HasKey("OwnerId"); - - b.ToTable("Schedule"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("PeriodEnd") - .HasColumnType("timestamp with time zone"); - - b.Property("PeriodStart") - .HasColumnType("timestamp with time zone"); - - b.Property("Reccurence") - .HasColumnType("integer"); - - b.Property("ScheduleOwnerId") - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ScheduleOwnerId"); - - b.HasIndex("PeriodStart", "PeriodEnd"); - - b.ToTable("ScheduledEvent"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.Property("ConnectionId") - .HasColumnType("text"); - - b.Property("ApplicationUserId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Connected") - .HasColumnType("boolean"); - - b.Property("UserAgent") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("ConnectionId"); - - b.HasIndex("ApplicationUserId"); - - b.ToTable("ChatConnection"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.Property("Name") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("LatestJoinPart") - .HasColumnType("timestamp with time zone"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Topic") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Name"); - - b.HasIndex("OwnerId"); - - b.ToTable("ChatRoom"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomAccess", b => - { - b.Property("ChannelName") - .HasColumnType("text"); - - b.Property("UserId") - .HasColumnType("text"); - - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Level") - .HasColumnType("integer"); - - b.HasKey("ChannelName", "UserId"); - - b.HasIndex("UserId"); - - b.ToTable("ChatRoomAccess"); - }); - - modelBuilder.Entity("Yavsc.Models.Cratie.Option", b => - { - b.Property("Code") - .HasColumnType("text"); - - b.Property("CodeScrutin") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Code", "CodeScrutin"); - - b.ToTable("Option"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Blue") - .HasColumnType("smallint"); - - b.Property("Green") - .HasColumnType("smallint"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Red") - .HasColumnType("smallint"); - - b.HasKey("Id"); - - b.ToTable("Color"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("Summary") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("Form"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("ActionDistance") - .HasColumnType("integer"); - - b.Property("CarePrice") - .HasColumnType("numeric"); - - b.Property("FlatFeeDiscount") - .HasColumnType("numeric"); - - b.Property("HalfBalayagePrice") - .HasColumnType("numeric"); - - b.Property("HalfBrushingPrice") - .HasColumnType("numeric"); - - b.Property("HalfColorPrice") - .HasColumnType("numeric"); - - b.Property("HalfDefrisPrice") - .HasColumnType("numeric"); - - b.Property("HalfFoldingPrice") - .HasColumnType("numeric"); - - b.Property("HalfMechPrice") - .HasColumnType("numeric"); - - b.Property("HalfMultiColorPrice") - .HasColumnType("numeric"); - - b.Property("HalfPermanentPrice") - .HasColumnType("numeric"); - - b.Property("KidCutPrice") - .HasColumnType("numeric"); - - b.Property("LongBalayagePrice") - .HasColumnType("numeric"); - - b.Property("LongBrushingPrice") - .HasColumnType("numeric"); - - b.Property("LongColorPrice") - .HasColumnType("numeric"); - - b.Property("LongDefrisPrice") - .HasColumnType("numeric"); - - b.Property("LongFoldingPrice") - .HasColumnType("numeric"); - - b.Property("LongMechPrice") - .HasColumnType("numeric"); - - b.Property("LongMultiColorPrice") - .HasColumnType("numeric"); - - b.Property("LongPermanentPrice") - .HasColumnType("numeric"); - - b.Property("ManBrushPrice") - .HasColumnType("numeric"); - - b.Property("ManCutPrice") - .HasColumnType("numeric"); - - b.Property("ScheduleOwnerId") - .HasColumnType("text"); - - b.Property("ShampooPrice") - .HasColumnType("numeric"); - - b.Property("ShortBalayagePrice") - .HasColumnType("numeric"); - - b.Property("ShortBrushingPrice") - .HasColumnType("numeric"); - - b.Property("ShortColorPrice") - .HasColumnType("numeric"); - - b.Property("ShortDefrisPrice") - .HasColumnType("numeric"); - - b.Property("ShortFoldingPrice") - .HasColumnType("numeric"); - - b.Property("ShortMechPrice") - .HasColumnType("numeric"); - - b.Property("ShortMultiColorPrice") - .HasColumnType("numeric"); - - b.Property("ShortPermanentPrice") - .HasColumnType("numeric"); - - b.Property("WomenHalfCutPrice") - .HasColumnType("numeric"); - - b.Property("WomenLongCutPrice") - .HasColumnType("numeric"); - - b.Property("WomenShortCutPrice") - .HasColumnType("numeric"); - - b.HasKey("UserId"); - - b.HasIndex("ScheduleOwnerId"); - - b.ToTable("BrusherProfile"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Accepted") - .HasColumnType("boolean"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("AdditionalInfo") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Decided") - .HasColumnType("boolean"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("EventDate") - .HasColumnType("timestamp with time zone"); - - b.Property("LocationId") - .HasColumnType("bigint"); - - b.Property("PaymentId") - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PrestationId") - .HasColumnType("bigint"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("SelectedProfileUserId") - .HasColumnType("text"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("LocationId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.HasIndex("PrestationId"); - - b.HasIndex("SelectedProfileUserId"); - - b.ToTable("HairCutQueries"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Accepted") - .HasColumnType("boolean"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Decided") - .HasColumnType("boolean"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("EventDate") - .HasColumnType("timestamp with time zone"); - - b.Property("LocationId") - .HasColumnType("bigint"); - - b.Property("PaymentId") - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("LocationId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.ToTable("HairMultiCutQueries"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Cares") - .HasColumnType("boolean"); - - b.Property("Cut") - .HasColumnType("boolean"); - - b.Property("Dressing") - .HasColumnType("integer"); - - b.Property("Gender") - .HasColumnType("integer"); - - b.Property("Length") - .HasColumnType("integer"); - - b.Property("Shampoo") - .HasColumnType("boolean"); - - b.Property("Tech") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("HairPrestation"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("PrestationId") - .HasColumnType("bigint"); - - b.Property("QueryId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("PrestationId"); - - b.HasIndex("QueryId"); - - b.ToTable("HairPrestationCollectionItem"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Brand") - .IsRequired() - .HasColumnType("text"); - - b.Property("ColorId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("ColorId"); - - b.ToTable("HairTaint"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.Property("TaintId") - .HasColumnType("bigint"); - - b.Property("PrestationId") - .HasColumnType("bigint"); - - b.HasKey("TaintId", "PrestationId"); - - b.HasIndex("PrestationId"); - - b.ToTable("HairTaintInstance"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Evolution.Feature", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("ShortName") - .IsRequired() - .HasColumnType("text"); - - b.Property("Status") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("Feature"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("FeatureId") - .HasColumnType("bigint"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("FeatureId"); - - b.ToTable("Bug"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.DeviceDeclaration", b => - { - b.Property("DeviceId") - .HasColumnType("text"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasColumnType("timestamp with time zone") - .HasDefaultValueSql("LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("LatestActivityUpdate") - .HasColumnType("timestamp with time zone"); - - b.Property("Model") - .IsRequired() - .HasColumnType("text"); - - b.Property("Platform") - .IsRequired() - .HasColumnType("text"); - - b.Property("Version") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("DeviceId"); - - b.HasIndex("DeviceOwnerId"); - - b.ToTable("DeviceDeclaration"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Depth") - .HasColumnType("numeric"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("Height") - .HasColumnType("numeric"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Price") - .HasColumnType("numeric"); - - b.Property("Public") - .HasColumnType("boolean"); - - b.Property("Weight") - .HasColumnType("numeric"); - - b.Property("Width") - .HasColumnType("numeric"); - - b.HasKey("Id"); - - b.ToTable("Products"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ContextId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Public") - .HasColumnType("boolean"); - - b.HasKey("Id"); - - b.HasIndex("ContextId"); - - b.ToTable("Services"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("For") - .HasColumnType("smallint"); - - b.Property("Message") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Sender") - .IsRequired() - .HasColumnType("text"); - - b.Property("Topic") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.ToTable("Announce"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DismissClicked", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("NotificationId") - .HasColumnType("bigint"); - - b.HasKey("UserId", "NotificationId"); - - b.HasIndex("NotificationId"); - - b.ToTable("DismissClicked"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("character varying(255)"); - - b.HasKey("Id"); - - b.ToTable("Instrument"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.InstrumentRating", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("InstrumentId") - .HasColumnType("bigint"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.HasAlternateKey("InstrumentId", "OwnerId"); - - b.HasIndex("OwnerId"); - - b.ToTable("InstrumentRating"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId") - .HasColumnType("text"); - - b.Property("DjSettingsUserId") - .HasColumnType("text"); - - b.Property("GeneralSettingsUserId") - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.Property("TendencyId") - .HasColumnType("bigint"); - - b.HasKey("OwnerProfileId"); - - b.HasIndex("DjSettingsUserId"); - - b.HasIndex("GeneralSettingsUserId"); - - b.ToTable("MusicalPreference"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("character varying(255)"); - - b.HasKey("Id"); - - b.ToTable("MusicalTendency"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("SoundCloudId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("DjSettings"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("GeneralSettings"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId") - .HasColumnType("bigint"); - - b.Property("UserId") - .HasColumnType("text"); - - b.HasKey("InstrumentId", "UserId"); - - b.HasIndex("UserId"); - - b.ToTable("Instrumentation"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Property("CreationToken") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("ExecutorId") - .IsRequired() - .HasColumnType("text"); - - b.Property("OrderReference") - .IsRequired() - .HasColumnType("text"); - - b.Property("PaypalPayerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("State") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("CreationToken"); - - b.HasIndex("ExecutorId"); - - b.ToTable("PayPalPayment"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ApplicationUserId") - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Public") - .HasColumnType("boolean"); - - b.HasKey("Id"); - - b.HasIndex("ApplicationUserId"); - - b.ToTable("Circle"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId") - .HasColumnType("text"); - - b.Property("CircleId") - .HasColumnType("bigint"); - - b.HasKey("MemberId", "CircleId"); - - b.HasIndex("CircleId"); - - b.ToTable("CircleMembers"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId") - .HasColumnType("text"); - - b.Property("UserId") - .HasColumnType("text"); - - b.Property("AddressId") - .HasColumnType("bigint"); - - b.Property("ApplicationUserId") - .HasColumnType("text"); - - b.Property("EMail") - .IsRequired() - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("OwnerId", "UserId"); - - b.HasIndex("AddressId"); - - b.HasIndex("ApplicationUserId"); - - b.ToTable("Contact"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.Property("HRef") - .HasColumnType("text"); - - b.Property("Method") - .HasColumnType("text"); - - b.Property("BrusherProfileUserId") - .HasColumnType("text"); - - b.Property("ContentType") - .IsRequired() - .HasColumnType("text"); - - b.Property("PayPalPaymentCreationToken") - .HasColumnType("text"); - - b.Property("Rel") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("HRef", "Method"); - - b.HasIndex("BrusherProfileUserId"); - - b.HasIndex("PayPalPaymentCreationToken"); - - b.ToTable("HyperLink"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Address") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("Latitude") - .HasColumnType("double precision"); - - b.Property("Longitude") - .HasColumnType("double precision"); - - b.HasKey("Id"); - - b.ToTable("Locations"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostalAddress", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("City") - .IsRequired() - .HasColumnType("text"); - - b.Property("Country") - .IsRequired() - .HasColumnType("text"); - - b.Property("PostalCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("Province") - .IsRequired() - .HasColumnType("text"); - - b.Property("State") - .IsRequired() - .HasColumnType("text"); - - b.Property("Street1") - .IsRequired() - .HasColumnType("text"); - - b.Property("Street2") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("PostalAddress"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("Tags"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("SiteSkills"); - }); - - modelBuilder.Entity("Yavsc.Models.Streaming.LiveFlow", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("DifferedFileName") - .IsRequired() - .HasColumnType("text"); - - b.Property("MediaType") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Pitch") - .IsRequired() - .HasColumnType("text"); - - b.Property("SequenceNumber") - .HasColumnType("integer"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.ToTable("LiveFlow"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("Hidden") - .HasColumnType("boolean"); - - b.Property("ModeratorGroupName") - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("ParentCode") - .HasColumnType("text"); - - b.Property("Photo") - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.Property("SettingsClassName") - .HasColumnType("text"); - - b.Property("UserCreated") - .HasColumnType("text"); - - b.Property("UserModified") - .HasColumnType("text"); - - b.HasKey("Code"); - - b.HasIndex("ParentCode"); - - b.ToTable("Activities"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("FormationSettingsUserId") - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("WorkingForId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("FormationSettingsUserId"); - - b.HasIndex("PerformerId"); - - b.HasIndex("WorkingForId"); - - b.ToTable("CoWorking"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ActionName") - .IsRequired() - .HasColumnType("text"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.ToTable("CommandForm"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId") - .HasColumnType("text"); - - b.Property("AcceptNotifications") - .HasColumnType("boolean"); - - b.Property("AcceptPublicContact") - .HasColumnType("boolean"); - - b.Property("Active") - .HasColumnType("boolean"); - - b.Property("MaxDailyCost") - .HasColumnType("integer"); - - b.Property("MinDailyCost") - .HasColumnType("integer"); - - b.Property("OrganizationAddressId") - .HasColumnType("bigint"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.Property("SIREN") - .IsRequired() - .HasColumnType("text"); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients") - .HasColumnType("boolean"); - - b.Property("WebSite") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("PerformerId"); - - b.HasIndex("OrganizationAddressId"); - - b.ToTable("Performers"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("DisplayName") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("FormationSettings"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Accepted") - .HasColumnType("boolean"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Decided") - .HasColumnType("boolean"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("EventDate") - .HasColumnType("timestamp with time zone"); - - b.Property("LocationId") - .HasColumnType("bigint"); - - b.Property("LocationType") - .HasColumnType("integer"); - - b.Property("PaymentId") - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("Reason") - .IsRequired() - .HasColumnType("text"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("LocationId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.ToTable("RdvQueries"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode") - .HasColumnType("text"); - - b.Property("UserId") - .HasColumnType("text"); - - b.Property("Weight") - .HasColumnType("integer"); - - b.HasKey("DoesCode", "UserId"); - - b.HasIndex("UserId"); - - b.ToTable("UserActivities"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Calendar.Period", b => - { - b.Property("Start") - .HasColumnType("timestamp with time zone"); - - b.Property("End") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Start", "End"); - - b.ToTable("Period"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.EMailing.MailingTemplate", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("Body") - .IsRequired() - .HasMaxLength(65536) - .HasColumnType("character varying(65536)"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("ReplyToAddress") - .IsRequired() - .HasColumnType("text"); - - b.Property("ToSend") - .HasColumnType("integer"); - - b.Property("Topic") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("MailingTemplate"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Accepted") - .HasColumnType("boolean"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Decided") - .HasColumnType("boolean"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("GitId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PaymentId") - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.Property("Version") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("GitId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.ToTable("Project"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("ProjectId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("ProjectId"); - - b.ToTable("ProjectBuildConfiguration"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Branch") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Path") - .IsRequired() - .HasColumnType("text"); - - b.Property("Url") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.ToTable("GitRepositoryReference"); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null) - .WithMany() - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null) - .WithMany() - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "TargetUser") - .WithMany() - .HasForeignKey("TargetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TargetUser"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany("BlackList") - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost", "Target") - .WithMany("ACL") - .HasForeignKey("BlogPostId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Circle", "Allowed") - .WithMany() - .HasForeignKey("CircleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Allowed"); - - b.Navigation("Target"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithOne("AccountBalance") - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Relationship.Location", "PostalAddress") - .WithMany() - .HasForeignKey("PostalAddressId"); - - b.Navigation("PostalAddress"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance", "Balance") - .WithMany() - .HasForeignKey("BalanceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Balance"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany("BankInfo") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate", null) - .WithMany("Bill") - .HasForeignKey("EstimateId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate", null) - .WithMany("Bill") - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery", "Query") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Owner"); - - b.Navigation("Query"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Author") - .WithMany("Posts") - .HasForeignKey("AuthorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Author"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost", "Post") - .WithMany("Tags") - .HasForeignKey("PostId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Tag", "Tag") - .WithMany() - .HasForeignKey("TagId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Post"); - - b.Navigation("Tag"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Author") - .WithMany() - .HasForeignKey("AuthorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Blog.Comment", "Parent") - .WithMany("Children") - .HasForeignKey("ParentId"); - - b.HasOne("Yavsc.Models.Blog.BlogPost", "Post") - .WithMany("Comments") - .HasForeignKey("ReceiverId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Author"); - - b.Navigation("Parent"); - - b.Navigation("Post"); - }); - - modelBuilder.Entity("Yavsc.Models.BlogSpotPublication", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost", "BlogPost") - .WithMany() - .HasForeignKey("BlogpostId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("BlogPost"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule", null) - .WithMany("Events") - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Server.Models.Calendar.Period", "Period") - .WithMany() - .HasForeignKey("PeriodStart", "PeriodEnd") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Period"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany("Connections") - .HasForeignKey("ApplicationUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany("Rooms") - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomAccess", b => - { - b.HasOne("Yavsc.Models.Chat.ChatRoom", "Room") - .WithMany("Moderation") - .HasForeignKey("ChannelName") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany("RoomAccess") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Room"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule", "Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "BaseProfile") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("BaseProfile"); - - b.Navigation("Schedule"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Location", "Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation", "Prestation") - .WithMany() - .HasForeignKey("PrestationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.BrusherProfile", "SelectedProfile") - .WithMany() - .HasForeignKey("SelectedProfileUserId"); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("Location"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Prestation"); - - b.Navigation("Regularisation"); - - b.Navigation("SelectedProfile"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Location", "Location") - .WithMany() - .HasForeignKey("LocationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("Location"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Regularisation"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation", "Prestation") - .WithMany() - .HasForeignKey("PrestationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery", "Query") - .WithMany("Prestations") - .HasForeignKey("QueryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Prestation"); - - b.Navigation("Query"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color", "Color") - .WithMany() - .HasForeignKey("ColorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Color"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation", "Prestation") - .WithMany("Taints") - .HasForeignKey("PrestationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.HairTaint", "Taint") - .WithMany() - .HasForeignKey("TaintId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Prestation"); - - b.Navigation("Taint"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.HasOne("Yavsc.Models.IT.Evolution.Feature", "False") - .WithMany() - .HasForeignKey("FeatureId"); - - b.Navigation("False"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.DeviceDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "DeviceOwner") - .WithMany("DeviceDeclaration") - .HasForeignKey("DeviceOwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("DeviceOwner"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany("Services") - .HasForeignKey("ContextId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Context"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DismissClicked", b => - { - b.HasOne("Yavsc.Abstract.Models.Messaging.Notification", "Notified") - .WithMany() - .HasForeignKey("NotificationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Notified"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.InstrumentRating", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument", "Instrument") - .WithMany() - .HasForeignKey("InstrumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "Profile") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Instrument"); - - b.Navigation("Profile"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings", null) - .WithMany("SoundColor") - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings", null) - .WithMany("SoundColor") - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument", "Tool") - .WithMany() - .HasForeignKey("InstrumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tool"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Executor") - .WithMany() - .HasForeignKey("ExecutorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Executor"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany("Circles") - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle", "Circle") - .WithMany("Members") - .HasForeignKey("CircleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Member") - .WithMany("Membership") - .HasForeignKey("MemberId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Circle"); - - b.Navigation("Member"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.Relationship.PostalAddress", "PostalAddress") - .WithMany() - .HasForeignKey("AddressId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany("Book") - .HasForeignKey("ApplicationUserId"); - - b.Navigation("PostalAddress"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.HasOne("Yavsc.Models.Haircut.BrusherProfile", null) - .WithMany("Links") - .HasForeignKey("BrusherProfileUserId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", null) - .WithMany("Links") - .HasForeignKey("PayPalPaymentCreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Streaming.LiveFlow", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Parent") - .WithMany("Children") - .HasForeignKey("ParentCode"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings", null) - .WithMany("CoWorking") - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "Performer") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "WorkingFor") - .WithMany() - .HasForeignKey("WorkingForId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Performer"); - - b.Navigation("WorkingFor"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany("Forms") - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Context"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location", "OrganizationAddress") - .WithMany() - .HasForeignKey("OrganizationAddressId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Performer") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("OrganizationAddress"); - - b.Navigation("Performer"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Location", "Location") - .WithMany() - .HasForeignKey("LocationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("Location"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Regularisation"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Does") - .WithMany() - .HasForeignKey("DoesCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "User") - .WithMany("Activity") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Does"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", "Repository") - .WithMany() - .HasForeignKey("GitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Regularisation"); - - b.Navigation("Repository"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.HasOne("Yavsc.Server.Models.IT.Project", "TargetProject") - .WithMany("Configurations") - .HasForeignKey("ProjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TargetProject"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Navigation("AccountBalance"); - - b.Navigation("BankInfo"); - - b.Navigation("BlackList"); - - b.Navigation("Book"); - - b.Navigation("Circles"); - - b.Navigation("Connections"); - - b.Navigation("DeviceDeclaration"); - - b.Navigation("Membership"); - - b.Navigation("Posts"); - - b.Navigation("RoomAccess"); - - b.Navigation("Rooms"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Navigation("Bill"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Navigation("Bill"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.Navigation("ACL"); - - b.Navigation("Comments"); - - b.Navigation("Tags"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.Navigation("Children"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Navigation("Events"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.Navigation("Moderation"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Navigation("Links"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Navigation("Prestations"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Navigation("Taints"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Navigation("SoundColor"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Navigation("SoundColor"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Navigation("Links"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Navigation("Members"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Navigation("Children"); - - b.Navigation("Forms"); - - b.Navigation("Services"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Navigation("Activity"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Navigation("CoWorking"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.Navigation("Configurations"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/Yavsc.Server/Migrations/20250715143821_nullPaimentIdOnQuery.cs b/src/Yavsc.Server/Migrations/20250715143821_nullPaimentIdOnQuery.cs deleted file mode 100644 index 81e80271..00000000 --- a/src/Yavsc.Server/Migrations/20250715143821_nullPaimentIdOnQuery.cs +++ /dev/null @@ -1,182 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace Yavsc.Migrations -{ - /// - public partial class nullPaimentIdOnQuery : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey( - name: "FK_HairCutQueries_PayPalPayment_PaymentId", - table: "HairCutQueries"); - - migrationBuilder.DropForeignKey( - name: "FK_HairMultiCutQueries_PayPalPayment_PaymentId", - table: "HairMultiCutQueries"); - - migrationBuilder.DropForeignKey( - name: "FK_Project_PayPalPayment_PaymentId", - table: "Project"); - - migrationBuilder.DropForeignKey( - name: "FK_RdvQueries_PayPalPayment_PaymentId", - table: "RdvQueries"); - - migrationBuilder.AlterColumn( - name: "PaymentId", - table: "RdvQueries", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "PaymentId", - table: "Project", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "PaymentId", - table: "HairMultiCutQueries", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AlterColumn( - name: "PaymentId", - table: "HairCutQueries", - type: "text", - nullable: true, - oldClrType: typeof(string), - oldType: "text"); - - migrationBuilder.AddForeignKey( - name: "FK_HairCutQueries_PayPalPayment_PaymentId", - table: "HairCutQueries", - column: "PaymentId", - principalTable: "PayPalPayment", - principalColumn: "CreationToken"); - - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQueries_PayPalPayment_PaymentId", - table: "HairMultiCutQueries", - column: "PaymentId", - principalTable: "PayPalPayment", - principalColumn: "CreationToken"); - - migrationBuilder.AddForeignKey( - name: "FK_Project_PayPalPayment_PaymentId", - table: "Project", - column: "PaymentId", - principalTable: "PayPalPayment", - principalColumn: "CreationToken"); - - migrationBuilder.AddForeignKey( - name: "FK_RdvQueries_PayPalPayment_PaymentId", - table: "RdvQueries", - column: "PaymentId", - principalTable: "PayPalPayment", - principalColumn: "CreationToken"); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey( - name: "FK_HairCutQueries_PayPalPayment_PaymentId", - table: "HairCutQueries"); - - migrationBuilder.DropForeignKey( - name: "FK_HairMultiCutQueries_PayPalPayment_PaymentId", - table: "HairMultiCutQueries"); - - migrationBuilder.DropForeignKey( - name: "FK_Project_PayPalPayment_PaymentId", - table: "Project"); - - migrationBuilder.DropForeignKey( - name: "FK_RdvQueries_PayPalPayment_PaymentId", - table: "RdvQueries"); - - migrationBuilder.AlterColumn( - name: "PaymentId", - table: "RdvQueries", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PaymentId", - table: "Project", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PaymentId", - table: "HairMultiCutQueries", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PaymentId", - table: "HairCutQueries", - type: "text", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "text", - oldNullable: true); - - migrationBuilder.AddForeignKey( - name: "FK_HairCutQueries_PayPalPayment_PaymentId", - table: "HairCutQueries", - column: "PaymentId", - principalTable: "PayPalPayment", - principalColumn: "CreationToken", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_HairMultiCutQueries_PayPalPayment_PaymentId", - table: "HairMultiCutQueries", - column: "PaymentId", - principalTable: "PayPalPayment", - principalColumn: "CreationToken", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_Project_PayPalPayment_PaymentId", - table: "Project", - column: "PaymentId", - principalTable: "PayPalPayment", - principalColumn: "CreationToken", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_RdvQueries_PayPalPayment_PaymentId", - table: "RdvQueries", - column: "PaymentId", - principalTable: "PayPalPayment", - principalColumn: "CreationToken", - onDelete: ReferentialAction.Cascade); - } - } -} diff --git a/src/Yavsc.Server/Migrations/20250715144838_dbCleanup.Designer.cs b/src/Yavsc.Server/Migrations/20250715144838_dbCleanup.Designer.cs deleted file mode 100644 index 3586c2fc..00000000 --- a/src/Yavsc.Server/Migrations/20250715144838_dbCleanup.Designer.cs +++ /dev/null @@ -1,3445 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; -using Yavsc.Models; - -#nullable disable - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20250715144838_dbCleanup")] - partial class dbCleanup - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "9.0.7") - .HasAnnotation("Relational:MaxIdentifierLength", 63); - - NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasColumnType("text"); - - b.Property("Name") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("NormalizedName") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .IsUnique() - .HasDatabaseName("RoleNameIndex"); - - b.ToTable("AspNetRoles", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ClaimType") - .HasColumnType("text"); - - b.Property("ClaimValue") - .HasColumnType("text"); - - b.Property("RoleId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("RoleId"); - - b.ToTable("AspNetRoleClaims", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ClaimType") - .HasColumnType("text"); - - b.Property("ClaimValue") - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.ToTable("AspNetUserClaims", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => - { - b.Property("LoginProvider") - .HasColumnType("text"); - - b.Property("ProviderKey") - .HasColumnType("text"); - - b.Property("ProviderDisplayName") - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasIndex("UserId"); - - b.ToTable("AspNetUserLogins", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("RoleId") - .HasColumnType("text"); - - b.HasKey("UserId", "RoleId"); - - b.HasIndex("RoleId"); - - b.ToTable("AspNetUserRoles", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("LoginProvider") - .HasColumnType("text"); - - b.Property("Name") - .HasColumnType("text"); - - b.Property("Value") - .HasColumnType("text"); - - b.HasKey("UserId", "LoginProvider", "Name"); - - b.ToTable("AspNetUserTokens", (string)null); - }); - - modelBuilder.Entity("Yavsc.Abstract.Identity.ClientProviderInfo", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("Avatar") - .IsRequired() - .HasColumnType("text"); - - b.Property("BillingAddressId") - .HasColumnType("bigint"); - - b.Property("EMail") - .IsRequired() - .HasColumnType("text"); - - b.Property("Phone") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserName") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("ClientProviderInfo"); - }); - - modelBuilder.Entity("Yavsc.Abstract.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Target") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("body") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("click_action") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("color") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("icon") - .ValueGeneratedOnAdd() - .HasMaxLength(512) - .HasColumnType("character varying(512)") - .HasDefaultValue("exclam"); - - b.Property("sound") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("tag") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("title") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("character varying(1024)"); - - b.HasKey("Id"); - - b.ToTable("Notification"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Reason") - .IsRequired() - .HasColumnType("text"); - - b.Property("TargetId") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("TargetId"); - - b.ToTable("Ban"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.HasIndex("UserId"); - - b.ToTable("BlackListed"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId") - .HasColumnType("bigint"); - - b.Property("BlogPostId") - .HasColumnType("bigint"); - - b.Property("Comment") - .HasColumnType("boolean"); - - b.HasKey("CircleId", "BlogPostId"); - - b.HasIndex("BlogPostId"); - - b.ToTable("CircleAuthorizationToBlogPost"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("ContactCredits") - .HasColumnType("bigint"); - - b.Property("Credits") - .HasColumnType("numeric"); - - b.HasKey("UserId"); - - b.ToTable("BankStatus"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("AccessFailedCount") - .HasColumnType("integer"); - - b.Property("AllowMonthlyEmail") - .HasColumnType("boolean"); - - b.Property("Avatar") - .ValueGeneratedOnAdd() - .HasMaxLength(512) - .HasColumnType("character varying(512)") - .HasDefaultValue("/images/Users/icon_user.png"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasColumnType("text"); - - b.Property("DedicatedGoogleCalendar") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("DiskQuota") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasDefaultValue(524288000L); - - b.Property("DiskUsage") - .HasColumnType("bigint"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("EmailConfirmed") - .HasColumnType("boolean"); - - b.Property("FullName") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("LockoutEnabled") - .HasColumnType("boolean"); - - b.Property("LockoutEnd") - .HasColumnType("timestamp with time zone"); - - b.Property("MaxFileSize") - .HasColumnType("bigint"); - - b.Property("NormalizedEmail") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("NormalizedUserName") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("PasswordHash") - .HasColumnType("text"); - - b.Property("PhoneNumber") - .HasColumnType("text"); - - b.Property("PhoneNumberConfirmed") - .HasColumnType("boolean"); - - b.Property("PostalAddressId") - .HasColumnType("bigint"); - - b.Property("SecurityStamp") - .HasColumnType("text"); - - b.Property("TwoFactorEnabled") - .HasColumnType("boolean"); - - b.Property("UserName") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.HasKey("Id"); - - b.HasAlternateKey("Email"); - - b.HasIndex("NormalizedEmail") - .HasDatabaseName("EmailIndex"); - - b.HasIndex("NormalizedUserName") - .IsUnique() - .HasDatabaseName("UserNameIndex"); - - b.HasIndex("PostalAddressId"); - - b.ToTable("AspNetUsers", (string)null); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("text"); - - b.Property("AccessTokenLifetime") - .HasColumnType("integer"); - - b.Property("Active") - .HasColumnType("boolean"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("character varying(128)"); - - b.Property("LogoutRedirectUri") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("RedirectUri") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("RefreshTokenLifeTime") - .HasColumnType("integer"); - - b.Property("Secret") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("Type") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("Applications"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Scope", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("character varying(1024)"); - - b.HasKey("Id"); - - b.ToTable("Scopes"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("BalanceId") - .IsRequired() - .HasColumnType("text"); - - b.Property("ExecDate") - .HasColumnType("timestamp with time zone"); - - b.Property("Impact") - .HasColumnType("numeric"); - - b.Property("Reason") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("BalanceId"); - - b.ToTable("BalanceImpact"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AccountNumber") - .IsRequired() - .HasColumnType("text"); - - b.Property("BIC") - .IsRequired() - .HasColumnType("text"); - - b.Property("BankCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("BankedKey") - .HasColumnType("integer"); - - b.Property("IBAN") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.Property("WicketCode") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.ToTable("BankIdentity"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Count") - .HasColumnType("integer"); - - b.Property("Currency") - .IsRequired() - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("EstimateId") - .HasColumnType("bigint"); - - b.Property("EstimateTemplateId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("UnitaryCost") - .HasColumnType("numeric"); - - b.HasKey("Id"); - - b.HasIndex("EstimateId"); - - b.HasIndex("EstimateTemplateId"); - - b.ToTable("CommandLine"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AttachedFilesString") - .IsRequired() - .HasColumnType("text"); - - b.Property("AttachedGraphicsString") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientValidationDate") - .HasColumnType("timestamp with time zone"); - - b.Property("CommandId") - .HasColumnType("bigint"); - - b.Property("CommandType") - .IsRequired() - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("ProviderValidationDate") - .HasColumnType("timestamp with time zone"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ClientId"); - - b.HasIndex("CommandId"); - - b.HasIndex("OwnerId"); - - b.ToTable("Estimates"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("EstimateTemplates"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN") - .HasColumnType("text"); - - b.HasKey("SIREN"); - - b.ToTable("ExceptionsSIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AuthorId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Content") - .HasMaxLength(56224) - .HasColumnType("character varying(56224)"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Photo") - .HasMaxLength(1024) - .HasColumnType("character varying(1024)"); - - b.Property("Title") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("character varying(1024)"); - - b.Property("UserCreated") - .HasColumnType("text"); - - b.Property("UserModified") - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("AuthorId"); - - b.ToTable("BlogSpot"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.Property("PostId") - .HasColumnType("bigint"); - - b.Property("TagId") - .HasColumnType("bigint"); - - b.HasKey("PostId", "TagId"); - - b.HasIndex("TagId"); - - b.ToTable("BlogTag"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AuthorId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Content") - .IsRequired() - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("ParentId") - .HasColumnType("bigint"); - - b.Property("ReceiverId") - .HasColumnType("bigint"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("Visible") - .HasColumnType("boolean"); - - b.HasKey("Id"); - - b.HasIndex("AuthorId"); - - b.HasIndex("ParentId"); - - b.HasIndex("ReceiverId"); - - b.ToTable("Comment"); - }); - - modelBuilder.Entity("Yavsc.Models.BlogSpotPublication", b => - { - b.Property("BlogpostId") - .HasColumnType("bigint"); - - b.HasKey("BlogpostId"); - - b.ToTable("blogSpotPublications"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Property("OwnerId") - .HasColumnType("text"); - - b.HasKey("OwnerId"); - - b.ToTable("Schedule"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("PeriodEnd") - .HasColumnType("timestamp with time zone"); - - b.Property("PeriodStart") - .HasColumnType("timestamp with time zone"); - - b.Property("Reccurence") - .HasColumnType("integer"); - - b.Property("ScheduleOwnerId") - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ScheduleOwnerId"); - - b.HasIndex("PeriodStart", "PeriodEnd"); - - b.ToTable("ScheduledEvent"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.Property("ConnectionId") - .HasColumnType("text"); - - b.Property("ApplicationUserId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Connected") - .HasColumnType("boolean"); - - b.Property("UserAgent") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("ConnectionId"); - - b.HasIndex("ApplicationUserId"); - - b.ToTable("ChatConnection"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.Property("Name") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("LatestJoinPart") - .HasColumnType("timestamp with time zone"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Topic") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Name"); - - b.HasIndex("OwnerId"); - - b.ToTable("ChatRoom"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomAccess", b => - { - b.Property("ChannelName") - .HasColumnType("text"); - - b.Property("UserId") - .HasColumnType("text"); - - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Level") - .HasColumnType("integer"); - - b.HasKey("ChannelName", "UserId"); - - b.HasIndex("UserId"); - - b.ToTable("ChatRoomAccess"); - }); - - modelBuilder.Entity("Yavsc.Models.Cratie.Option", b => - { - b.Property("Code") - .HasColumnType("text"); - - b.Property("CodeScrutin") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Code", "CodeScrutin"); - - b.ToTable("Option"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Blue") - .HasColumnType("smallint"); - - b.Property("Green") - .HasColumnType("smallint"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Red") - .HasColumnType("smallint"); - - b.HasKey("Id"); - - b.ToTable("Color"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("Summary") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("Form"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("ActionDistance") - .HasColumnType("integer"); - - b.Property("CarePrice") - .HasColumnType("numeric"); - - b.Property("FlatFeeDiscount") - .HasColumnType("numeric"); - - b.Property("HalfBalayagePrice") - .HasColumnType("numeric"); - - b.Property("HalfBrushingPrice") - .HasColumnType("numeric"); - - b.Property("HalfColorPrice") - .HasColumnType("numeric"); - - b.Property("HalfDefrisPrice") - .HasColumnType("numeric"); - - b.Property("HalfFoldingPrice") - .HasColumnType("numeric"); - - b.Property("HalfMechPrice") - .HasColumnType("numeric"); - - b.Property("HalfMultiColorPrice") - .HasColumnType("numeric"); - - b.Property("HalfPermanentPrice") - .HasColumnType("numeric"); - - b.Property("KidCutPrice") - .HasColumnType("numeric"); - - b.Property("LongBalayagePrice") - .HasColumnType("numeric"); - - b.Property("LongBrushingPrice") - .HasColumnType("numeric"); - - b.Property("LongColorPrice") - .HasColumnType("numeric"); - - b.Property("LongDefrisPrice") - .HasColumnType("numeric"); - - b.Property("LongFoldingPrice") - .HasColumnType("numeric"); - - b.Property("LongMechPrice") - .HasColumnType("numeric"); - - b.Property("LongMultiColorPrice") - .HasColumnType("numeric"); - - b.Property("LongPermanentPrice") - .HasColumnType("numeric"); - - b.Property("ManBrushPrice") - .HasColumnType("numeric"); - - b.Property("ManCutPrice") - .HasColumnType("numeric"); - - b.Property("ScheduleOwnerId") - .HasColumnType("text"); - - b.Property("ShampooPrice") - .HasColumnType("numeric"); - - b.Property("ShortBalayagePrice") - .HasColumnType("numeric"); - - b.Property("ShortBrushingPrice") - .HasColumnType("numeric"); - - b.Property("ShortColorPrice") - .HasColumnType("numeric"); - - b.Property("ShortDefrisPrice") - .HasColumnType("numeric"); - - b.Property("ShortFoldingPrice") - .HasColumnType("numeric"); - - b.Property("ShortMechPrice") - .HasColumnType("numeric"); - - b.Property("ShortMultiColorPrice") - .HasColumnType("numeric"); - - b.Property("ShortPermanentPrice") - .HasColumnType("numeric"); - - b.Property("WomenHalfCutPrice") - .HasColumnType("numeric"); - - b.Property("WomenLongCutPrice") - .HasColumnType("numeric"); - - b.Property("WomenShortCutPrice") - .HasColumnType("numeric"); - - b.HasKey("UserId"); - - b.HasIndex("ScheduleOwnerId"); - - b.ToTable("BrusherProfile"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Accepted") - .HasColumnType("boolean"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("AdditionalInfo") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Decided") - .HasColumnType("boolean"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("EventDate") - .HasColumnType("timestamp with time zone"); - - b.Property("LocationId") - .HasColumnType("bigint"); - - b.Property("PaymentId") - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PrestationId") - .HasColumnType("bigint"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("SelectedProfileUserId") - .HasColumnType("text"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("LocationId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.HasIndex("PrestationId"); - - b.HasIndex("SelectedProfileUserId"); - - b.ToTable("HairCutQueries"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Accepted") - .HasColumnType("boolean"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Decided") - .HasColumnType("boolean"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("EventDate") - .HasColumnType("timestamp with time zone"); - - b.Property("LocationId") - .HasColumnType("bigint"); - - b.Property("PaymentId") - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("LocationId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.ToTable("HairMultiCutQueries"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Cares") - .HasColumnType("boolean"); - - b.Property("Cut") - .HasColumnType("boolean"); - - b.Property("Dressing") - .HasColumnType("integer"); - - b.Property("Gender") - .HasColumnType("integer"); - - b.Property("Length") - .HasColumnType("integer"); - - b.Property("Shampoo") - .HasColumnType("boolean"); - - b.Property("Tech") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("HairPrestation"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("PrestationId") - .HasColumnType("bigint"); - - b.Property("QueryId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("PrestationId"); - - b.HasIndex("QueryId"); - - b.ToTable("HairPrestationCollectionItem"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Brand") - .IsRequired() - .HasColumnType("text"); - - b.Property("ColorId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("ColorId"); - - b.ToTable("HairTaint"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.Property("TaintId") - .HasColumnType("bigint"); - - b.Property("PrestationId") - .HasColumnType("bigint"); - - b.HasKey("TaintId", "PrestationId"); - - b.HasIndex("PrestationId"); - - b.ToTable("HairTaintInstance"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Evolution.Feature", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("ShortName") - .IsRequired() - .HasColumnType("text"); - - b.Property("Status") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("Feature"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("FeatureId") - .HasColumnType("bigint"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("FeatureId"); - - b.ToTable("Bug"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.DeviceDeclaration", b => - { - b.Property("DeviceId") - .HasColumnType("text"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasColumnType("timestamp with time zone") - .HasDefaultValueSql("LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("LatestActivityUpdate") - .HasColumnType("timestamp with time zone"); - - b.Property("Model") - .IsRequired() - .HasColumnType("text"); - - b.Property("Platform") - .IsRequired() - .HasColumnType("text"); - - b.Property("Version") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("DeviceId"); - - b.HasIndex("DeviceOwnerId"); - - b.ToTable("DeviceDeclaration"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Depth") - .HasColumnType("numeric"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("Height") - .HasColumnType("numeric"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Price") - .HasColumnType("numeric"); - - b.Property("Public") - .HasColumnType("boolean"); - - b.Property("Weight") - .HasColumnType("numeric"); - - b.Property("Width") - .HasColumnType("numeric"); - - b.HasKey("Id"); - - b.ToTable("Products"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ContextId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Public") - .HasColumnType("boolean"); - - b.HasKey("Id"); - - b.HasIndex("ContextId"); - - b.ToTable("Services"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("For") - .HasColumnType("smallint"); - - b.Property("Message") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Sender") - .IsRequired() - .HasColumnType("text"); - - b.Property("Topic") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.ToTable("Announce"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DismissClicked", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("NotificationId") - .HasColumnType("bigint"); - - b.HasKey("UserId", "NotificationId"); - - b.HasIndex("NotificationId"); - - b.ToTable("DismissClicked"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("character varying(255)"); - - b.HasKey("Id"); - - b.ToTable("Instrument"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.InstrumentRating", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("InstrumentId") - .HasColumnType("bigint"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.HasAlternateKey("InstrumentId", "OwnerId"); - - b.HasIndex("OwnerId"); - - b.ToTable("InstrumentRating"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId") - .HasColumnType("text"); - - b.Property("DjSettingsUserId") - .HasColumnType("text"); - - b.Property("GeneralSettingsUserId") - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.Property("TendencyId") - .HasColumnType("bigint"); - - b.HasKey("OwnerProfileId"); - - b.HasIndex("DjSettingsUserId"); - - b.HasIndex("GeneralSettingsUserId"); - - b.ToTable("MusicalPreference"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("character varying(255)"); - - b.HasKey("Id"); - - b.ToTable("MusicalTendency"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("SoundCloudId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("DjSettings"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("GeneralSettings"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId") - .HasColumnType("bigint"); - - b.Property("UserId") - .HasColumnType("text"); - - b.HasKey("InstrumentId", "UserId"); - - b.HasIndex("UserId"); - - b.ToTable("Instrumentation"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Property("CreationToken") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("ExecutorId") - .IsRequired() - .HasColumnType("text"); - - b.Property("OrderReference") - .IsRequired() - .HasColumnType("text"); - - b.Property("PaypalPayerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("State") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("CreationToken"); - - b.HasIndex("ExecutorId"); - - b.ToTable("PayPalPayment"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ApplicationUserId") - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Public") - .HasColumnType("boolean"); - - b.HasKey("Id"); - - b.HasIndex("ApplicationUserId"); - - b.ToTable("Circle"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId") - .HasColumnType("text"); - - b.Property("CircleId") - .HasColumnType("bigint"); - - b.HasKey("MemberId", "CircleId"); - - b.HasIndex("CircleId"); - - b.ToTable("CircleMembers"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId") - .HasColumnType("text"); - - b.Property("UserId") - .HasColumnType("text"); - - b.Property("AddressId") - .HasColumnType("bigint"); - - b.Property("ApplicationUserId") - .HasColumnType("text"); - - b.Property("EMail") - .IsRequired() - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("OwnerId", "UserId"); - - b.HasIndex("AddressId"); - - b.HasIndex("ApplicationUserId"); - - b.ToTable("Contact"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.Property("HRef") - .HasColumnType("text"); - - b.Property("Method") - .HasColumnType("text"); - - b.Property("BrusherProfileUserId") - .HasColumnType("text"); - - b.Property("ContentType") - .IsRequired() - .HasColumnType("text"); - - b.Property("PayPalPaymentCreationToken") - .HasColumnType("text"); - - b.Property("Rel") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("HRef", "Method"); - - b.HasIndex("BrusherProfileUserId"); - - b.HasIndex("PayPalPaymentCreationToken"); - - b.ToTable("HyperLink"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Address") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("Latitude") - .HasColumnType("double precision"); - - b.Property("Longitude") - .HasColumnType("double precision"); - - b.HasKey("Id"); - - b.ToTable("Locations"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostalAddress", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("City") - .IsRequired() - .HasColumnType("text"); - - b.Property("Country") - .IsRequired() - .HasColumnType("text"); - - b.Property("PostalCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("Province") - .IsRequired() - .HasColumnType("text"); - - b.Property("State") - .IsRequired() - .HasColumnType("text"); - - b.Property("Street1") - .IsRequired() - .HasColumnType("text"); - - b.Property("Street2") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("PostalAddress"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("Tags"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("SiteSkills"); - }); - - modelBuilder.Entity("Yavsc.Models.Streaming.LiveFlow", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("DifferedFileName") - .IsRequired() - .HasColumnType("text"); - - b.Property("MediaType") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Pitch") - .IsRequired() - .HasColumnType("text"); - - b.Property("SequenceNumber") - .HasColumnType("integer"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.ToTable("LiveFlow"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("Hidden") - .HasColumnType("boolean"); - - b.Property("ModeratorGroupName") - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("ParentCode") - .HasColumnType("text"); - - b.Property("Photo") - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.Property("SettingsClassName") - .HasColumnType("text"); - - b.Property("UserCreated") - .HasColumnType("text"); - - b.Property("UserModified") - .HasColumnType("text"); - - b.HasKey("Code"); - - b.HasIndex("ParentCode"); - - b.ToTable("Activities"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("FormationSettingsUserId") - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("WorkingForId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("FormationSettingsUserId"); - - b.HasIndex("PerformerId"); - - b.HasIndex("WorkingForId"); - - b.ToTable("CoWorking"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ActionName") - .IsRequired() - .HasColumnType("text"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.ToTable("CommandForm"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId") - .HasColumnType("text"); - - b.Property("AcceptNotifications") - .HasColumnType("boolean"); - - b.Property("AcceptPublicContact") - .HasColumnType("boolean"); - - b.Property("Active") - .HasColumnType("boolean"); - - b.Property("MaxDailyCost") - .HasColumnType("integer"); - - b.Property("MinDailyCost") - .HasColumnType("integer"); - - b.Property("OrganizationAddressId") - .HasColumnType("bigint"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.Property("SIREN") - .IsRequired() - .HasColumnType("text"); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients") - .HasColumnType("boolean"); - - b.Property("WebSite") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("PerformerId"); - - b.HasIndex("OrganizationAddressId"); - - b.ToTable("Performers"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("DisplayName") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("FormationSettings"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Accepted") - .HasColumnType("boolean"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Decided") - .HasColumnType("boolean"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("EventDate") - .HasColumnType("timestamp with time zone"); - - b.Property("LocationId") - .HasColumnType("bigint"); - - b.Property("LocationType") - .HasColumnType("integer"); - - b.Property("PaymentId") - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("Reason") - .IsRequired() - .HasColumnType("text"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("LocationId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.ToTable("RdvQueries"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode") - .HasColumnType("text"); - - b.Property("UserId") - .HasColumnType("text"); - - b.Property("Weight") - .HasColumnType("integer"); - - b.HasKey("DoesCode", "UserId"); - - b.HasIndex("UserId"); - - b.ToTable("UserActivities"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Calendar.Period", b => - { - b.Property("Start") - .HasColumnType("timestamp with time zone"); - - b.Property("End") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Start", "End"); - - b.ToTable("Period"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.EMailing.MailingTemplate", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("Body") - .IsRequired() - .HasMaxLength(65536) - .HasColumnType("character varying(65536)"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("ReplyToAddress") - .IsRequired() - .HasColumnType("text"); - - b.Property("ToSend") - .HasColumnType("integer"); - - b.Property("Topic") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("MailingTemplate"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Accepted") - .HasColumnType("boolean"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Decided") - .HasColumnType("boolean"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("GitId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PaymentId") - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.Property("Version") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("GitId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.ToTable("Project"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("ProjectId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("ProjectId"); - - b.ToTable("ProjectBuildConfiguration"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Branch") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Path") - .IsRequired() - .HasColumnType("text"); - - b.Property("Url") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.ToTable("GitRepositoryReference"); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null) - .WithMany() - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null) - .WithMany() - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "TargetUser") - .WithMany() - .HasForeignKey("TargetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TargetUser"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany("BlackList") - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost", "Target") - .WithMany("ACL") - .HasForeignKey("BlogPostId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Circle", "Allowed") - .WithMany() - .HasForeignKey("CircleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Allowed"); - - b.Navigation("Target"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithOne("AccountBalance") - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Relationship.Location", "PostalAddress") - .WithMany() - .HasForeignKey("PostalAddressId"); - - b.Navigation("PostalAddress"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance", "Balance") - .WithMany() - .HasForeignKey("BalanceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Balance"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany("BankInfo") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate", null) - .WithMany("Bill") - .HasForeignKey("EstimateId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate", null) - .WithMany("Bill") - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery", "Query") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Owner"); - - b.Navigation("Query"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Author") - .WithMany("Posts") - .HasForeignKey("AuthorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Author"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost", "Post") - .WithMany("Tags") - .HasForeignKey("PostId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Tag", "Tag") - .WithMany() - .HasForeignKey("TagId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Post"); - - b.Navigation("Tag"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Author") - .WithMany() - .HasForeignKey("AuthorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Blog.Comment", "Parent") - .WithMany("Children") - .HasForeignKey("ParentId"); - - b.HasOne("Yavsc.Models.Blog.BlogPost", "Post") - .WithMany("Comments") - .HasForeignKey("ReceiverId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Author"); - - b.Navigation("Parent"); - - b.Navigation("Post"); - }); - - modelBuilder.Entity("Yavsc.Models.BlogSpotPublication", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost", "BlogPost") - .WithMany() - .HasForeignKey("BlogpostId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("BlogPost"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule", null) - .WithMany("Events") - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Server.Models.Calendar.Period", "Period") - .WithMany() - .HasForeignKey("PeriodStart", "PeriodEnd") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Period"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany("Connections") - .HasForeignKey("ApplicationUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany("Rooms") - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomAccess", b => - { - b.HasOne("Yavsc.Models.Chat.ChatRoom", "Room") - .WithMany("Moderation") - .HasForeignKey("ChannelName") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany("RoomAccess") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Room"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule", "Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "BaseProfile") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("BaseProfile"); - - b.Navigation("Schedule"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Location", "Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation", "Prestation") - .WithMany() - .HasForeignKey("PrestationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.BrusherProfile", "SelectedProfile") - .WithMany() - .HasForeignKey("SelectedProfileUserId"); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("Location"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Prestation"); - - b.Navigation("Regularisation"); - - b.Navigation("SelectedProfile"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Location", "Location") - .WithMany() - .HasForeignKey("LocationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("Location"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Regularisation"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation", "Prestation") - .WithMany() - .HasForeignKey("PrestationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery", "Query") - .WithMany("Prestations") - .HasForeignKey("QueryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Prestation"); - - b.Navigation("Query"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color", "Color") - .WithMany() - .HasForeignKey("ColorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Color"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation", "Prestation") - .WithMany("Taints") - .HasForeignKey("PrestationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.HairTaint", "Taint") - .WithMany() - .HasForeignKey("TaintId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Prestation"); - - b.Navigation("Taint"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.HasOne("Yavsc.Models.IT.Evolution.Feature", "False") - .WithMany() - .HasForeignKey("FeatureId"); - - b.Navigation("False"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.DeviceDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "DeviceOwner") - .WithMany("DeviceDeclaration") - .HasForeignKey("DeviceOwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("DeviceOwner"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany("Services") - .HasForeignKey("ContextId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Context"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DismissClicked", b => - { - b.HasOne("Yavsc.Abstract.Models.Messaging.Notification", "Notified") - .WithMany() - .HasForeignKey("NotificationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Notified"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.InstrumentRating", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument", "Instrument") - .WithMany() - .HasForeignKey("InstrumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "Profile") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Instrument"); - - b.Navigation("Profile"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings", null) - .WithMany("SoundColor") - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings", null) - .WithMany("SoundColor") - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument", "Tool") - .WithMany() - .HasForeignKey("InstrumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tool"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Executor") - .WithMany() - .HasForeignKey("ExecutorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Executor"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany("Circles") - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle", "Circle") - .WithMany("Members") - .HasForeignKey("CircleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Member") - .WithMany("Membership") - .HasForeignKey("MemberId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Circle"); - - b.Navigation("Member"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.Relationship.PostalAddress", "PostalAddress") - .WithMany() - .HasForeignKey("AddressId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany("Book") - .HasForeignKey("ApplicationUserId"); - - b.Navigation("PostalAddress"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.HasOne("Yavsc.Models.Haircut.BrusherProfile", null) - .WithMany("Links") - .HasForeignKey("BrusherProfileUserId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", null) - .WithMany("Links") - .HasForeignKey("PayPalPaymentCreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Streaming.LiveFlow", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Parent") - .WithMany("Children") - .HasForeignKey("ParentCode"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings", null) - .WithMany("CoWorking") - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "Performer") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "WorkingFor") - .WithMany() - .HasForeignKey("WorkingForId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Performer"); - - b.Navigation("WorkingFor"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany("Forms") - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Context"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location", "OrganizationAddress") - .WithMany() - .HasForeignKey("OrganizationAddressId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Performer") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("OrganizationAddress"); - - b.Navigation("Performer"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Location", "Location") - .WithMany() - .HasForeignKey("LocationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("Location"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Regularisation"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Does") - .WithMany() - .HasForeignKey("DoesCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "User") - .WithMany("Activity") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Does"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", "Repository") - .WithMany() - .HasForeignKey("GitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Regularisation"); - - b.Navigation("Repository"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.HasOne("Yavsc.Server.Models.IT.Project", "TargetProject") - .WithMany("Configurations") - .HasForeignKey("ProjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TargetProject"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Navigation("AccountBalance"); - - b.Navigation("BankInfo"); - - b.Navigation("BlackList"); - - b.Navigation("Book"); - - b.Navigation("Circles"); - - b.Navigation("Connections"); - - b.Navigation("DeviceDeclaration"); - - b.Navigation("Membership"); - - b.Navigation("Posts"); - - b.Navigation("RoomAccess"); - - b.Navigation("Rooms"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Navigation("Bill"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Navigation("Bill"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.Navigation("ACL"); - - b.Navigation("Comments"); - - b.Navigation("Tags"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.Navigation("Children"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Navigation("Events"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.Navigation("Moderation"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Navigation("Links"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Navigation("Prestations"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Navigation("Taints"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Navigation("SoundColor"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Navigation("SoundColor"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Navigation("Links"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Navigation("Members"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Navigation("Children"); - - b.Navigation("Forms"); - - b.Navigation("Services"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Navigation("Activity"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Navigation("CoWorking"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.Navigation("Configurations"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/Yavsc.Server/Migrations/20250715144838_dbCleanup.cs b/src/Yavsc.Server/Migrations/20250715144838_dbCleanup.cs deleted file mode 100644 index ad5fd766..00000000 --- a/src/Yavsc.Server/Migrations/20250715144838_dbCleanup.cs +++ /dev/null @@ -1,117 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace Yavsc.Migrations -{ - /// - public partial class dbCleanup : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey( - name: "FK_BankBook_BankStatus_BalanceId", - table: "BankBook"); - - migrationBuilder.DropTable( - name: "OAuth2Tokens"); - - migrationBuilder.DropTable( - name: "RefreshTokens"); - - migrationBuilder.DropPrimaryKey( - name: "PK_BankBook", - table: "BankBook"); - - migrationBuilder.RenameTable( - name: "BankBook", - newName: "BalanceImpact"); - - migrationBuilder.RenameIndex( - name: "IX_BankBook_BalanceId", - table: "BalanceImpact", - newName: "IX_BalanceImpact_BalanceId"); - - migrationBuilder.AddPrimaryKey( - name: "PK_BalanceImpact", - table: "BalanceImpact", - column: "Id"); - - migrationBuilder.AddForeignKey( - name: "FK_BalanceImpact_BankStatus_BalanceId", - table: "BalanceImpact", - column: "BalanceId", - principalTable: "BankStatus", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey( - name: "FK_BalanceImpact_BankStatus_BalanceId", - table: "BalanceImpact"); - - migrationBuilder.DropPrimaryKey( - name: "PK_BalanceImpact", - table: "BalanceImpact"); - - migrationBuilder.RenameTable( - name: "BalanceImpact", - newName: "BankBook"); - - migrationBuilder.RenameIndex( - name: "IX_BalanceImpact_BalanceId", - table: "BankBook", - newName: "IX_BankBook_BalanceId"); - - migrationBuilder.AddPrimaryKey( - name: "PK_BankBook", - table: "BankBook", - column: "Id"); - - migrationBuilder.CreateTable( - name: "OAuth2Tokens", - columns: table => new - { - UserId = table.Column(type: "text", nullable: false), - AccessToken = table.Column(type: "text", nullable: false), - Expiration = table.Column(type: "timestamp with time zone", nullable: false), - ExpiresIn = table.Column(type: "text", nullable: false), - RefreshToken = table.Column(type: "text", nullable: false), - TokenType = table.Column(type: "text", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_OAuth2Tokens", x => x.UserId); - }); - - migrationBuilder.CreateTable( - name: "RefreshTokens", - columns: table => new - { - Id = table.Column(type: "text", nullable: false), - ClientId = table.Column(type: "character varying(50)", maxLength: 50, nullable: false), - ExpiresUtc = table.Column(type: "timestamp with time zone", nullable: false), - IssuedUtc = table.Column(type: "timestamp with time zone", nullable: false), - ProtectedTicket = table.Column(type: "text", nullable: false), - Subject = table.Column(type: "character varying(50)", maxLength: 50, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_RefreshTokens", x => x.Id); - }); - - migrationBuilder.AddForeignKey( - name: "FK_BankBook_BankStatus_BalanceId", - table: "BankBook", - column: "BalanceId", - principalTable: "BankStatus", - principalColumn: "UserId", - onDelete: ReferentialAction.Cascade); - } - } -} diff --git a/src/Yavsc.Server/Migrations/20250715211745_test.Designer.cs b/src/Yavsc.Server/Migrations/20250715211745_test.Designer.cs deleted file mode 100644 index 0dd5acab..00000000 --- a/src/Yavsc.Server/Migrations/20250715211745_test.Designer.cs +++ /dev/null @@ -1,3445 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; -using Yavsc.Models; - -#nullable disable - -namespace Yavsc.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20250715211745_test")] - partial class test - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "9.0.7") - .HasAnnotation("Relational:MaxIdentifierLength", 63); - - NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasColumnType("text"); - - b.Property("Name") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("NormalizedName") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName") - .IsUnique() - .HasDatabaseName("RoleNameIndex"); - - b.ToTable("AspNetRoles", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ClaimType") - .HasColumnType("text"); - - b.Property("ClaimValue") - .HasColumnType("text"); - - b.Property("RoleId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("RoleId"); - - b.ToTable("AspNetRoleClaims", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ClaimType") - .HasColumnType("text"); - - b.Property("ClaimValue") - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.ToTable("AspNetUserClaims", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => - { - b.Property("LoginProvider") - .HasColumnType("text"); - - b.Property("ProviderKey") - .HasColumnType("text"); - - b.Property("ProviderDisplayName") - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("LoginProvider", "ProviderKey"); - - b.HasIndex("UserId"); - - b.ToTable("AspNetUserLogins", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("RoleId") - .HasColumnType("text"); - - b.HasKey("UserId", "RoleId"); - - b.HasIndex("RoleId"); - - b.ToTable("AspNetUserRoles", (string)null); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("LoginProvider") - .HasColumnType("text"); - - b.Property("Name") - .HasColumnType("text"); - - b.Property("Value") - .HasColumnType("text"); - - b.HasKey("UserId", "LoginProvider", "Name"); - - b.ToTable("AspNetUserTokens", (string)null); - }); - - modelBuilder.Entity("Yavsc.Abstract.Identity.ClientProviderInfo", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("Avatar") - .IsRequired() - .HasColumnType("text"); - - b.Property("BillingAddressId") - .HasColumnType("bigint"); - - b.Property("EMail") - .IsRequired() - .HasColumnType("text"); - - b.Property("Phone") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserName") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("ClientProviderInfo"); - }); - - modelBuilder.Entity("Yavsc.Abstract.Models.Messaging.Notification", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Target") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("body") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("click_action") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("color") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("icon") - .ValueGeneratedOnAdd() - .HasMaxLength(512) - .HasColumnType("character varying(512)") - .HasDefaultValue("exclam"); - - b.Property("sound") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("tag") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("title") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("character varying(1024)"); - - b.HasKey("Id"); - - b.ToTable("Notification"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Reason") - .IsRequired() - .HasColumnType("text"); - - b.Property("TargetId") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("TargetId"); - - b.ToTable("Ban"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.HasIndex("UserId"); - - b.ToTable("BlackListed"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.Property("CircleId") - .HasColumnType("bigint"); - - b.Property("BlogPostId") - .HasColumnType("bigint"); - - b.Property("Comment") - .HasColumnType("boolean"); - - b.HasKey("CircleId", "BlogPostId"); - - b.HasIndex("BlogPostId"); - - b.ToTable("CircleAuthorizationToBlogPost"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("ContactCredits") - .HasColumnType("bigint"); - - b.Property("Credits") - .HasColumnType("numeric"); - - b.HasKey("UserId"); - - b.ToTable("BankStatus"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("AccessFailedCount") - .HasColumnType("integer"); - - b.Property("AllowMonthlyEmail") - .HasColumnType("boolean"); - - b.Property("Avatar") - .ValueGeneratedOnAdd() - .HasMaxLength(512) - .HasColumnType("character varying(512)") - .HasDefaultValue("/images/Users/icon_user.png"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasColumnType("text"); - - b.Property("DedicatedGoogleCalendar") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("DiskQuota") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasDefaultValue(524288000L); - - b.Property("DiskUsage") - .HasColumnType("bigint"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("EmailConfirmed") - .HasColumnType("boolean"); - - b.Property("FullName") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("LockoutEnabled") - .HasColumnType("boolean"); - - b.Property("LockoutEnd") - .HasColumnType("timestamp with time zone"); - - b.Property("MaxFileSize") - .HasColumnType("bigint"); - - b.Property("NormalizedEmail") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("NormalizedUserName") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("PasswordHash") - .HasColumnType("text"); - - b.Property("PhoneNumber") - .HasColumnType("text"); - - b.Property("PhoneNumberConfirmed") - .HasColumnType("boolean"); - - b.Property("PostalAddressId") - .HasColumnType("bigint"); - - b.Property("SecurityStamp") - .HasColumnType("text"); - - b.Property("TwoFactorEnabled") - .HasColumnType("boolean"); - - b.Property("UserName") - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.HasKey("Id"); - - b.HasAlternateKey("Email"); - - b.HasIndex("NormalizedEmail") - .HasDatabaseName("EmailIndex"); - - b.HasIndex("NormalizedUserName") - .IsUnique() - .HasDatabaseName("UserNameIndex"); - - b.HasIndex("PostalAddressId"); - - b.ToTable("AspNetUsers", (string)null); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Client", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("text"); - - b.Property("AccessTokenLifetime") - .HasColumnType("integer"); - - b.Property("Active") - .HasColumnType("boolean"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("character varying(128)"); - - b.Property("LogoutRedirectUri") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("RedirectUri") - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("RefreshTokenLifeTime") - .HasColumnType("integer"); - - b.Property("Secret") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("Type") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("Client"); - }); - - modelBuilder.Entity("Yavsc.Models.Auth.Scope", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("character varying(1024)"); - - b.HasKey("Id"); - - b.ToTable("Scopes"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("BalanceId") - .IsRequired() - .HasColumnType("text"); - - b.Property("ExecDate") - .HasColumnType("timestamp with time zone"); - - b.Property("Impact") - .HasColumnType("numeric"); - - b.Property("Reason") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("BalanceId"); - - b.ToTable("BalanceImpact"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AccountNumber") - .IsRequired() - .HasColumnType("text"); - - b.Property("BIC") - .IsRequired() - .HasColumnType("text"); - - b.Property("BankCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("BankedKey") - .HasColumnType("integer"); - - b.Property("IBAN") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserId") - .IsRequired() - .HasColumnType("text"); - - b.Property("WicketCode") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.ToTable("BankIdentity"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Count") - .HasColumnType("integer"); - - b.Property("Currency") - .IsRequired() - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("EstimateId") - .HasColumnType("bigint"); - - b.Property("EstimateTemplateId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("character varying(256)"); - - b.Property("UnitaryCost") - .HasColumnType("numeric"); - - b.HasKey("Id"); - - b.HasIndex("EstimateId"); - - b.HasIndex("EstimateTemplateId"); - - b.ToTable("CommandLine"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AttachedFilesString") - .IsRequired() - .HasColumnType("text"); - - b.Property("AttachedGraphicsString") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientValidationDate") - .HasColumnType("timestamp with time zone"); - - b.Property("CommandId") - .HasColumnType("bigint"); - - b.Property("CommandType") - .IsRequired() - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("ProviderValidationDate") - .HasColumnType("timestamp with time zone"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ClientId"); - - b.HasIndex("CommandId"); - - b.HasIndex("OwnerId"); - - b.ToTable("Estimates"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("EstimateTemplates"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.ExceptionSIREN", b => - { - b.Property("SIREN") - .HasColumnType("text"); - - b.HasKey("SIREN"); - - b.ToTable("ExceptionsSIREN"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AuthorId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Content") - .HasMaxLength(56224) - .HasColumnType("character varying(56224)"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Photo") - .HasMaxLength(1024) - .HasColumnType("character varying(1024)"); - - b.Property("Title") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("character varying(1024)"); - - b.Property("UserCreated") - .HasColumnType("text"); - - b.Property("UserModified") - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("AuthorId"); - - b.ToTable("BlogSpot"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.Property("PostId") - .HasColumnType("bigint"); - - b.Property("TagId") - .HasColumnType("bigint"); - - b.HasKey("PostId", "TagId"); - - b.HasIndex("TagId"); - - b.ToTable("BlogTag"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AuthorId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Content") - .IsRequired() - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("ParentId") - .HasColumnType("bigint"); - - b.Property("ReceiverId") - .HasColumnType("bigint"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("Visible") - .HasColumnType("boolean"); - - b.HasKey("Id"); - - b.HasIndex("AuthorId"); - - b.HasIndex("ParentId"); - - b.HasIndex("ReceiverId"); - - b.ToTable("Comment"); - }); - - modelBuilder.Entity("Yavsc.Models.BlogSpotPublication", b => - { - b.Property("BlogpostId") - .HasColumnType("bigint"); - - b.HasKey("BlogpostId"); - - b.ToTable("blogSpotPublications"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Property("OwnerId") - .HasColumnType("text"); - - b.HasKey("OwnerId"); - - b.ToTable("Schedule"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("PeriodEnd") - .HasColumnType("timestamp with time zone"); - - b.Property("PeriodStart") - .HasColumnType("timestamp with time zone"); - - b.Property("Reccurence") - .HasColumnType("integer"); - - b.Property("ScheduleOwnerId") - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ScheduleOwnerId"); - - b.HasIndex("PeriodStart", "PeriodEnd"); - - b.ToTable("ScheduledEvent"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.Property("ConnectionId") - .HasColumnType("text"); - - b.Property("ApplicationUserId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Connected") - .HasColumnType("boolean"); - - b.Property("UserAgent") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("ConnectionId"); - - b.HasIndex("ApplicationUserId"); - - b.ToTable("ChatConnection"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.Property("Name") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("LatestJoinPart") - .HasColumnType("timestamp with time zone"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Topic") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Name"); - - b.HasIndex("OwnerId"); - - b.ToTable("ChatRoom"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomAccess", b => - { - b.Property("ChannelName") - .HasColumnType("text"); - - b.Property("UserId") - .HasColumnType("text"); - - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Level") - .HasColumnType("integer"); - - b.HasKey("ChannelName", "UserId"); - - b.HasIndex("UserId"); - - b.ToTable("ChatRoomAccess"); - }); - - modelBuilder.Entity("Yavsc.Models.Cratie.Option", b => - { - b.Property("Code") - .HasColumnType("text"); - - b.Property("CodeScrutin") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Code", "CodeScrutin"); - - b.ToTable("Option"); - }); - - modelBuilder.Entity("Yavsc.Models.Drawing.Color", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Blue") - .HasColumnType("smallint"); - - b.Property("Green") - .HasColumnType("smallint"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Red") - .HasColumnType("smallint"); - - b.HasKey("Id"); - - b.ToTable("Color"); - }); - - modelBuilder.Entity("Yavsc.Models.Forms.Form", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("Summary") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("Form"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("ActionDistance") - .HasColumnType("integer"); - - b.Property("CarePrice") - .HasColumnType("numeric"); - - b.Property("FlatFeeDiscount") - .HasColumnType("numeric"); - - b.Property("HalfBalayagePrice") - .HasColumnType("numeric"); - - b.Property("HalfBrushingPrice") - .HasColumnType("numeric"); - - b.Property("HalfColorPrice") - .HasColumnType("numeric"); - - b.Property("HalfDefrisPrice") - .HasColumnType("numeric"); - - b.Property("HalfFoldingPrice") - .HasColumnType("numeric"); - - b.Property("HalfMechPrice") - .HasColumnType("numeric"); - - b.Property("HalfMultiColorPrice") - .HasColumnType("numeric"); - - b.Property("HalfPermanentPrice") - .HasColumnType("numeric"); - - b.Property("KidCutPrice") - .HasColumnType("numeric"); - - b.Property("LongBalayagePrice") - .HasColumnType("numeric"); - - b.Property("LongBrushingPrice") - .HasColumnType("numeric"); - - b.Property("LongColorPrice") - .HasColumnType("numeric"); - - b.Property("LongDefrisPrice") - .HasColumnType("numeric"); - - b.Property("LongFoldingPrice") - .HasColumnType("numeric"); - - b.Property("LongMechPrice") - .HasColumnType("numeric"); - - b.Property("LongMultiColorPrice") - .HasColumnType("numeric"); - - b.Property("LongPermanentPrice") - .HasColumnType("numeric"); - - b.Property("ManBrushPrice") - .HasColumnType("numeric"); - - b.Property("ManCutPrice") - .HasColumnType("numeric"); - - b.Property("ScheduleOwnerId") - .HasColumnType("text"); - - b.Property("ShampooPrice") - .HasColumnType("numeric"); - - b.Property("ShortBalayagePrice") - .HasColumnType("numeric"); - - b.Property("ShortBrushingPrice") - .HasColumnType("numeric"); - - b.Property("ShortColorPrice") - .HasColumnType("numeric"); - - b.Property("ShortDefrisPrice") - .HasColumnType("numeric"); - - b.Property("ShortFoldingPrice") - .HasColumnType("numeric"); - - b.Property("ShortMechPrice") - .HasColumnType("numeric"); - - b.Property("ShortMultiColorPrice") - .HasColumnType("numeric"); - - b.Property("ShortPermanentPrice") - .HasColumnType("numeric"); - - b.Property("WomenHalfCutPrice") - .HasColumnType("numeric"); - - b.Property("WomenLongCutPrice") - .HasColumnType("numeric"); - - b.Property("WomenShortCutPrice") - .HasColumnType("numeric"); - - b.HasKey("UserId"); - - b.HasIndex("ScheduleOwnerId"); - - b.ToTable("BrusherProfile"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Accepted") - .HasColumnType("boolean"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("AdditionalInfo") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Decided") - .HasColumnType("boolean"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("EventDate") - .HasColumnType("timestamp with time zone"); - - b.Property("LocationId") - .HasColumnType("bigint"); - - b.Property("PaymentId") - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PrestationId") - .HasColumnType("bigint"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("SelectedProfileUserId") - .HasColumnType("text"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("LocationId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.HasIndex("PrestationId"); - - b.HasIndex("SelectedProfileUserId"); - - b.ToTable("HairCutQueries"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Accepted") - .HasColumnType("boolean"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Decided") - .HasColumnType("boolean"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("EventDate") - .HasColumnType("timestamp with time zone"); - - b.Property("LocationId") - .HasColumnType("bigint"); - - b.Property("PaymentId") - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("LocationId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.ToTable("HairMultiCutQueries"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Cares") - .HasColumnType("boolean"); - - b.Property("Cut") - .HasColumnType("boolean"); - - b.Property("Dressing") - .HasColumnType("integer"); - - b.Property("Gender") - .HasColumnType("integer"); - - b.Property("Length") - .HasColumnType("integer"); - - b.Property("Shampoo") - .HasColumnType("boolean"); - - b.Property("Tech") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("HairPrestation"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("PrestationId") - .HasColumnType("bigint"); - - b.Property("QueryId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("PrestationId"); - - b.HasIndex("QueryId"); - - b.ToTable("HairPrestationCollectionItem"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Brand") - .IsRequired() - .HasColumnType("text"); - - b.Property("ColorId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("ColorId"); - - b.ToTable("HairTaint"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.Property("TaintId") - .HasColumnType("bigint"); - - b.Property("PrestationId") - .HasColumnType("bigint"); - - b.HasKey("TaintId", "PrestationId"); - - b.HasIndex("PrestationId"); - - b.ToTable("HairTaintInstance"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Evolution.Feature", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("ShortName") - .IsRequired() - .HasColumnType("text"); - - b.Property("Status") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("Feature"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("FeatureId") - .HasColumnType("bigint"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("FeatureId"); - - b.ToTable("Bug"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.DeviceDeclaration", b => - { - b.Property("DeviceId") - .HasColumnType("text"); - - b.Property("DeclarationDate") - .ValueGeneratedOnAdd() - .HasColumnType("timestamp with time zone") - .HasDefaultValueSql("LOCALTIMESTAMP"); - - b.Property("DeviceOwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("LatestActivityUpdate") - .HasColumnType("timestamp with time zone"); - - b.Property("Model") - .IsRequired() - .HasColumnType("text"); - - b.Property("Platform") - .IsRequired() - .HasColumnType("text"); - - b.Property("Version") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("DeviceId"); - - b.HasIndex("DeviceOwnerId"); - - b.ToTable("DeviceDeclaration"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Product", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Depth") - .HasColumnType("numeric"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("Height") - .HasColumnType("numeric"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Price") - .HasColumnType("numeric"); - - b.Property("Public") - .HasColumnType("boolean"); - - b.Property("Weight") - .HasColumnType("numeric"); - - b.Property("Width") - .HasColumnType("numeric"); - - b.HasKey("Id"); - - b.ToTable("Products"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ContextId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Public") - .HasColumnType("boolean"); - - b.HasKey("Id"); - - b.HasIndex("ContextId"); - - b.ToTable("Services"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("For") - .HasColumnType("smallint"); - - b.Property("Message") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Sender") - .IsRequired() - .HasColumnType("text"); - - b.Property("Topic") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.ToTable("Announce"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DismissClicked", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("NotificationId") - .HasColumnType("bigint"); - - b.HasKey("UserId", "NotificationId"); - - b.HasIndex("NotificationId"); - - b.ToTable("DismissClicked"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Instrument", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("character varying(255)"); - - b.HasKey("Id"); - - b.ToTable("Instrument"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.InstrumentRating", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("InstrumentId") - .HasColumnType("bigint"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.HasAlternateKey("InstrumentId", "OwnerId"); - - b.HasIndex("OwnerId"); - - b.ToTable("InstrumentRating"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.Property("OwnerProfileId") - .HasColumnType("text"); - - b.Property("DjSettingsUserId") - .HasColumnType("text"); - - b.Property("GeneralSettingsUserId") - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.Property("TendencyId") - .HasColumnType("bigint"); - - b.HasKey("OwnerProfileId"); - - b.HasIndex("DjSettingsUserId"); - - b.HasIndex("GeneralSettingsUserId"); - - b.ToTable("MusicalPreference"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalTendency", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("character varying(255)"); - - b.HasKey("Id"); - - b.ToTable("MusicalTendency"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("SoundCloudId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("DjSettings"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("GeneralSettings"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.Property("InstrumentId") - .HasColumnType("bigint"); - - b.Property("UserId") - .HasColumnType("text"); - - b.HasKey("InstrumentId", "UserId"); - - b.HasIndex("UserId"); - - b.ToTable("Instrumentation"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Property("CreationToken") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("ExecutorId") - .IsRequired() - .HasColumnType("text"); - - b.Property("OrderReference") - .IsRequired() - .HasColumnType("text"); - - b.Property("PaypalPayerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("State") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("CreationToken"); - - b.HasIndex("ExecutorId"); - - b.ToTable("PayPalPayment"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ApplicationUserId") - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Public") - .HasColumnType("boolean"); - - b.HasKey("Id"); - - b.HasIndex("ApplicationUserId"); - - b.ToTable("Circle"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.Property("MemberId") - .HasColumnType("text"); - - b.Property("CircleId") - .HasColumnType("bigint"); - - b.HasKey("MemberId", "CircleId"); - - b.HasIndex("CircleId"); - - b.ToTable("CircleMembers"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.Property("OwnerId") - .HasColumnType("text"); - - b.Property("UserId") - .HasColumnType("text"); - - b.Property("AddressId") - .HasColumnType("bigint"); - - b.Property("ApplicationUserId") - .HasColumnType("text"); - - b.Property("EMail") - .IsRequired() - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("OwnerId", "UserId"); - - b.HasIndex("AddressId"); - - b.HasIndex("ApplicationUserId"); - - b.ToTable("Contact"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.Property("HRef") - .HasColumnType("text"); - - b.Property("Method") - .HasColumnType("text"); - - b.Property("BrusherProfileUserId") - .HasColumnType("text"); - - b.Property("ContentType") - .IsRequired() - .HasColumnType("text"); - - b.Property("PayPalPaymentCreationToken") - .HasColumnType("text"); - - b.Property("Rel") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("HRef", "Method"); - - b.HasIndex("BrusherProfileUserId"); - - b.HasIndex("PayPalPaymentCreationToken"); - - b.ToTable("HyperLink"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Location", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Address") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)"); - - b.Property("Latitude") - .HasColumnType("double precision"); - - b.Property("Longitude") - .HasColumnType("double precision"); - - b.HasKey("Id"); - - b.ToTable("Locations"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.PostalAddress", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("City") - .IsRequired() - .HasColumnType("text"); - - b.Property("Country") - .IsRequired() - .HasColumnType("text"); - - b.Property("PostalCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("Province") - .IsRequired() - .HasColumnType("text"); - - b.Property("State") - .IsRequired() - .HasColumnType("text"); - - b.Property("Street1") - .IsRequired() - .HasColumnType("text"); - - b.Property("Street2") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("PostalAddress"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Tag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("Tags"); - }); - - modelBuilder.Entity("Yavsc.Models.Skill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("SiteSkills"); - }); - - modelBuilder.Entity("Yavsc.Models.Streaming.LiveFlow", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("DifferedFileName") - .IsRequired() - .HasColumnType("text"); - - b.Property("MediaType") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Pitch") - .IsRequired() - .HasColumnType("text"); - - b.Property("SequenceNumber") - .HasColumnType("integer"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.ToTable("LiveFlow"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Property("Code") - .HasColumnType("text"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("Hidden") - .HasColumnType("boolean"); - - b.Property("ModeratorGroupName") - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("ParentCode") - .HasColumnType("text"); - - b.Property("Photo") - .HasColumnType("text"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.Property("SettingsClassName") - .HasColumnType("text"); - - b.Property("UserCreated") - .HasColumnType("text"); - - b.Property("UserModified") - .HasColumnType("text"); - - b.HasKey("Code"); - - b.HasIndex("ParentCode"); - - b.ToTable("Activities"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("FormationSettingsUserId") - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("WorkingForId") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("FormationSettingsUserId"); - - b.HasIndex("PerformerId"); - - b.HasIndex("WorkingForId"); - - b.ToTable("CoWorking"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("ActionName") - .IsRequired() - .HasColumnType("text"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("Title") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.ToTable("CommandForm"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Property("PerformerId") - .HasColumnType("text"); - - b.Property("AcceptNotifications") - .HasColumnType("boolean"); - - b.Property("AcceptPublicContact") - .HasColumnType("boolean"); - - b.Property("Active") - .HasColumnType("boolean"); - - b.Property("MaxDailyCost") - .HasColumnType("integer"); - - b.Property("MinDailyCost") - .HasColumnType("integer"); - - b.Property("OrganizationAddressId") - .HasColumnType("bigint"); - - b.Property("Rate") - .HasColumnType("integer"); - - b.Property("SIREN") - .IsRequired() - .HasColumnType("text"); - - b.Property("UseGeoLocalizationToReduceDistanceWithClients") - .HasColumnType("boolean"); - - b.Property("WebSite") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("PerformerId"); - - b.HasIndex("OrganizationAddressId"); - - b.ToTable("Performers"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Property("UserId") - .HasColumnType("text"); - - b.Property("DisplayName") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("UserId"); - - b.ToTable("FormationSettings"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Accepted") - .HasColumnType("boolean"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Decided") - .HasColumnType("boolean"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("EventDate") - .HasColumnType("timestamp with time zone"); - - b.Property("LocationId") - .HasColumnType("bigint"); - - b.Property("LocationType") - .HasColumnType("integer"); - - b.Property("PaymentId") - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("Reason") - .IsRequired() - .HasColumnType("text"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("LocationId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.ToTable("RdvQueries"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.Property("DoesCode") - .HasColumnType("text"); - - b.Property("UserId") - .HasColumnType("text"); - - b.Property("Weight") - .HasColumnType("integer"); - - b.HasKey("DoesCode", "UserId"); - - b.HasIndex("UserId"); - - b.ToTable("UserActivities"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.Calendar.Period", b => - { - b.Property("Start") - .HasColumnType("timestamp with time zone"); - - b.Property("End") - .HasColumnType("timestamp with time zone"); - - b.HasKey("Start", "End"); - - b.ToTable("Period"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.EMailing.MailingTemplate", b => - { - b.Property("Id") - .HasColumnType("text"); - - b.Property("Body") - .IsRequired() - .HasMaxLength(65536) - .HasColumnType("character varying(65536)"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("ReplyToAddress") - .IsRequired() - .HasColumnType("text"); - - b.Property("ToSend") - .HasColumnType("integer"); - - b.Property("Topic") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("MailingTemplate"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Accepted") - .HasColumnType("boolean"); - - b.Property("ActivityCode") - .IsRequired() - .HasColumnType("text"); - - b.Property("ClientId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Consent") - .HasColumnType("boolean"); - - b.Property("DateCreated") - .HasColumnType("timestamp with time zone"); - - b.Property("DateModified") - .HasColumnType("timestamp with time zone"); - - b.Property("Decided") - .HasColumnType("boolean"); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("GitId") - .HasColumnType("bigint"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("PaymentId") - .HasColumnType("text"); - - b.Property("PerformerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Previsional") - .HasColumnType("numeric"); - - b.Property("Status") - .HasColumnType("integer"); - - b.Property("UserCreated") - .IsRequired() - .HasColumnType("text"); - - b.Property("UserModified") - .IsRequired() - .HasColumnType("text"); - - b.Property("ValidationDate") - .HasColumnType("timestamp with time zone"); - - b.Property("Version") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("ActivityCode"); - - b.HasIndex("ClientId"); - - b.HasIndex("GitId"); - - b.HasIndex("PaymentId"); - - b.HasIndex("PerformerId"); - - b.ToTable("Project"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("ProjectId") - .HasColumnType("bigint"); - - b.HasKey("Id"); - - b.HasIndex("ProjectId"); - - b.ToTable("ProjectBuildConfiguration"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Branch") - .IsRequired() - .HasColumnType("text"); - - b.Property("OwnerId") - .IsRequired() - .HasColumnType("text"); - - b.Property("Path") - .IsRequired() - .HasColumnType("text"); - - b.Property("Url") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.HasIndex("OwnerId"); - - b.ToTable("GitRepositoryReference"); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => - { - b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null) - .WithMany() - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole", b => - { - b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null) - .WithMany() - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Yavsc.Models.Access.Ban", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "TargetUser") - .WithMany() - .HasForeignKey("TargetId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TargetUser"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.BlackListed", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany("BlackList") - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Access.CircleAuthorizationToBlogPost", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost", "Target") - .WithMany("ACL") - .HasForeignKey("BlogPostId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Circle", "Allowed") - .WithMany() - .HasForeignKey("CircleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Allowed"); - - b.Navigation("Target"); - }); - - modelBuilder.Entity("Yavsc.Models.AccountBalance", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithOne("AccountBalance") - .HasForeignKey("Yavsc.Models.AccountBalance", "UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.HasOne("Yavsc.Models.Relationship.Location", "PostalAddress") - .WithMany() - .HasForeignKey("PostalAddressId"); - - b.Navigation("PostalAddress"); - }); - - modelBuilder.Entity("Yavsc.Models.BalanceImpact", b => - { - b.HasOne("Yavsc.Models.AccountBalance", "Balance") - .WithMany() - .HasForeignKey("BalanceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Balance"); - }); - - modelBuilder.Entity("Yavsc.Models.Bank.BankIdentity", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany("BankInfo") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.CommandLine", b => - { - b.HasOne("Yavsc.Models.Billing.Estimate", null) - .WithMany("Bill") - .HasForeignKey("EstimateId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Billing.EstimateTemplate", null) - .WithMany("Bill") - .HasForeignKey("EstimateTemplateId"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.RdvQuery", "Query") - .WithMany() - .HasForeignKey("CommandId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Owner"); - - b.Navigation("Query"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Author") - .WithMany("Posts") - .HasForeignKey("AuthorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Author"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogTag", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost", "Post") - .WithMany("Tags") - .HasForeignKey("PostId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Tag", "Tag") - .WithMany() - .HasForeignKey("TagId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Post"); - - b.Navigation("Tag"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Author") - .WithMany() - .HasForeignKey("AuthorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Blog.Comment", "Parent") - .WithMany("Children") - .HasForeignKey("ParentId"); - - b.HasOne("Yavsc.Models.Blog.BlogPost", "Post") - .WithMany("Comments") - .HasForeignKey("ReceiverId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Author"); - - b.Navigation("Parent"); - - b.Navigation("Post"); - }); - - modelBuilder.Entity("Yavsc.Models.BlogSpotPublication", b => - { - b.HasOne("Yavsc.Models.Blog.BlogPost", "BlogPost") - .WithMany() - .HasForeignKey("BlogpostId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("BlogPost"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.ScheduledEvent", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule", null) - .WithMany("Events") - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Server.Models.Calendar.Period", "Period") - .WithMany() - .HasForeignKey("PeriodStart", "PeriodEnd") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Period"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatConnection", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany("Connections") - .HasForeignKey("ApplicationUserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany("Rooms") - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoomAccess", b => - { - b.HasOne("Yavsc.Models.Chat.ChatRoom", "Room") - .WithMany("Moderation") - .HasForeignKey("ChannelName") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany("RoomAccess") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Room"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.HasOne("Yavsc.Models.Calendar.Schedule", "Schedule") - .WithMany() - .HasForeignKey("ScheduleOwnerId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "BaseProfile") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("BaseProfile"); - - b.Navigation("Schedule"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Location", "Location") - .WithMany() - .HasForeignKey("LocationId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.HairPrestation", "Prestation") - .WithMany() - .HasForeignKey("PrestationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.BrusherProfile", "SelectedProfile") - .WithMany() - .HasForeignKey("SelectedProfileUserId"); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("Location"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Prestation"); - - b.Navigation("Regularisation"); - - b.Navigation("SelectedProfile"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Location", "Location") - .WithMany() - .HasForeignKey("LocationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("Location"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Regularisation"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestationCollectionItem", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation", "Prestation") - .WithMany() - .HasForeignKey("PrestationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.HairMultiCutQuery", "Query") - .WithMany("Prestations") - .HasForeignKey("QueryId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Prestation"); - - b.Navigation("Query"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaint", b => - { - b.HasOne("Yavsc.Models.Drawing.Color", "Color") - .WithMany() - .HasForeignKey("ColorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Color"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairTaintInstance", b => - { - b.HasOne("Yavsc.Models.Haircut.HairPrestation", "Prestation") - .WithMany("Taints") - .HasForeignKey("PrestationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Haircut.HairTaint", "Taint") - .WithMany() - .HasForeignKey("TaintId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Prestation"); - - b.Navigation("Taint"); - }); - - modelBuilder.Entity("Yavsc.Models.IT.Fixing.Bug", b => - { - b.HasOne("Yavsc.Models.IT.Evolution.Feature", "False") - .WithMany() - .HasForeignKey("FeatureId"); - - b.Navigation("False"); - }); - - modelBuilder.Entity("Yavsc.Models.Identity.DeviceDeclaration", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "DeviceOwner") - .WithMany("DeviceDeclaration") - .HasForeignKey("DeviceOwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("DeviceOwner"); - }); - - modelBuilder.Entity("Yavsc.Models.Market.Service", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany("Services") - .HasForeignKey("ContextId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Context"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.Announce", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Messaging.DismissClicked", b => - { - b.HasOne("Yavsc.Abstract.Models.Messaging.Notification", "Notified") - .WithMany() - .HasForeignKey("NotificationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Notified"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.InstrumentRating", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument", "Instrument") - .WithMany() - .HasForeignKey("InstrumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "Profile") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Instrument"); - - b.Navigation("Profile"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.MusicalPreference", b => - { - b.HasOne("Yavsc.Models.Musical.Profiles.DjSettings", null) - .WithMany("SoundColor") - .HasForeignKey("DjSettingsUserId"); - - b.HasOne("Yavsc.Models.Musical.Profiles.GeneralSettings", null) - .WithMany("SoundColor") - .HasForeignKey("GeneralSettingsUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.Instrumentation", b => - { - b.HasOne("Yavsc.Models.Musical.Instrument", "Tool") - .WithMany() - .HasForeignKey("InstrumentId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "User") - .WithMany() - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tool"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Executor") - .WithMany() - .HasForeignKey("ExecutorId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Executor"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany("Circles") - .HasForeignKey("ApplicationUserId"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.CircleMember", b => - { - b.HasOne("Yavsc.Models.Relationship.Circle", "Circle") - .WithMany("Members") - .HasForeignKey("CircleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Member") - .WithMany("Membership") - .HasForeignKey("MemberId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Circle"); - - b.Navigation("Member"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Contact", b => - { - b.HasOne("Yavsc.Models.Relationship.PostalAddress", "PostalAddress") - .WithMany() - .HasForeignKey("AddressId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", null) - .WithMany("Book") - .HasForeignKey("ApplicationUserId"); - - b.Navigation("PostalAddress"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.HyperLink", b => - { - b.HasOne("Yavsc.Models.Haircut.BrusherProfile", null) - .WithMany("Links") - .HasForeignKey("BrusherProfileUserId"); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", null) - .WithMany("Links") - .HasForeignKey("PayPalPaymentCreationToken"); - }); - - modelBuilder.Entity("Yavsc.Models.Streaming.LiveFlow", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Parent") - .WithMany("Children") - .HasForeignKey("ParentCode"); - - b.Navigation("Parent"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CoWorking", b => - { - b.HasOne("Yavsc.Models.Workflow.Profiles.FormationSettings", null) - .WithMany("CoWorking") - .HasForeignKey("FormationSettingsUserId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "Performer") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "WorkingFor") - .WithMany() - .HasForeignKey("WorkingForId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Performer"); - - b.Navigation("WorkingFor"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.CommandForm", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany("Forms") - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Context"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.HasOne("Yavsc.Models.Relationship.Location", "OrganizationAddress") - .WithMany() - .HasForeignKey("OrganizationAddressId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Performer") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("OrganizationAddress"); - - b.Navigation("Performer"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.RdvQuery", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Relationship.Location", "Location") - .WithMany() - .HasForeignKey("LocationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("Location"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Regularisation"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.UserActivity", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Does") - .WithMany() - .HasForeignKey("DoesCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "User") - .WithMany("Activity") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Does"); - - b.Navigation("User"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.HasOne("Yavsc.Models.Workflow.Activity", "Context") - .WithMany() - .HasForeignKey("ActivityCode") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.ApplicationUser", "Client") - .WithMany() - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", "Repository") - .WithMany() - .HasForeignKey("GitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation") - .WithMany() - .HasForeignKey("PaymentId"); - - b.HasOne("Yavsc.Models.Workflow.PerformerProfile", "PerformerProfile") - .WithMany() - .HasForeignKey("PerformerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Client"); - - b.Navigation("Context"); - - b.Navigation("PerformerProfile"); - - b.Navigation("Regularisation"); - - b.Navigation("Repository"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b => - { - b.HasOne("Yavsc.Server.Models.IT.Project", "TargetProject") - .WithMany("Configurations") - .HasForeignKey("ProjectId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("TargetProject"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b => - { - b.HasOne("Yavsc.Models.ApplicationUser", "Owner") - .WithMany() - .HasForeignKey("OwnerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Owner"); - }); - - modelBuilder.Entity("Yavsc.Models.ApplicationUser", b => - { - b.Navigation("AccountBalance"); - - b.Navigation("BankInfo"); - - b.Navigation("BlackList"); - - b.Navigation("Book"); - - b.Navigation("Circles"); - - b.Navigation("Connections"); - - b.Navigation("DeviceDeclaration"); - - b.Navigation("Membership"); - - b.Navigation("Posts"); - - b.Navigation("RoomAccess"); - - b.Navigation("Rooms"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.Estimate", b => - { - b.Navigation("Bill"); - }); - - modelBuilder.Entity("Yavsc.Models.Billing.EstimateTemplate", b => - { - b.Navigation("Bill"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.BlogPost", b => - { - b.Navigation("ACL"); - - b.Navigation("Comments"); - - b.Navigation("Tags"); - }); - - modelBuilder.Entity("Yavsc.Models.Blog.Comment", b => - { - b.Navigation("Children"); - }); - - modelBuilder.Entity("Yavsc.Models.Calendar.Schedule", b => - { - b.Navigation("Events"); - }); - - modelBuilder.Entity("Yavsc.Models.Chat.ChatRoom", b => - { - b.Navigation("Moderation"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.BrusherProfile", b => - { - b.Navigation("Links"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairMultiCutQuery", b => - { - b.Navigation("Prestations"); - }); - - modelBuilder.Entity("Yavsc.Models.Haircut.HairPrestation", b => - { - b.Navigation("Taints"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.DjSettings", b => - { - b.Navigation("SoundColor"); - }); - - modelBuilder.Entity("Yavsc.Models.Musical.Profiles.GeneralSettings", b => - { - b.Navigation("SoundColor"); - }); - - modelBuilder.Entity("Yavsc.Models.Payment.PayPalPayment", b => - { - b.Navigation("Links"); - }); - - modelBuilder.Entity("Yavsc.Models.Relationship.Circle", b => - { - b.Navigation("Members"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Activity", b => - { - b.Navigation("Children"); - - b.Navigation("Forms"); - - b.Navigation("Services"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.PerformerProfile", b => - { - b.Navigation("Activity"); - }); - - modelBuilder.Entity("Yavsc.Models.Workflow.Profiles.FormationSettings", b => - { - b.Navigation("CoWorking"); - }); - - modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b => - { - b.Navigation("Configurations"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/Yavsc.Server/Migrations/20250715211745_test.cs b/src/Yavsc.Server/Migrations/20250715211745_test.cs deleted file mode 100644 index cf70db3c..00000000 --- a/src/Yavsc.Server/Migrations/20250715211745_test.cs +++ /dev/null @@ -1,44 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace Yavsc.Migrations -{ - /// - public partial class test : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropPrimaryKey( - name: "PK_Applications", - table: "Applications"); - - migrationBuilder.RenameTable( - name: "Applications", - newName: "Client"); - - migrationBuilder.AddPrimaryKey( - name: "PK_Client", - table: "Client", - column: "Id"); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropPrimaryKey( - name: "PK_Client", - table: "Client"); - - migrationBuilder.RenameTable( - name: "Client", - newName: "Applications"); - - migrationBuilder.AddPrimaryKey( - name: "PK_Applications", - table: "Applications", - column: "Id"); - } - } -} diff --git a/src/Yavsc.Server/Migrations/20250715212331_nullReturnUrl.cs b/src/Yavsc.Server/Migrations/20250715212331_nullReturnUrl.cs deleted file mode 100644 index 9c43e392..00000000 --- a/src/Yavsc.Server/Migrations/20250715212331_nullReturnUrl.cs +++ /dev/null @@ -1,40 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace Yavsc.Migrations -{ - /// - public partial class nullReturnUrl : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "LogoutRedirectUri", - table: "Client", - type: "character varying(512)", - maxLength: 512, - nullable: true, - oldClrType: typeof(string), - oldType: "character varying(512)", - oldMaxLength: 512); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "LogoutRedirectUri", - table: "Client", - type: "character varying(512)", - maxLength: 512, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "character varying(512)", - oldMaxLength: 512, - oldNullable: true); - } - } -} diff --git a/src/Yavsc.Server/Migrations/20250715212331_nullReturnUrl.Designer.cs b/src/Yavsc.Server/Migrations/20250814102318_init.Designer.cs similarity index 99% rename from src/Yavsc.Server/Migrations/20250715212331_nullReturnUrl.Designer.cs rename to src/Yavsc.Server/Migrations/20250814102318_init.Designer.cs index aa92c6f7..464fd230 100644 --- a/src/Yavsc.Server/Migrations/20250715212331_nullReturnUrl.Designer.cs +++ b/src/Yavsc.Server/Migrations/20250814102318_init.Designer.cs @@ -9,11 +9,11 @@ using Yavsc.Models; #nullable disable -namespace Yavsc.Migrations +namespace Yavsc.Server.Migrations { [DbContext(typeof(ApplicationDbContext))] - [Migration("20250715212331_nullReturnUrl")] - partial class nullReturnUrl + [Migration("20250814102318_init")] + partial class init { /// protected override void BuildTargetModel(ModelBuilder modelBuilder) diff --git a/src/Yavsc.Server/Migrations/20250814102318_init.cs b/src/Yavsc.Server/Migrations/20250814102318_init.cs new file mode 100644 index 00000000..53226fef --- /dev/null +++ b/src/Yavsc.Server/Migrations/20250814102318_init.cs @@ -0,0 +1,2488 @@ +using System; +using Microsoft.EntityFrameworkCore.Migrations; +using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; + +#nullable disable + +namespace Yavsc.Server.Migrations +{ + /// + public partial class init : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.CreateTable( + name: "Activities", + columns: table => new + { + Code = table.Column(type: "text", nullable: false), + Name = table.Column(type: "text", nullable: false), + ParentCode = table.Column(type: "text", nullable: true), + Description = table.Column(type: "text", nullable: false), + Photo = table.Column(type: "text", nullable: true), + ModeratorGroupName = table.Column(type: "text", nullable: true), + Rate = table.Column(type: "integer", nullable: false), + SettingsClassName = table.Column(type: "text", nullable: true), + DateCreated = table.Column(type: "timestamp with time zone", nullable: false), + UserCreated = table.Column(type: "text", nullable: true), + DateModified = table.Column(type: "timestamp with time zone", nullable: false), + UserModified = table.Column(type: "text", nullable: true), + Hidden = table.Column(type: "boolean", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Activities", x => x.Code); + table.ForeignKey( + name: "FK_Activities_Activities_ParentCode", + column: x => x.ParentCode, + principalTable: "Activities", + principalColumn: "Code"); + }); + + migrationBuilder.CreateTable( + name: "AspNetRoles", + columns: table => new + { + Id = table.Column(type: "text", nullable: false), + Name = table.Column(type: "character varying(256)", maxLength: 256, nullable: true), + NormalizedName = table.Column(type: "character varying(256)", maxLength: 256, nullable: true), + ConcurrencyStamp = table.Column(type: "text", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AspNetRoles", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Client", + columns: table => new + { + Id = table.Column(type: "text", nullable: false), + DisplayName = table.Column(type: "character varying(128)", maxLength: 128, nullable: false), + RedirectUri = table.Column(type: "character varying(512)", maxLength: 512, nullable: true), + LogoutRedirectUri = table.Column(type: "character varying(512)", maxLength: 512, nullable: true), + Secret = table.Column(type: "character varying(512)", maxLength: 512, nullable: false), + Type = table.Column(type: "integer", nullable: false), + Active = table.Column(type: "boolean", nullable: false), + RefreshTokenLifeTime = table.Column(type: "integer", nullable: false), + AccessTokenLifetime = table.Column(type: "integer", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Client", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "ClientProviderInfo", + columns: table => new + { + UserId = table.Column(type: "text", nullable: false), + UserName = table.Column(type: "text", nullable: false), + Avatar = table.Column(type: "text", nullable: false), + EMail = table.Column(type: "text", nullable: false), + Phone = table.Column(type: "text", nullable: false), + BillingAddressId = table.Column(type: "bigint", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_ClientProviderInfo", x => x.UserId); + }); + + migrationBuilder.CreateTable( + name: "Color", + columns: table => new + { + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + Red = table.Column(type: "smallint", nullable: false), + Green = table.Column(type: "smallint", nullable: false), + Blue = table.Column(type: "smallint", nullable: false), + Name = table.Column(type: "text", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Color", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "DjSettings", + columns: table => new + { + UserId = table.Column(type: "text", nullable: false), + SoundCloudId = table.Column(type: "text", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_DjSettings", x => x.UserId); + }); + + migrationBuilder.CreateTable( + name: "EstimateTemplates", + columns: table => new + { + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + Description = table.Column(type: "text", nullable: false), + Title = table.Column(type: "text", nullable: false), + OwnerId = table.Column(type: "text", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_EstimateTemplates", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "ExceptionsSIREN", + columns: table => new + { + SIREN = table.Column(type: "text", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_ExceptionsSIREN", x => x.SIREN); + }); + + migrationBuilder.CreateTable( + name: "Feature", + columns: table => new + { + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + ShortName = table.Column(type: "text", nullable: false), + Description = table.Column(type: "text", nullable: false), + Status = table.Column(type: "integer", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Feature", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Form", + columns: table => new + { + Id = table.Column(type: "text", nullable: false), + Summary = table.Column(type: "text", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Form", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "FormationSettings", + columns: table => new + { + UserId = table.Column(type: "text", nullable: false), + DisplayName = table.Column(type: "text", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_FormationSettings", x => x.UserId); + }); + + migrationBuilder.CreateTable( + name: "GeneralSettings", + columns: table => new + { + UserId = table.Column(type: "text", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_GeneralSettings", x => x.UserId); + }); + + migrationBuilder.CreateTable( + name: "HairPrestation", + columns: table => new + { + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + Length = table.Column(type: "integer", nullable: false), + Gender = table.Column(type: "integer", nullable: false), + Cut = table.Column(type: "boolean", nullable: false), + Dressing = table.Column(type: "integer", nullable: false), + Tech = table.Column(type: "integer", nullable: false), + Shampoo = table.Column(type: "boolean", nullable: false), + Cares = table.Column(type: "boolean", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_HairPrestation", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Instrument", + columns: table => new + { + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + Name = table.Column(type: "character varying(255)", maxLength: 255, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Instrument", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Locations", + columns: table => new + { + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + Address = table.Column(type: "character varying(512)", maxLength: 512, nullable: false), + Longitude = table.Column(type: "double precision", nullable: false), + Latitude = table.Column(type: "double precision", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Locations", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "MailingTemplate", + columns: table => new + { + Id = table.Column(type: "text", nullable: false), + DateCreated = table.Column(type: "timestamp with time zone", nullable: false), + DateModified = table.Column(type: "timestamp with time zone", nullable: false), + Topic = table.Column(type: "text", nullable: false), + Body = table.Column(type: "character varying(65536)", maxLength: 65536, nullable: false), + ReplyToAddress = table.Column(type: "text", nullable: false), + ToSend = table.Column(type: "integer", nullable: false), + UserCreated = table.Column(type: "text", nullable: false), + UserModified = table.Column(type: "text", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_MailingTemplate", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "MusicalTendency", + columns: table => new + { + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + Name = table.Column(type: "character varying(255)", maxLength: 255, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_MusicalTendency", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Notification", + columns: table => new + { + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + title = table.Column(type: "character varying(1024)", maxLength: 1024, nullable: false), + body = table.Column(type: "character varying(512)", maxLength: 512, nullable: false), + icon = table.Column(type: "character varying(512)", maxLength: 512, nullable: true, defaultValue: "exclam"), + sound = table.Column(type: "character varying(512)", maxLength: 512, nullable: true), + tag = table.Column(type: "character varying(512)", maxLength: 512, nullable: true), + color = table.Column(type: "character varying(512)", maxLength: 512, nullable: true), + click_action = table.Column(type: "character varying(512)", maxLength: 512, nullable: false), + Target = table.Column(type: "character varying(512)", maxLength: 512, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Notification", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Option", + columns: table => new + { + CodeScrutin = table.Column(type: "text", nullable: false), + Code = table.Column(type: "text", nullable: false), + Description = table.Column(type: "text", nullable: false), + DateCreated = table.Column(type: "timestamp with time zone", nullable: false), + UserCreated = table.Column(type: "text", nullable: false), + DateModified = table.Column(type: "timestamp with time zone", nullable: false), + UserModified = table.Column(type: "text", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Option", x => new { x.Code, x.CodeScrutin }); + }); + + migrationBuilder.CreateTable( + name: "Period", + columns: table => new + { + Start = table.Column(type: "timestamp with time zone", nullable: false), + End = table.Column(type: "timestamp with time zone", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Period", x => new { x.Start, x.End }); + }); + + migrationBuilder.CreateTable( + name: "PostalAddress", + columns: table => new + { + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + Street1 = table.Column(type: "text", nullable: false), + Street2 = table.Column(type: "text", nullable: false), + PostalCode = table.Column(type: "text", nullable: false), + City = table.Column(type: "text", nullable: false), + State = table.Column(type: "text", nullable: false), + Province = table.Column(type: "text", nullable: false), + Country = table.Column(type: "text", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_PostalAddress", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Products", + columns: table => new + { + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + Weight = table.Column(type: "numeric", nullable: false), + Height = table.Column(type: "numeric", nullable: false), + Width = table.Column(type: "numeric", nullable: false), + Depth = table.Column(type: "numeric", nullable: false), + Price = table.Column(type: "numeric", nullable: true), + Name = table.Column(type: "text", nullable: false), + Description = table.Column(type: "text", nullable: false), + Public = table.Column(type: "boolean", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Products", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Scopes", + columns: table => new + { + Id = table.Column(type: "text", nullable: false), + Description = table.Column(type: "character varying(1024)", maxLength: 1024, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Scopes", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "SiteSkills", + columns: table => new + { + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + Name = table.Column(type: "text", nullable: false), + Rate = table.Column(type: "integer", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_SiteSkills", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Tags", + columns: table => new + { + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + Name = table.Column(type: "text", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Tags", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "CommandForm", + columns: table => new + { + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + ActionName = table.Column(type: "text", nullable: false), + Title = table.Column(type: "text", nullable: false), + ActivityCode = table.Column(type: "text", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_CommandForm", x => x.Id); + table.ForeignKey( + name: "FK_CommandForm_Activities_ActivityCode", + column: x => x.ActivityCode, + principalTable: "Activities", + principalColumn: "Code", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Services", + columns: table => new + { + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + ContextId = table.Column(type: "text", nullable: false), + Name = table.Column(type: "text", nullable: false), + Description = table.Column(type: "text", nullable: false), + Public = table.Column(type: "boolean", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Services", x => x.Id); + table.ForeignKey( + name: "FK_Services_Activities_ContextId", + column: x => x.ContextId, + principalTable: "Activities", + principalColumn: "Code", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "AspNetRoleClaims", + columns: table => new + { + Id = table.Column(type: "integer", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + RoleId = table.Column(type: "text", nullable: false), + ClaimType = table.Column(type: "text", nullable: true), + ClaimValue = table.Column(type: "text", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AspNetRoleClaims", x => x.Id); + table.ForeignKey( + name: "FK_AspNetRoleClaims_AspNetRoles_RoleId", + column: x => x.RoleId, + principalTable: "AspNetRoles", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "HairTaint", + columns: table => new + { + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + Brand = table.Column(type: "text", nullable: false), + ColorId = table.Column(type: "bigint", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_HairTaint", x => x.Id); + table.ForeignKey( + name: "FK_HairTaint_Color_ColorId", + column: x => x.ColorId, + principalTable: "Color", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Bug", + columns: table => new + { + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + FeatureId = table.Column(type: "bigint", nullable: true), + Title = table.Column(type: "text", nullable: false), + Description = table.Column(type: "text", nullable: false), + Status = table.Column(type: "integer", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Bug", x => x.Id); + table.ForeignKey( + name: "FK_Bug_Feature_FeatureId", + column: x => x.FeatureId, + principalTable: "Feature", + principalColumn: "Id"); + }); + + migrationBuilder.CreateTable( + name: "MusicalPreference", + columns: table => new + { + OwnerProfileId = table.Column(type: "text", nullable: false), + Rate = table.Column(type: "integer", nullable: false), + TendencyId = table.Column(type: "bigint", nullable: false), + DjSettingsUserId = table.Column(type: "text", nullable: true), + GeneralSettingsUserId = table.Column(type: "text", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_MusicalPreference", x => x.OwnerProfileId); + table.ForeignKey( + name: "FK_MusicalPreference_DjSettings_DjSettingsUserId", + column: x => x.DjSettingsUserId, + principalTable: "DjSettings", + principalColumn: "UserId"); + table.ForeignKey( + name: "FK_MusicalPreference_GeneralSettings_GeneralSettingsUserId", + column: x => x.GeneralSettingsUserId, + principalTable: "GeneralSettings", + principalColumn: "UserId"); + }); + + migrationBuilder.CreateTable( + name: "AspNetUsers", + columns: table => new + { + Id = table.Column(type: "text", nullable: false), + Avatar = table.Column(type: "character varying(512)", maxLength: 512, nullable: true, defaultValue: "/images/Users/icon_user.png"), + FullName = table.Column(type: "character varying(512)", maxLength: 512, nullable: true), + PostalAddressId = table.Column(type: "bigint", nullable: true), + DedicatedGoogleCalendar = table.Column(type: "character varying(512)", maxLength: 512, nullable: true), + DiskQuota = table.Column(type: "bigint", nullable: false, defaultValue: 524288000L), + DiskUsage = table.Column(type: "bigint", nullable: false), + MaxFileSize = table.Column(type: "bigint", nullable: false), + AllowMonthlyEmail = table.Column(type: "boolean", nullable: false), + UserName = table.Column(type: "character varying(256)", maxLength: 256, nullable: true), + NormalizedUserName = table.Column(type: "character varying(256)", maxLength: 256, nullable: true), + Email = table.Column(type: "character varying(256)", maxLength: 256, nullable: false), + NormalizedEmail = table.Column(type: "character varying(256)", maxLength: 256, nullable: true), + EmailConfirmed = table.Column(type: "boolean", nullable: false), + PasswordHash = table.Column(type: "text", nullable: true), + SecurityStamp = table.Column(type: "text", nullable: true), + ConcurrencyStamp = table.Column(type: "text", nullable: true), + PhoneNumber = table.Column(type: "text", nullable: true), + PhoneNumberConfirmed = table.Column(type: "boolean", nullable: false), + TwoFactorEnabled = table.Column(type: "boolean", nullable: false), + LockoutEnd = table.Column(type: "timestamp with time zone", nullable: true), + LockoutEnabled = table.Column(type: "boolean", nullable: false), + AccessFailedCount = table.Column(type: "integer", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_AspNetUsers", x => x.Id); + table.UniqueConstraint("AK_AspNetUsers_Email", x => x.Email); + table.ForeignKey( + name: "FK_AspNetUsers_Locations_PostalAddressId", + column: x => x.PostalAddressId, + principalTable: "Locations", + principalColumn: "Id"); + }); + + migrationBuilder.CreateTable( + name: "HairTaintInstance", + columns: table => new + { + TaintId = table.Column(type: "bigint", nullable: false), + PrestationId = table.Column(type: "bigint", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_HairTaintInstance", x => new { x.TaintId, x.PrestationId }); + table.ForeignKey( + name: "FK_HairTaintInstance_HairPrestation_PrestationId", + column: x => x.PrestationId, + principalTable: "HairPrestation", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_HairTaintInstance_HairTaint_TaintId", + column: x => x.TaintId, + principalTable: "HairTaint", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Announce", + columns: table => new + { + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + For = table.Column(type: "smallint", nullable: false), + OwnerId = table.Column(type: "text", nullable: false), + Message = table.Column(type: "text", nullable: false), + Topic = table.Column(type: "text", nullable: false), + Sender = table.Column(type: "text", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Announce", x => x.Id); + table.ForeignKey( + name: "FK_Announce_AspNetUsers_OwnerId", + column: x => x.OwnerId, + principalTable: "AspNetUsers", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "AspNetUserClaims", + columns: table => new + { + Id = table.Column(type: "integer", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + UserId = table.Column(type: "text", nullable: false), + ClaimType = table.Column(type: "text", nullable: true), + ClaimValue = table.Column(type: "text", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AspNetUserClaims", x => x.Id); + table.ForeignKey( + name: "FK_AspNetUserClaims_AspNetUsers_UserId", + column: x => x.UserId, + principalTable: "AspNetUsers", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "AspNetUserLogins", + columns: table => new + { + LoginProvider = table.Column(type: "text", nullable: false), + ProviderKey = table.Column(type: "text", nullable: false), + ProviderDisplayName = table.Column(type: "text", nullable: true), + UserId = table.Column(type: "text", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_AspNetUserLogins", x => new { x.LoginProvider, x.ProviderKey }); + table.ForeignKey( + name: "FK_AspNetUserLogins_AspNetUsers_UserId", + column: x => x.UserId, + principalTable: "AspNetUsers", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "AspNetUserRoles", + columns: table => new + { + UserId = table.Column(type: "text", nullable: false), + RoleId = table.Column(type: "text", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_AspNetUserRoles", x => new { x.UserId, x.RoleId }); + table.ForeignKey( + name: "FK_AspNetUserRoles_AspNetRoles_RoleId", + column: x => x.RoleId, + principalTable: "AspNetRoles", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_AspNetUserRoles_AspNetUsers_UserId", + column: x => x.UserId, + principalTable: "AspNetUsers", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "AspNetUserTokens", + columns: table => new + { + UserId = table.Column(type: "text", nullable: false), + LoginProvider = table.Column(type: "text", nullable: false), + Name = table.Column(type: "text", nullable: false), + Value = table.Column(type: "text", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AspNetUserTokens", x => new { x.UserId, x.LoginProvider, x.Name }); + table.ForeignKey( + name: "FK_AspNetUserTokens_AspNetUsers_UserId", + column: x => x.UserId, + principalTable: "AspNetUsers", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Ban", + columns: table => new + { + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + DateCreated = table.Column(type: "timestamp with time zone", nullable: false), + DateModified = table.Column(type: "timestamp with time zone", nullable: false), + UserCreated = table.Column(type: "text", nullable: false), + UserModified = table.Column(type: "text", nullable: false), + TargetId = table.Column(type: "text", nullable: false), + Reason = table.Column(type: "text", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Ban", x => x.Id); + table.ForeignKey( + name: "FK_Ban_AspNetUsers_TargetId", + column: x => x.TargetId, + principalTable: "AspNetUsers", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "BankIdentity", + columns: table => new + { + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + BIC = table.Column(type: "text", nullable: false), + IBAN = table.Column(type: "text", nullable: false), + BankCode = table.Column(type: "text", nullable: false), + WicketCode = table.Column(type: "text", nullable: false), + AccountNumber = table.Column(type: "text", nullable: false), + BankedKey = table.Column(type: "integer", nullable: false), + UserId = table.Column(type: "text", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_BankIdentity", x => x.Id); + table.ForeignKey( + name: "FK_BankIdentity_AspNetUsers_UserId", + column: x => x.UserId, + principalTable: "AspNetUsers", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "BankStatus", + columns: table => new + { + UserId = table.Column(type: "text", nullable: false), + Credits = table.Column(type: "numeric", nullable: false), + ContactCredits = table.Column(type: "bigint", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_BankStatus", x => x.UserId); + table.ForeignKey( + name: "FK_BankStatus_AspNetUsers_UserId", + column: x => x.UserId, + principalTable: "AspNetUsers", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "BlackListed", + columns: table => new + { + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + UserId = table.Column(type: "text", nullable: false), + OwnerId = table.Column(type: "text", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_BlackListed", x => x.Id); + table.ForeignKey( + name: "FK_BlackListed_AspNetUsers_OwnerId", + column: x => x.OwnerId, + principalTable: "AspNetUsers", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_BlackListed_AspNetUsers_UserId", + column: x => x.UserId, + principalTable: "AspNetUsers", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "BlogSpot", + columns: table => new + { + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + AuthorId = table.Column(type: "text", nullable: false), + DateCreated = table.Column(type: "timestamp with time zone", nullable: false), + UserCreated = table.Column(type: "text", nullable: true), + DateModified = table.Column(type: "timestamp with time zone", nullable: false), + UserModified = table.Column(type: "text", nullable: true), + Photo = table.Column(type: "character varying(1024)", maxLength: 1024, nullable: true), + Title = table.Column(type: "character varying(1024)", maxLength: 1024, nullable: false), + Content = table.Column(type: "character varying(56224)", maxLength: 56224, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_BlogSpot", x => x.Id); + table.ForeignKey( + name: "FK_BlogSpot_AspNetUsers_AuthorId", + column: x => x.AuthorId, + principalTable: "AspNetUsers", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "ChatConnection", + columns: table => new + { + ConnectionId = table.Column(type: "text", nullable: false), + ApplicationUserId = table.Column(type: "text", nullable: false), + UserAgent = table.Column(type: "text", nullable: false), + Connected = table.Column(type: "boolean", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_ChatConnection", x => x.ConnectionId); + table.ForeignKey( + name: "FK_ChatConnection_AspNetUsers_ApplicationUserId", + column: x => x.ApplicationUserId, + principalTable: "AspNetUsers", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "ChatRoom", + columns: table => new + { + Name = table.Column(type: "text", nullable: false), + Topic = table.Column(type: "text", nullable: false), + OwnerId = table.Column(type: "text", nullable: false), + LatestJoinPart = table.Column(type: "timestamp with time zone", nullable: false), + DateCreated = table.Column(type: "timestamp with time zone", nullable: false), + UserCreated = table.Column(type: "text", nullable: false), + DateModified = table.Column(type: "timestamp with time zone", nullable: false), + UserModified = table.Column(type: "text", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_ChatRoom", x => x.Name); + table.ForeignKey( + name: "FK_ChatRoom_AspNetUsers_OwnerId", + column: x => x.OwnerId, + principalTable: "AspNetUsers", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Circle", + columns: table => new + { + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + Public = table.Column(type: "boolean", nullable: false), + Name = table.Column(type: "text", nullable: false), + OwnerId = table.Column(type: "text", nullable: false), + ApplicationUserId = table.Column(type: "text", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Circle", x => x.Id); + table.ForeignKey( + name: "FK_Circle_AspNetUsers_ApplicationUserId", + column: x => x.ApplicationUserId, + principalTable: "AspNetUsers", + principalColumn: "Id"); + }); + + migrationBuilder.CreateTable( + name: "Contact", + columns: table => new + { + UserId = table.Column(type: "text", nullable: false), + OwnerId = table.Column(type: "text", nullable: false), + Name = table.Column(type: "text", nullable: false), + EMail = table.Column(type: "text", nullable: false), + AddressId = table.Column(type: "bigint", nullable: false), + ApplicationUserId = table.Column(type: "text", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Contact", x => new { x.OwnerId, x.UserId }); + table.ForeignKey( + name: "FK_Contact_AspNetUsers_ApplicationUserId", + column: x => x.ApplicationUserId, + principalTable: "AspNetUsers", + principalColumn: "Id"); + table.ForeignKey( + name: "FK_Contact_PostalAddress_AddressId", + column: x => x.AddressId, + principalTable: "PostalAddress", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "DeviceDeclaration", + columns: table => new + { + DeviceId = table.Column(type: "text", nullable: false), + Model = table.Column(type: "text", nullable: false), + Platform = table.Column(type: "text", nullable: false), + Version = table.Column(type: "text", nullable: false), + DeviceOwnerId = table.Column(type: "text", nullable: false), + DeclarationDate = table.Column(type: "timestamp with time zone", nullable: false, defaultValueSql: "LOCALTIMESTAMP"), + LatestActivityUpdate = table.Column(type: "timestamp with time zone", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_DeviceDeclaration", x => x.DeviceId); + table.ForeignKey( + name: "FK_DeviceDeclaration_AspNetUsers_DeviceOwnerId", + column: x => x.DeviceOwnerId, + principalTable: "AspNetUsers", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "DismissClicked", + columns: table => new + { + UserId = table.Column(type: "text", nullable: false), + NotificationId = table.Column(type: "bigint", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_DismissClicked", x => new { x.UserId, x.NotificationId }); + table.ForeignKey( + name: "FK_DismissClicked_AspNetUsers_UserId", + column: x => x.UserId, + principalTable: "AspNetUsers", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_DismissClicked_Notification_NotificationId", + column: x => x.NotificationId, + principalTable: "Notification", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "GitRepositoryReference", + columns: table => new + { + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + Path = table.Column(type: "text", nullable: false), + Url = table.Column(type: "text", nullable: false), + Branch = table.Column(type: "text", nullable: false), + OwnerId = table.Column(type: "text", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_GitRepositoryReference", x => x.Id); + table.ForeignKey( + name: "FK_GitRepositoryReference_AspNetUsers_OwnerId", + column: x => x.OwnerId, + principalTable: "AspNetUsers", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "LiveFlow", + columns: table => new + { + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + Title = table.Column(type: "text", nullable: false), + Pitch = table.Column(type: "text", nullable: false), + MediaType = table.Column(type: "text", nullable: false), + DifferedFileName = table.Column(type: "text", nullable: false), + SequenceNumber = table.Column(type: "integer", nullable: false), + OwnerId = table.Column(type: "text", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_LiveFlow", x => x.Id); + table.ForeignKey( + name: "FK_LiveFlow_AspNetUsers_OwnerId", + column: x => x.OwnerId, + principalTable: "AspNetUsers", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "PayPalPayment", + columns: table => new + { + CreationToken = table.Column(type: "text", nullable: false), + ExecutorId = table.Column(type: "text", nullable: false), + PaypalPayerId = table.Column(type: "text", nullable: false), + OrderReference = table.Column(type: "text", nullable: false), + DateCreated = table.Column(type: "timestamp with time zone", nullable: false), + UserCreated = table.Column(type: "text", nullable: false), + DateModified = table.Column(type: "timestamp with time zone", nullable: false), + UserModified = table.Column(type: "text", nullable: false), + State = table.Column(type: "text", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_PayPalPayment", x => x.CreationToken); + table.ForeignKey( + name: "FK_PayPalPayment_AspNetUsers_ExecutorId", + column: x => x.ExecutorId, + principalTable: "AspNetUsers", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Performers", + columns: table => new + { + PerformerId = table.Column(type: "text", nullable: false), + SIREN = table.Column(type: "text", nullable: false), + OrganizationAddressId = table.Column(type: "bigint", nullable: false), + AcceptNotifications = table.Column(type: "boolean", nullable: false), + AcceptPublicContact = table.Column(type: "boolean", nullable: false), + UseGeoLocalizationToReduceDistanceWithClients = table.Column(type: "boolean", nullable: false), + WebSite = table.Column(type: "text", nullable: false), + Active = table.Column(type: "boolean", nullable: false), + MaxDailyCost = table.Column(type: "integer", nullable: true), + MinDailyCost = table.Column(type: "integer", nullable: true), + Rate = table.Column(type: "integer", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Performers", x => x.PerformerId); + table.ForeignKey( + name: "FK_Performers_AspNetUsers_PerformerId", + column: x => x.PerformerId, + principalTable: "AspNetUsers", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_Performers_Locations_OrganizationAddressId", + column: x => x.OrganizationAddressId, + principalTable: "Locations", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Schedule", + columns: table => new + { + OwnerId = table.Column(type: "text", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Schedule", x => x.OwnerId); + table.ForeignKey( + name: "FK_Schedule_AspNetUsers_OwnerId", + column: x => x.OwnerId, + principalTable: "AspNetUsers", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "BalanceImpact", + columns: table => new + { + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + Impact = table.Column(type: "numeric", nullable: false), + ExecDate = table.Column(type: "timestamp with time zone", nullable: false), + Reason = table.Column(type: "text", nullable: false), + BalanceId = table.Column(type: "text", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_BalanceImpact", x => x.Id); + table.ForeignKey( + name: "FK_BalanceImpact_BankStatus_BalanceId", + column: x => x.BalanceId, + principalTable: "BankStatus", + principalColumn: "UserId", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "blogSpotPublications", + columns: table => new + { + BlogpostId = table.Column(type: "bigint", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_blogSpotPublications", x => x.BlogpostId); + table.ForeignKey( + name: "FK_blogSpotPublications_BlogSpot_BlogpostId", + column: x => x.BlogpostId, + principalTable: "BlogSpot", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "BlogTag", + columns: table => new + { + PostId = table.Column(type: "bigint", nullable: false), + TagId = table.Column(type: "bigint", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_BlogTag", x => new { x.PostId, x.TagId }); + table.ForeignKey( + name: "FK_BlogTag_BlogSpot_PostId", + column: x => x.PostId, + principalTable: "BlogSpot", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_BlogTag_Tags_TagId", + column: x => x.TagId, + principalTable: "Tags", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Comment", + columns: table => new + { + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + Content = table.Column(type: "text", nullable: false), + ReceiverId = table.Column(type: "bigint", nullable: false), + Visible = table.Column(type: "boolean", nullable: false), + AuthorId = table.Column(type: "text", nullable: false), + UserCreated = table.Column(type: "text", nullable: false), + DateModified = table.Column(type: "timestamp with time zone", nullable: false), + UserModified = table.Column(type: "text", nullable: false), + DateCreated = table.Column(type: "timestamp with time zone", nullable: false), + ParentId = table.Column(type: "bigint", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Comment", x => x.Id); + table.ForeignKey( + name: "FK_Comment_AspNetUsers_AuthorId", + column: x => x.AuthorId, + principalTable: "AspNetUsers", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_Comment_BlogSpot_ReceiverId", + column: x => x.ReceiverId, + principalTable: "BlogSpot", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_Comment_Comment_ParentId", + column: x => x.ParentId, + principalTable: "Comment", + principalColumn: "Id"); + }); + + migrationBuilder.CreateTable( + name: "ChatRoomAccess", + columns: table => new + { + ChannelName = table.Column(type: "text", nullable: false), + UserId = table.Column(type: "text", nullable: false), + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + Level = table.Column(type: "integer", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_ChatRoomAccess", x => new { x.ChannelName, x.UserId }); + table.ForeignKey( + name: "FK_ChatRoomAccess_AspNetUsers_UserId", + column: x => x.UserId, + principalTable: "AspNetUsers", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_ChatRoomAccess_ChatRoom_ChannelName", + column: x => x.ChannelName, + principalTable: "ChatRoom", + principalColumn: "Name", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "CircleAuthorizationToBlogPost", + columns: table => new + { + CircleId = table.Column(type: "bigint", nullable: false), + BlogPostId = table.Column(type: "bigint", nullable: false), + Comment = table.Column(type: "boolean", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_CircleAuthorizationToBlogPost", x => new { x.CircleId, x.BlogPostId }); + table.ForeignKey( + name: "FK_CircleAuthorizationToBlogPost_BlogSpot_BlogPostId", + column: x => x.BlogPostId, + principalTable: "BlogSpot", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_CircleAuthorizationToBlogPost_Circle_CircleId", + column: x => x.CircleId, + principalTable: "Circle", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "CircleMembers", + columns: table => new + { + CircleId = table.Column(type: "bigint", nullable: false), + MemberId = table.Column(type: "text", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_CircleMembers", x => new { x.MemberId, x.CircleId }); + table.ForeignKey( + name: "FK_CircleMembers_AspNetUsers_MemberId", + column: x => x.MemberId, + principalTable: "AspNetUsers", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_CircleMembers_Circle_CircleId", + column: x => x.CircleId, + principalTable: "Circle", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "CoWorking", + columns: table => new + { + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + PerformerId = table.Column(type: "text", nullable: false), + WorkingForId = table.Column(type: "text", nullable: false), + FormationSettingsUserId = table.Column(type: "text", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_CoWorking", x => x.Id); + table.ForeignKey( + name: "FK_CoWorking_AspNetUsers_WorkingForId", + column: x => x.WorkingForId, + principalTable: "AspNetUsers", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_CoWorking_FormationSettings_FormationSettingsUserId", + column: x => x.FormationSettingsUserId, + principalTable: "FormationSettings", + principalColumn: "UserId"); + table.ForeignKey( + name: "FK_CoWorking_Performers_PerformerId", + column: x => x.PerformerId, + principalTable: "Performers", + principalColumn: "PerformerId", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "HairMultiCutQueries", + columns: table => new + { + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + Description = table.Column(type: "text", nullable: false), + LocationId = table.Column(type: "bigint", nullable: false), + EventDate = table.Column(type: "timestamp with time zone", nullable: false), + Consent = table.Column(type: "boolean", nullable: false), + DateCreated = table.Column(type: "timestamp with time zone", nullable: false), + DateModified = table.Column(type: "timestamp with time zone", nullable: false), + UserCreated = table.Column(type: "text", nullable: false), + UserModified = table.Column(type: "text", nullable: false), + Status = table.Column(type: "integer", nullable: false), + ClientId = table.Column(type: "text", nullable: false), + PerformerId = table.Column(type: "text", nullable: false), + ValidationDate = table.Column(type: "timestamp with time zone", nullable: true), + Previsional = table.Column(type: "numeric", nullable: true), + ActivityCode = table.Column(type: "text", nullable: false), + Decided = table.Column(type: "boolean", nullable: false), + PaymentId = table.Column(type: "text", nullable: true), + Accepted = table.Column(type: "boolean", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_HairMultiCutQueries", x => x.Id); + table.ForeignKey( + name: "FK_HairMultiCutQueries_Activities_ActivityCode", + column: x => x.ActivityCode, + principalTable: "Activities", + principalColumn: "Code", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_HairMultiCutQueries_AspNetUsers_ClientId", + column: x => x.ClientId, + principalTable: "AspNetUsers", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_HairMultiCutQueries_Locations_LocationId", + column: x => x.LocationId, + principalTable: "Locations", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_HairMultiCutQueries_PayPalPayment_PaymentId", + column: x => x.PaymentId, + principalTable: "PayPalPayment", + principalColumn: "CreationToken"); + table.ForeignKey( + name: "FK_HairMultiCutQueries_Performers_PerformerId", + column: x => x.PerformerId, + principalTable: "Performers", + principalColumn: "PerformerId", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Instrumentation", + columns: table => new + { + UserId = table.Column(type: "text", nullable: false), + InstrumentId = table.Column(type: "bigint", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Instrumentation", x => new { x.InstrumentId, x.UserId }); + table.ForeignKey( + name: "FK_Instrumentation_Instrument_InstrumentId", + column: x => x.InstrumentId, + principalTable: "Instrument", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_Instrumentation_Performers_UserId", + column: x => x.UserId, + principalTable: "Performers", + principalColumn: "PerformerId", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "InstrumentRating", + columns: table => new + { + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + InstrumentId = table.Column(type: "bigint", nullable: false), + Rate = table.Column(type: "integer", nullable: false), + OwnerId = table.Column(type: "text", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_InstrumentRating", x => x.Id); + table.UniqueConstraint("AK_InstrumentRating_InstrumentId_OwnerId", x => new { x.InstrumentId, x.OwnerId }); + table.ForeignKey( + name: "FK_InstrumentRating_Instrument_InstrumentId", + column: x => x.InstrumentId, + principalTable: "Instrument", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_InstrumentRating_Performers_OwnerId", + column: x => x.OwnerId, + principalTable: "Performers", + principalColumn: "PerformerId", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Project", + columns: table => new + { + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + OwnerId = table.Column(type: "text", nullable: false), + Name = table.Column(type: "text", nullable: false), + Version = table.Column(type: "text", nullable: false), + GitId = table.Column(type: "bigint", nullable: false), + Description = table.Column(type: "text", nullable: false), + Consent = table.Column(type: "boolean", nullable: false), + DateCreated = table.Column(type: "timestamp with time zone", nullable: false), + DateModified = table.Column(type: "timestamp with time zone", nullable: false), + UserCreated = table.Column(type: "text", nullable: false), + UserModified = table.Column(type: "text", nullable: false), + Status = table.Column(type: "integer", nullable: false), + ClientId = table.Column(type: "text", nullable: false), + PerformerId = table.Column(type: "text", nullable: false), + ValidationDate = table.Column(type: "timestamp with time zone", nullable: true), + Previsional = table.Column(type: "numeric", nullable: true), + ActivityCode = table.Column(type: "text", nullable: false), + Decided = table.Column(type: "boolean", nullable: false), + PaymentId = table.Column(type: "text", nullable: true), + Accepted = table.Column(type: "boolean", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Project", x => x.Id); + table.ForeignKey( + name: "FK_Project_Activities_ActivityCode", + column: x => x.ActivityCode, + principalTable: "Activities", + principalColumn: "Code", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_Project_AspNetUsers_ClientId", + column: x => x.ClientId, + principalTable: "AspNetUsers", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_Project_GitRepositoryReference_GitId", + column: x => x.GitId, + principalTable: "GitRepositoryReference", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_Project_PayPalPayment_PaymentId", + column: x => x.PaymentId, + principalTable: "PayPalPayment", + principalColumn: "CreationToken"); + table.ForeignKey( + name: "FK_Project_Performers_PerformerId", + column: x => x.PerformerId, + principalTable: "Performers", + principalColumn: "PerformerId", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "RdvQueries", + columns: table => new + { + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + EventDate = table.Column(type: "timestamp with time zone", nullable: false), + LocationId = table.Column(type: "bigint", nullable: false), + LocationType = table.Column(type: "integer", nullable: false), + Reason = table.Column(type: "text", nullable: false), + Description = table.Column(type: "text", nullable: false), + Consent = table.Column(type: "boolean", nullable: false), + DateCreated = table.Column(type: "timestamp with time zone", nullable: false), + DateModified = table.Column(type: "timestamp with time zone", nullable: false), + UserCreated = table.Column(type: "text", nullable: false), + UserModified = table.Column(type: "text", nullable: false), + Status = table.Column(type: "integer", nullable: false), + ClientId = table.Column(type: "text", nullable: false), + PerformerId = table.Column(type: "text", nullable: false), + ValidationDate = table.Column(type: "timestamp with time zone", nullable: true), + Previsional = table.Column(type: "numeric", nullable: true), + ActivityCode = table.Column(type: "text", nullable: false), + Decided = table.Column(type: "boolean", nullable: false), + PaymentId = table.Column(type: "text", nullable: true), + Accepted = table.Column(type: "boolean", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_RdvQueries", x => x.Id); + table.ForeignKey( + name: "FK_RdvQueries_Activities_ActivityCode", + column: x => x.ActivityCode, + principalTable: "Activities", + principalColumn: "Code", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_RdvQueries_AspNetUsers_ClientId", + column: x => x.ClientId, + principalTable: "AspNetUsers", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_RdvQueries_Locations_LocationId", + column: x => x.LocationId, + principalTable: "Locations", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_RdvQueries_PayPalPayment_PaymentId", + column: x => x.PaymentId, + principalTable: "PayPalPayment", + principalColumn: "CreationToken"); + table.ForeignKey( + name: "FK_RdvQueries_Performers_PerformerId", + column: x => x.PerformerId, + principalTable: "Performers", + principalColumn: "PerformerId", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "UserActivities", + columns: table => new + { + UserId = table.Column(type: "text", nullable: false), + DoesCode = table.Column(type: "text", nullable: false), + Weight = table.Column(type: "integer", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_UserActivities", x => new { x.DoesCode, x.UserId }); + table.ForeignKey( + name: "FK_UserActivities_Activities_DoesCode", + column: x => x.DoesCode, + principalTable: "Activities", + principalColumn: "Code", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_UserActivities_Performers_UserId", + column: x => x.UserId, + principalTable: "Performers", + principalColumn: "PerformerId", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "BrusherProfile", + columns: table => new + { + UserId = table.Column(type: "text", nullable: false), + ActionDistance = table.Column(type: "integer", nullable: false), + ScheduleOwnerId = table.Column(type: "text", nullable: true), + WomenLongCutPrice = table.Column(type: "numeric", nullable: false), + WomenHalfCutPrice = table.Column(type: "numeric", nullable: false), + WomenShortCutPrice = table.Column(type: "numeric", nullable: false), + ManCutPrice = table.Column(type: "numeric", nullable: false), + ManBrushPrice = table.Column(type: "numeric", nullable: false), + KidCutPrice = table.Column(type: "numeric", nullable: false), + LongBrushingPrice = table.Column(type: "numeric", nullable: false), + HalfBrushingPrice = table.Column(type: "numeric", nullable: false), + ShortBrushingPrice = table.Column(type: "numeric", nullable: false), + LongColorPrice = table.Column(type: "numeric", nullable: false), + HalfColorPrice = table.Column(type: "numeric", nullable: false), + ShortColorPrice = table.Column(type: "numeric", nullable: false), + LongMultiColorPrice = table.Column(type: "numeric", nullable: false), + HalfMultiColorPrice = table.Column(type: "numeric", nullable: false), + ShortMultiColorPrice = table.Column(type: "numeric", nullable: false), + LongPermanentPrice = table.Column(type: "numeric", nullable: false), + HalfPermanentPrice = table.Column(type: "numeric", nullable: false), + ShortPermanentPrice = table.Column(type: "numeric", nullable: false), + LongDefrisPrice = table.Column(type: "numeric", nullable: false), + HalfDefrisPrice = table.Column(type: "numeric", nullable: false), + ShortDefrisPrice = table.Column(type: "numeric", nullable: false), + LongMechPrice = table.Column(type: "numeric", nullable: false), + HalfMechPrice = table.Column(type: "numeric", nullable: false), + ShortMechPrice = table.Column(type: "numeric", nullable: false), + LongBalayagePrice = table.Column(type: "numeric", nullable: false), + HalfBalayagePrice = table.Column(type: "numeric", nullable: false), + ShortBalayagePrice = table.Column(type: "numeric", nullable: false), + LongFoldingPrice = table.Column(type: "numeric", nullable: false), + HalfFoldingPrice = table.Column(type: "numeric", nullable: false), + ShortFoldingPrice = table.Column(type: "numeric", nullable: false), + ShampooPrice = table.Column(type: "numeric", nullable: false), + CarePrice = table.Column(type: "numeric", nullable: false), + FlatFeeDiscount = table.Column(type: "numeric", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_BrusherProfile", x => x.UserId); + table.ForeignKey( + name: "FK_BrusherProfile_Performers_UserId", + column: x => x.UserId, + principalTable: "Performers", + principalColumn: "PerformerId", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_BrusherProfile_Schedule_ScheduleOwnerId", + column: x => x.ScheduleOwnerId, + principalTable: "Schedule", + principalColumn: "OwnerId"); + }); + + migrationBuilder.CreateTable( + name: "ScheduledEvent", + columns: table => new + { + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + PeriodStart = table.Column(type: "timestamp with time zone", nullable: false), + PeriodEnd = table.Column(type: "timestamp with time zone", nullable: false), + Reccurence = table.Column(type: "integer", nullable: false), + ScheduleOwnerId = table.Column(type: "text", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_ScheduledEvent", x => x.Id); + table.ForeignKey( + name: "FK_ScheduledEvent_Period_PeriodStart_PeriodEnd", + columns: x => new { x.PeriodStart, x.PeriodEnd }, + principalTable: "Period", + principalColumns: new[] { "Start", "End" }, + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_ScheduledEvent_Schedule_ScheduleOwnerId", + column: x => x.ScheduleOwnerId, + principalTable: "Schedule", + principalColumn: "OwnerId"); + }); + + migrationBuilder.CreateTable( + name: "HairPrestationCollectionItem", + columns: table => new + { + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + PrestationId = table.Column(type: "bigint", nullable: false), + QueryId = table.Column(type: "bigint", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_HairPrestationCollectionItem", x => x.Id); + table.ForeignKey( + name: "FK_HairPrestationCollectionItem_HairMultiCutQueries_QueryId", + column: x => x.QueryId, + principalTable: "HairMultiCutQueries", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_HairPrestationCollectionItem_HairPrestation_PrestationId", + column: x => x.PrestationId, + principalTable: "HairPrestation", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "ProjectBuildConfiguration", + columns: table => new + { + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + Name = table.Column(type: "text", nullable: false), + ProjectId = table.Column(type: "bigint", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_ProjectBuildConfiguration", x => x.Id); + table.ForeignKey( + name: "FK_ProjectBuildConfiguration_Project_ProjectId", + column: x => x.ProjectId, + principalTable: "Project", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Estimates", + columns: table => new + { + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + CommandId = table.Column(type: "bigint", nullable: true), + Description = table.Column(type: "text", nullable: false), + Title = table.Column(type: "text", nullable: false), + AttachedGraphicsString = table.Column(type: "text", nullable: false), + AttachedFilesString = table.Column(type: "text", nullable: false), + OwnerId = table.Column(type: "text", nullable: false), + ClientId = table.Column(type: "text", nullable: false), + CommandType = table.Column(type: "text", nullable: false), + ProviderValidationDate = table.Column(type: "timestamp with time zone", nullable: false), + ClientValidationDate = table.Column(type: "timestamp with time zone", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Estimates", x => x.Id); + table.ForeignKey( + name: "FK_Estimates_AspNetUsers_ClientId", + column: x => x.ClientId, + principalTable: "AspNetUsers", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_Estimates_Performers_OwnerId", + column: x => x.OwnerId, + principalTable: "Performers", + principalColumn: "PerformerId", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_Estimates_RdvQueries_CommandId", + column: x => x.CommandId, + principalTable: "RdvQueries", + principalColumn: "Id"); + }); + + migrationBuilder.CreateTable( + name: "HairCutQueries", + columns: table => new + { + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + Description = table.Column(type: "text", nullable: false), + PrestationId = table.Column(type: "bigint", nullable: false), + EventDate = table.Column(type: "timestamp with time zone", nullable: true), + LocationId = table.Column(type: "bigint", nullable: true), + AdditionalInfo = table.Column(type: "text", nullable: false), + SelectedProfileUserId = table.Column(type: "text", nullable: true), + Consent = table.Column(type: "boolean", nullable: false), + DateCreated = table.Column(type: "timestamp with time zone", nullable: false), + DateModified = table.Column(type: "timestamp with time zone", nullable: false), + UserCreated = table.Column(type: "text", nullable: false), + UserModified = table.Column(type: "text", nullable: false), + Status = table.Column(type: "integer", nullable: false), + ClientId = table.Column(type: "text", nullable: false), + PerformerId = table.Column(type: "text", nullable: false), + ValidationDate = table.Column(type: "timestamp with time zone", nullable: true), + Previsional = table.Column(type: "numeric", nullable: true), + ActivityCode = table.Column(type: "text", nullable: false), + Decided = table.Column(type: "boolean", nullable: false), + PaymentId = table.Column(type: "text", nullable: true), + Accepted = table.Column(type: "boolean", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_HairCutQueries", x => x.Id); + table.ForeignKey( + name: "FK_HairCutQueries_Activities_ActivityCode", + column: x => x.ActivityCode, + principalTable: "Activities", + principalColumn: "Code", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_HairCutQueries_AspNetUsers_ClientId", + column: x => x.ClientId, + principalTable: "AspNetUsers", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_HairCutQueries_BrusherProfile_SelectedProfileUserId", + column: x => x.SelectedProfileUserId, + principalTable: "BrusherProfile", + principalColumn: "UserId"); + table.ForeignKey( + name: "FK_HairCutQueries_HairPrestation_PrestationId", + column: x => x.PrestationId, + principalTable: "HairPrestation", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_HairCutQueries_Locations_LocationId", + column: x => x.LocationId, + principalTable: "Locations", + principalColumn: "Id"); + table.ForeignKey( + name: "FK_HairCutQueries_PayPalPayment_PaymentId", + column: x => x.PaymentId, + principalTable: "PayPalPayment", + principalColumn: "CreationToken"); + table.ForeignKey( + name: "FK_HairCutQueries_Performers_PerformerId", + column: x => x.PerformerId, + principalTable: "Performers", + principalColumn: "PerformerId", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "HyperLink", + columns: table => new + { + HRef = table.Column(type: "text", nullable: false), + Method = table.Column(type: "text", nullable: false), + Rel = table.Column(type: "text", nullable: false), + ContentType = table.Column(type: "text", nullable: false), + BrusherProfileUserId = table.Column(type: "text", nullable: true), + PayPalPaymentCreationToken = table.Column(type: "text", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_HyperLink", x => new { x.HRef, x.Method }); + table.ForeignKey( + name: "FK_HyperLink_BrusherProfile_BrusherProfileUserId", + column: x => x.BrusherProfileUserId, + principalTable: "BrusherProfile", + principalColumn: "UserId"); + table.ForeignKey( + name: "FK_HyperLink_PayPalPayment_PayPalPaymentCreationToken", + column: x => x.PayPalPaymentCreationToken, + principalTable: "PayPalPayment", + principalColumn: "CreationToken"); + }); + + migrationBuilder.CreateTable( + name: "CommandLine", + columns: table => new + { + Id = table.Column(type: "bigint", nullable: false) + .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), + Name = table.Column(type: "character varying(256)", maxLength: 256, nullable: false), + Description = table.Column(type: "character varying(512)", maxLength: 512, nullable: false), + Count = table.Column(type: "integer", nullable: false), + UnitaryCost = table.Column(type: "numeric", nullable: false), + EstimateId = table.Column(type: "bigint", nullable: false), + Currency = table.Column(type: "text", nullable: false), + EstimateTemplateId = table.Column(type: "bigint", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_CommandLine", x => x.Id); + table.ForeignKey( + name: "FK_CommandLine_EstimateTemplates_EstimateTemplateId", + column: x => x.EstimateTemplateId, + principalTable: "EstimateTemplates", + principalColumn: "Id"); + table.ForeignKey( + name: "FK_CommandLine_Estimates_EstimateId", + column: x => x.EstimateId, + principalTable: "Estimates", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateIndex( + name: "IX_Activities_ParentCode", + table: "Activities", + column: "ParentCode"); + + migrationBuilder.CreateIndex( + name: "IX_Announce_OwnerId", + table: "Announce", + column: "OwnerId"); + + migrationBuilder.CreateIndex( + name: "IX_AspNetRoleClaims_RoleId", + table: "AspNetRoleClaims", + column: "RoleId"); + + migrationBuilder.CreateIndex( + name: "RoleNameIndex", + table: "AspNetRoles", + column: "NormalizedName", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_AspNetUserClaims_UserId", + table: "AspNetUserClaims", + column: "UserId"); + + migrationBuilder.CreateIndex( + name: "IX_AspNetUserLogins_UserId", + table: "AspNetUserLogins", + column: "UserId"); + + migrationBuilder.CreateIndex( + name: "IX_AspNetUserRoles_RoleId", + table: "AspNetUserRoles", + column: "RoleId"); + + migrationBuilder.CreateIndex( + name: "EmailIndex", + table: "AspNetUsers", + column: "NormalizedEmail"); + + migrationBuilder.CreateIndex( + name: "IX_AspNetUsers_PostalAddressId", + table: "AspNetUsers", + column: "PostalAddressId"); + + migrationBuilder.CreateIndex( + name: "UserNameIndex", + table: "AspNetUsers", + column: "NormalizedUserName", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_BalanceImpact_BalanceId", + table: "BalanceImpact", + column: "BalanceId"); + + migrationBuilder.CreateIndex( + name: "IX_Ban_TargetId", + table: "Ban", + column: "TargetId"); + + migrationBuilder.CreateIndex( + name: "IX_BankIdentity_UserId", + table: "BankIdentity", + column: "UserId"); + + migrationBuilder.CreateIndex( + name: "IX_BlackListed_OwnerId", + table: "BlackListed", + column: "OwnerId"); + + migrationBuilder.CreateIndex( + name: "IX_BlackListed_UserId", + table: "BlackListed", + column: "UserId"); + + migrationBuilder.CreateIndex( + name: "IX_BlogSpot_AuthorId", + table: "BlogSpot", + column: "AuthorId"); + + migrationBuilder.CreateIndex( + name: "IX_BlogTag_TagId", + table: "BlogTag", + column: "TagId"); + + migrationBuilder.CreateIndex( + name: "IX_BrusherProfile_ScheduleOwnerId", + table: "BrusherProfile", + column: "ScheduleOwnerId"); + + migrationBuilder.CreateIndex( + name: "IX_Bug_FeatureId", + table: "Bug", + column: "FeatureId"); + + migrationBuilder.CreateIndex( + name: "IX_ChatConnection_ApplicationUserId", + table: "ChatConnection", + column: "ApplicationUserId"); + + migrationBuilder.CreateIndex( + name: "IX_ChatRoom_OwnerId", + table: "ChatRoom", + column: "OwnerId"); + + migrationBuilder.CreateIndex( + name: "IX_ChatRoomAccess_UserId", + table: "ChatRoomAccess", + column: "UserId"); + + migrationBuilder.CreateIndex( + name: "IX_Circle_ApplicationUserId", + table: "Circle", + column: "ApplicationUserId"); + + migrationBuilder.CreateIndex( + name: "IX_CircleAuthorizationToBlogPost_BlogPostId", + table: "CircleAuthorizationToBlogPost", + column: "BlogPostId"); + + migrationBuilder.CreateIndex( + name: "IX_CircleMembers_CircleId", + table: "CircleMembers", + column: "CircleId"); + + migrationBuilder.CreateIndex( + name: "IX_CommandForm_ActivityCode", + table: "CommandForm", + column: "ActivityCode"); + + migrationBuilder.CreateIndex( + name: "IX_CommandLine_EstimateId", + table: "CommandLine", + column: "EstimateId"); + + migrationBuilder.CreateIndex( + name: "IX_CommandLine_EstimateTemplateId", + table: "CommandLine", + column: "EstimateTemplateId"); + + migrationBuilder.CreateIndex( + name: "IX_Comment_AuthorId", + table: "Comment", + column: "AuthorId"); + + migrationBuilder.CreateIndex( + name: "IX_Comment_ParentId", + table: "Comment", + column: "ParentId"); + + migrationBuilder.CreateIndex( + name: "IX_Comment_ReceiverId", + table: "Comment", + column: "ReceiverId"); + + migrationBuilder.CreateIndex( + name: "IX_Contact_AddressId", + table: "Contact", + column: "AddressId"); + + migrationBuilder.CreateIndex( + name: "IX_Contact_ApplicationUserId", + table: "Contact", + column: "ApplicationUserId"); + + migrationBuilder.CreateIndex( + name: "IX_CoWorking_FormationSettingsUserId", + table: "CoWorking", + column: "FormationSettingsUserId"); + + migrationBuilder.CreateIndex( + name: "IX_CoWorking_PerformerId", + table: "CoWorking", + column: "PerformerId"); + + migrationBuilder.CreateIndex( + name: "IX_CoWorking_WorkingForId", + table: "CoWorking", + column: "WorkingForId"); + + migrationBuilder.CreateIndex( + name: "IX_DeviceDeclaration_DeviceOwnerId", + table: "DeviceDeclaration", + column: "DeviceOwnerId"); + + migrationBuilder.CreateIndex( + name: "IX_DismissClicked_NotificationId", + table: "DismissClicked", + column: "NotificationId"); + + migrationBuilder.CreateIndex( + name: "IX_Estimates_ClientId", + table: "Estimates", + column: "ClientId"); + + migrationBuilder.CreateIndex( + name: "IX_Estimates_CommandId", + table: "Estimates", + column: "CommandId"); + + migrationBuilder.CreateIndex( + name: "IX_Estimates_OwnerId", + table: "Estimates", + column: "OwnerId"); + + migrationBuilder.CreateIndex( + name: "IX_GitRepositoryReference_OwnerId", + table: "GitRepositoryReference", + column: "OwnerId"); + + migrationBuilder.CreateIndex( + name: "IX_HairCutQueries_ActivityCode", + table: "HairCutQueries", + column: "ActivityCode"); + + migrationBuilder.CreateIndex( + name: "IX_HairCutQueries_ClientId", + table: "HairCutQueries", + column: "ClientId"); + + migrationBuilder.CreateIndex( + name: "IX_HairCutQueries_LocationId", + table: "HairCutQueries", + column: "LocationId"); + + migrationBuilder.CreateIndex( + name: "IX_HairCutQueries_PaymentId", + table: "HairCutQueries", + column: "PaymentId"); + + migrationBuilder.CreateIndex( + name: "IX_HairCutQueries_PerformerId", + table: "HairCutQueries", + column: "PerformerId"); + + migrationBuilder.CreateIndex( + name: "IX_HairCutQueries_PrestationId", + table: "HairCutQueries", + column: "PrestationId"); + + migrationBuilder.CreateIndex( + name: "IX_HairCutQueries_SelectedProfileUserId", + table: "HairCutQueries", + column: "SelectedProfileUserId"); + + migrationBuilder.CreateIndex( + name: "IX_HairMultiCutQueries_ActivityCode", + table: "HairMultiCutQueries", + column: "ActivityCode"); + + migrationBuilder.CreateIndex( + name: "IX_HairMultiCutQueries_ClientId", + table: "HairMultiCutQueries", + column: "ClientId"); + + migrationBuilder.CreateIndex( + name: "IX_HairMultiCutQueries_LocationId", + table: "HairMultiCutQueries", + column: "LocationId"); + + migrationBuilder.CreateIndex( + name: "IX_HairMultiCutQueries_PaymentId", + table: "HairMultiCutQueries", + column: "PaymentId"); + + migrationBuilder.CreateIndex( + name: "IX_HairMultiCutQueries_PerformerId", + table: "HairMultiCutQueries", + column: "PerformerId"); + + migrationBuilder.CreateIndex( + name: "IX_HairPrestationCollectionItem_PrestationId", + table: "HairPrestationCollectionItem", + column: "PrestationId"); + + migrationBuilder.CreateIndex( + name: "IX_HairPrestationCollectionItem_QueryId", + table: "HairPrestationCollectionItem", + column: "QueryId"); + + migrationBuilder.CreateIndex( + name: "IX_HairTaint_ColorId", + table: "HairTaint", + column: "ColorId"); + + migrationBuilder.CreateIndex( + name: "IX_HairTaintInstance_PrestationId", + table: "HairTaintInstance", + column: "PrestationId"); + + migrationBuilder.CreateIndex( + name: "IX_HyperLink_BrusherProfileUserId", + table: "HyperLink", + column: "BrusherProfileUserId"); + + migrationBuilder.CreateIndex( + name: "IX_HyperLink_PayPalPaymentCreationToken", + table: "HyperLink", + column: "PayPalPaymentCreationToken"); + + migrationBuilder.CreateIndex( + name: "IX_Instrumentation_UserId", + table: "Instrumentation", + column: "UserId"); + + migrationBuilder.CreateIndex( + name: "IX_InstrumentRating_OwnerId", + table: "InstrumentRating", + column: "OwnerId"); + + migrationBuilder.CreateIndex( + name: "IX_LiveFlow_OwnerId", + table: "LiveFlow", + column: "OwnerId"); + + migrationBuilder.CreateIndex( + name: "IX_MusicalPreference_DjSettingsUserId", + table: "MusicalPreference", + column: "DjSettingsUserId"); + + migrationBuilder.CreateIndex( + name: "IX_MusicalPreference_GeneralSettingsUserId", + table: "MusicalPreference", + column: "GeneralSettingsUserId"); + + migrationBuilder.CreateIndex( + name: "IX_PayPalPayment_ExecutorId", + table: "PayPalPayment", + column: "ExecutorId"); + + migrationBuilder.CreateIndex( + name: "IX_Performers_OrganizationAddressId", + table: "Performers", + column: "OrganizationAddressId"); + + migrationBuilder.CreateIndex( + name: "IX_Project_ActivityCode", + table: "Project", + column: "ActivityCode"); + + migrationBuilder.CreateIndex( + name: "IX_Project_ClientId", + table: "Project", + column: "ClientId"); + + migrationBuilder.CreateIndex( + name: "IX_Project_GitId", + table: "Project", + column: "GitId"); + + migrationBuilder.CreateIndex( + name: "IX_Project_PaymentId", + table: "Project", + column: "PaymentId"); + + migrationBuilder.CreateIndex( + name: "IX_Project_PerformerId", + table: "Project", + column: "PerformerId"); + + migrationBuilder.CreateIndex( + name: "IX_ProjectBuildConfiguration_ProjectId", + table: "ProjectBuildConfiguration", + column: "ProjectId"); + + migrationBuilder.CreateIndex( + name: "IX_RdvQueries_ActivityCode", + table: "RdvQueries", + column: "ActivityCode"); + + migrationBuilder.CreateIndex( + name: "IX_RdvQueries_ClientId", + table: "RdvQueries", + column: "ClientId"); + + migrationBuilder.CreateIndex( + name: "IX_RdvQueries_LocationId", + table: "RdvQueries", + column: "LocationId"); + + migrationBuilder.CreateIndex( + name: "IX_RdvQueries_PaymentId", + table: "RdvQueries", + column: "PaymentId"); + + migrationBuilder.CreateIndex( + name: "IX_RdvQueries_PerformerId", + table: "RdvQueries", + column: "PerformerId"); + + migrationBuilder.CreateIndex( + name: "IX_ScheduledEvent_PeriodStart_PeriodEnd", + table: "ScheduledEvent", + columns: new[] { "PeriodStart", "PeriodEnd" }); + + migrationBuilder.CreateIndex( + name: "IX_ScheduledEvent_ScheduleOwnerId", + table: "ScheduledEvent", + column: "ScheduleOwnerId"); + + migrationBuilder.CreateIndex( + name: "IX_Services_ContextId", + table: "Services", + column: "ContextId"); + + migrationBuilder.CreateIndex( + name: "IX_UserActivities_UserId", + table: "UserActivities", + column: "UserId"); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropTable( + name: "Announce"); + + migrationBuilder.DropTable( + name: "AspNetRoleClaims"); + + migrationBuilder.DropTable( + name: "AspNetUserClaims"); + + migrationBuilder.DropTable( + name: "AspNetUserLogins"); + + migrationBuilder.DropTable( + name: "AspNetUserRoles"); + + migrationBuilder.DropTable( + name: "AspNetUserTokens"); + + migrationBuilder.DropTable( + name: "BalanceImpact"); + + migrationBuilder.DropTable( + name: "Ban"); + + migrationBuilder.DropTable( + name: "BankIdentity"); + + migrationBuilder.DropTable( + name: "BlackListed"); + + migrationBuilder.DropTable( + name: "blogSpotPublications"); + + migrationBuilder.DropTable( + name: "BlogTag"); + + migrationBuilder.DropTable( + name: "Bug"); + + migrationBuilder.DropTable( + name: "ChatConnection"); + + migrationBuilder.DropTable( + name: "ChatRoomAccess"); + + migrationBuilder.DropTable( + name: "CircleAuthorizationToBlogPost"); + + migrationBuilder.DropTable( + name: "CircleMembers"); + + migrationBuilder.DropTable( + name: "Client"); + + migrationBuilder.DropTable( + name: "ClientProviderInfo"); + + migrationBuilder.DropTable( + name: "CommandForm"); + + migrationBuilder.DropTable( + name: "CommandLine"); + + migrationBuilder.DropTable( + name: "Comment"); + + migrationBuilder.DropTable( + name: "Contact"); + + migrationBuilder.DropTable( + name: "CoWorking"); + + migrationBuilder.DropTable( + name: "DeviceDeclaration"); + + migrationBuilder.DropTable( + name: "DismissClicked"); + + migrationBuilder.DropTable( + name: "ExceptionsSIREN"); + + migrationBuilder.DropTable( + name: "Form"); + + migrationBuilder.DropTable( + name: "HairCutQueries"); + + migrationBuilder.DropTable( + name: "HairPrestationCollectionItem"); + + migrationBuilder.DropTable( + name: "HairTaintInstance"); + + migrationBuilder.DropTable( + name: "HyperLink"); + + migrationBuilder.DropTable( + name: "Instrumentation"); + + migrationBuilder.DropTable( + name: "InstrumentRating"); + + migrationBuilder.DropTable( + name: "LiveFlow"); + + migrationBuilder.DropTable( + name: "MailingTemplate"); + + migrationBuilder.DropTable( + name: "MusicalPreference"); + + migrationBuilder.DropTable( + name: "MusicalTendency"); + + migrationBuilder.DropTable( + name: "Option"); + + migrationBuilder.DropTable( + name: "Products"); + + migrationBuilder.DropTable( + name: "ProjectBuildConfiguration"); + + migrationBuilder.DropTable( + name: "ScheduledEvent"); + + migrationBuilder.DropTable( + name: "Scopes"); + + migrationBuilder.DropTable( + name: "Services"); + + migrationBuilder.DropTable( + name: "SiteSkills"); + + migrationBuilder.DropTable( + name: "UserActivities"); + + migrationBuilder.DropTable( + name: "AspNetRoles"); + + migrationBuilder.DropTable( + name: "BankStatus"); + + migrationBuilder.DropTable( + name: "Tags"); + + migrationBuilder.DropTable( + name: "Feature"); + + migrationBuilder.DropTable( + name: "ChatRoom"); + + migrationBuilder.DropTable( + name: "Circle"); + + migrationBuilder.DropTable( + name: "EstimateTemplates"); + + migrationBuilder.DropTable( + name: "Estimates"); + + migrationBuilder.DropTable( + name: "BlogSpot"); + + migrationBuilder.DropTable( + name: "PostalAddress"); + + migrationBuilder.DropTable( + name: "FormationSettings"); + + migrationBuilder.DropTable( + name: "Notification"); + + migrationBuilder.DropTable( + name: "HairMultiCutQueries"); + + migrationBuilder.DropTable( + name: "HairPrestation"); + + migrationBuilder.DropTable( + name: "HairTaint"); + + migrationBuilder.DropTable( + name: "BrusherProfile"); + + migrationBuilder.DropTable( + name: "Instrument"); + + migrationBuilder.DropTable( + name: "DjSettings"); + + migrationBuilder.DropTable( + name: "GeneralSettings"); + + migrationBuilder.DropTable( + name: "Project"); + + migrationBuilder.DropTable( + name: "Period"); + + migrationBuilder.DropTable( + name: "RdvQueries"); + + migrationBuilder.DropTable( + name: "Color"); + + migrationBuilder.DropTable( + name: "Schedule"); + + migrationBuilder.DropTable( + name: "GitRepositoryReference"); + + migrationBuilder.DropTable( + name: "Activities"); + + migrationBuilder.DropTable( + name: "PayPalPayment"); + + migrationBuilder.DropTable( + name: "Performers"); + + migrationBuilder.DropTable( + name: "AspNetUsers"); + + migrationBuilder.DropTable( + name: "Locations"); + } + } +} diff --git a/src/Yavsc.Server/Migrations/ApplicationDbContextModelSnapshot.cs b/src/Yavsc.Server/Migrations/ApplicationDbContextModelSnapshot.cs index a46316ea..8d9cff67 100644 --- a/src/Yavsc.Server/Migrations/ApplicationDbContextModelSnapshot.cs +++ b/src/Yavsc.Server/Migrations/ApplicationDbContextModelSnapshot.cs @@ -8,7 +8,7 @@ using Yavsc.Models; #nullable disable -namespace Yavsc.Migrations +namespace Yavsc.Server.Migrations { [DbContext(typeof(ApplicationDbContext))] partial class ApplicationDbContextModelSnapshot : ModelSnapshot diff --git a/src/Yavsc.Server/Models/Blog/BlogPost.cs b/src/Yavsc.Server/Models/Blog/BlogPost.cs index b519e723..0a2483f8 100644 --- a/src/Yavsc.Server/Models/Blog/BlogPost.cs +++ b/src/Yavsc.Server/Models/Blog/BlogPost.cs @@ -25,10 +25,10 @@ namespace Yavsc.Models.Blog [Display(Name="Identifiant de l'auteur")] [ForeignKey("Author")] - public string AuthorId { get; set; } + public string? AuthorId { get; set; } [Display(Name="Auteur")] - public virtual ApplicationUser Author { set; get; } + public virtual ApplicationUser? Author { set; get; } [Display(Name="Date de création")] diff --git a/src/Yavsc/Controllers/Communicating/AnnouncesController.cs b/src/Yavsc/Controllers/Communicating/AnnouncesController.cs index a82a717e..a6dcb061 100644 --- a/src/Yavsc/Controllers/Communicating/AnnouncesController.cs +++ b/src/Yavsc/Controllers/Communicating/AnnouncesController.cs @@ -82,14 +82,14 @@ namespace Yavsc.Controllers if (ModelState.IsValid) { // Only allow admin to create corporate annonces - if (announce.For == Reason.Corporate && ! ViewBag.IsAdmin) + if (announce.For == Reason.Corporate && ! User.IsInMsRole(Constants.AdminGroupName)) { ModelState.AddModelError("For", _localizer["YourNotAdmin"]); return View(announce); } // Only allow performers to create ServiceProposal - if (announce.For == Reason.ServiceProposal && ! ViewBag.IsAdmin) + if (announce.For == Reason.ServiceProposal && ! User.IsInMsRole(Constants.PerformerGroupName)) { ModelState.AddModelError("For", _localizer["YourNotAPerformer"]); return View(announce); diff --git a/src/Yavsc/Extensions/HostingExtensions.cs b/src/Yavsc/Extensions/HostingExtensions.cs index ba1baa7e..5940fd97 100644 --- a/src/Yavsc/Extensions/HostingExtensions.cs +++ b/src/Yavsc/Extensions/HostingExtensions.cs @@ -28,13 +28,14 @@ using Microsoft.IdentityModel.Protocols.Configuration; using IdentityModel; using Yavsc.Interfaces; using Microsoft.AspNetCore.Identity.EntityFrameworkCore; +using Npgsql; namespace Yavsc.Extensions; public static class HostingExtensions { - + public static WebApplication ConfigureWebAppServices(this WebApplicationBuilder builder) { IServiceCollection services = LoadConfiguration(builder); @@ -58,7 +59,7 @@ public static class HostingExtensions { o.EnableDetailedErrors = true; }); - + services.AddMvc(config => { /* var policy = new AuthorizationPolicyBuilder() @@ -109,7 +110,7 @@ public static class HostingExtensions AddAuthentication(builder); - + services.AddTransient>(); services.AddTransient, RoleStore>(); @@ -122,7 +123,7 @@ public static class HostingExtensions services.AddDbContext(options => options.UseNpgsql(builder.Configuration.GetConnectionString("DefaultConnection"))); - return services.AddIdentity( + return services.AddIdentity( options => { options.SignIn.RequireConfirmedAccount = true; @@ -131,7 +132,7 @@ public static class HostingExtensions } ) .AddEntityFrameworkStores(); - + } private static void AddYavscPolicies(IServiceCollection services) @@ -185,11 +186,11 @@ public static class HostingExtensions //LoadGoogleConfig(builder.Configuration); - + var services = builder.Services; _ = services.AddControllersWithViews() .AddNewtonsoftJson(); - + services.Configure(siteSection); services.Configure(smtpSection); services.Configure(paypalSection); @@ -201,25 +202,25 @@ public static class HostingExtensions private static void AddAuthentication(WebApplicationBuilder builder) { - IServiceCollection services=builder.Services; - IConfigurationRoot configurationRoot=builder.Configuration; + IServiceCollection services = builder.Services; + IConfigurationRoot configurationRoot = builder.Configuration; string? googleClientId = configurationRoot["Authentication:Google:ClientId"]; string? googleClientSecret = configurationRoot["Authentication:Google:ClientSecret"]; - + var authenticationBuilder = services.AddAuthentication(); - if (googleClientId!=null && googleClientSecret!=null) - authenticationBuilder.AddGoogle(options => - { - options.SignInScheme = IdentityServerConstants.ExternalCookieAuthenticationScheme; - - // register your IdentityServer with Google at https://console.developers.google.com - // enable the Google+ API - // set the redirect URI to https://localhost:5001/signin-google - options.ClientId = googleClientId; - options.ClientSecret = googleClientSecret; - - }); + if (googleClientId != null && googleClientSecret != null) + authenticationBuilder.AddGoogle(options => + { + options.SignInScheme = IdentityServerConstants.ExternalCookieAuthenticationScheme; + + // register your IdentityServer with Google at https://console.developers.google.com + // enable the Google+ API + // set the redirect URI to https://localhost:5001/signin-google + options.ClientId = googleClientId; + options.ClientSecret = googleClientSecret; + + }); } private static IIdentityServerBuilder AddIdentityServer(WebApplicationBuilder builder) { @@ -232,15 +233,15 @@ public static class HostingExtensions // see https://IdentityServer8.readthedocs.io/en/latest/topics/resources.html options.EmitStaticAudienceClaim = true; - + }) .AddInMemoryIdentityResources(Config.IdentityResources) .AddInMemoryClients(Config.TestingClients) .AddClientStore() .AddInMemoryApiScopes(Config.TestingApiScopes) .AddAspNetIdentity(); - - + + if (builder.Environment.IsDevelopment()) { @@ -310,22 +311,27 @@ public static class HostingExtensions else { app.UseExceptionHandler("/Home/Error"); - using (var scope = app.Services.CreateScope()) + using (var scope = app.Services.CreateScope()) { var db = scope.ServiceProvider.GetRequiredService(); await db.Database.MigrateAsync(); } } - app.Use(async (context, next) => { - if (context.Request.Path.StartsWithSegments("/robots.txt")) { + + app.Use(async (context, next) => + { + if (context.Request.Path.StartsWithSegments("/robots.txt")) + { var robotsTxtPath = System.IO.Path.Combine(app.Environment.WebRootPath, $"robots.txt"); string output = "User-agent: * \nDisallow: /"; - if (File.Exists(robotsTxtPath)) { + if (File.Exists(robotsTxtPath)) + { output = await File.ReadAllTextAsync(robotsTxtPath); } context.Response.ContentType = "text/plain"; await context.Response.WriteAsync(output); - } else await next(); + } + else await next(); }); app.UseStaticFiles(); app.UseRouting(); @@ -335,9 +341,9 @@ public static class HostingExtensions app.MapDefaultControllerRoute(); //app.MapRazorPages(); app.MapHub("/chatHub"); - + WorkflowHelpers.ConfigureBillingService(); - + var services = app.Services; ILoggerFactory loggerFactory = services.GetRequiredService(); var siteSettings = services.GetRequiredService>(); @@ -349,7 +355,7 @@ public static class HostingExtensions payPalSettings, googleAuthSettings, localization, loggerFactory, app.Environment.EnvironmentName); app.ConfigureFileServerApp(); - + return app; } @@ -368,7 +374,7 @@ public static class HostingExtensions Config.GServiceAccount = JsonConvert.DeserializeObject(safile.OpenText().ReadToEnd()); } } - + public static IApplicationBuilder ConfigureFileServerApp(this IApplicationBuilder app, bool enableDirectoryBrowsing = false) { diff --git a/src/Yavsc/Extensions/PermissionHandler.cs b/src/Yavsc/Extensions/PermissionHandler.cs index 58155623..b669e1b9 100644 --- a/src/Yavsc/Extensions/PermissionHandler.cs +++ b/src/Yavsc/Extensions/PermissionHandler.cs @@ -1,9 +1,6 @@ using System.Security.Claims; using Microsoft.AspNetCore.Authorization; using Microsoft.EntityFrameworkCore; -using RazorEngine.Compilation.ImpromptuInterface.Optimization; -using Yavsc.Helpers; -using Yavsc.Migrations; using Yavsc.Models; using Yavsc.Models.Blog; using Yavsc.Server.Helpers; diff --git a/src/Yavsc/Yavsc.csproj b/src/Yavsc/Yavsc.csproj index a6a7c6d6..b8fc27a2 100644 --- a/src/Yavsc/Yavsc.csproj +++ b/src/Yavsc/Yavsc.csproj @@ -40,9 +40,10 @@ + - \ No newline at end of file +